I loved Oskar Krawczyk's WTFramework Bookmarklet [via Michael], but it didn't detect TiddlyWiki, so I hacked it! Drag [WTFramework] (modified 1.3) to your toolbar.
I loved Oskar Krawczyk's WTFramework Bookmarklet [via Michael], but it didn't detect TiddlyWiki, so I hacked it! Drag [WTFramework] (modified 1.3) to your toolbar.
That's excellent. Thanks for making that I use that bookmarklet a lot. I wonder though, what might happen when TiddlyWiki itself includes jQuery as part of its core?
I considered that, but figured the TiddlyWiki version string might indicate the JQuery version?
Taking a brief look at the code, it appears that jQuery is detected before TiddlyWiki - so a jQuery-enabled TW would be reported as jQuery.
I considered that - detecting TiddlyWiki after jQuery means its results usurp jQuery's, but I've moved the TiddlyWiki section to the end to make that explicit.
Awesome job! Works fine on my TW vertical.
The bookmarklet can show more than one framework - e.g.
http://ndpsoftware.com/ScriptaculousEffectsDemo.php shows prototype and scriptaculous. Jquery-TW should do likewise.
Scriptaculous is treated as a special case, I wasn't keen on rewriting the bookmarklet, so made it detect TiddlyWiki *and* JQuery explicitly:
Brilliant!
[...] JavaScript Heavily inspired by Oskar Krawczyk’s WTFramework and Paul Downey’s subsequent enhancements, I’ve re-engineered this bookmarklet to be more extensible and better support multiple [...]
Fantastic. I´m very impressed