Via ReadWriteWeb: SocialHistory.js can detect what popular social networks your visitors have recently visited by (1) creating a small hiden iframe (2) populate the iframe with links to those social networks (3) check the colours of those links, as visited links will usually have a different colour. One of the most wicked hack I have [...]
Scott Yang's Playground
Threading in Javascript
Cooperative threading in Javascript 1.7 using the new yield keyword. Only works in Firefox 2 (or whatever browser that supports JS 1.7 with all its Pythonic features). It’s no preemptive “real” threading though, but it does make massive parallelism easier to implement. Online realtime strategy game written in Javascript?
Search Engine Highlight Javascript 1.5
It has been almost a year since the last update (way too busy at the moment), but here you are — a new version of Search Engine Highlight Javascript for your websites. What is in this change: More search engines are supported. Added MSN Live, Technorati and Dogpile. Add the framework for search engines that [...]
ESV Popup 1.2 Released
I have just committed a small update to ESV Popup Javascript, resolving an issue where Good News Publisher generated Javascript is cached by Internet Explorer 6/7, which prevents the passage shown in the popup to be updated. I’ve also fixed a few stylesheet glitches with Internet Explorer 7.
COWS not much an Ajax
Saw it on Slashdot yesterday, where COWS Ajax was introduced. What is COWS first of all: Ajax has been revolutionizing the web. However it is greatly limited by the browser same-origin policy, meaning that your site can only be as good as the web applications and tools that you create. But there’s a lot of [...]
Client Side Port Scanning with Javascript
Prrof of concept of port scanning arbitary IP addresses from nothing but client side Javascript. From the code it looks like creating IFRAMEs and setting the SRC attribute to try to connect to ports, and has a list of web server signatures to check against. Pretty scary in what client side JS can do. I [...]
Yahoo! User Interface Library
Yahoo! UI Library, recently released by Yahoo! under BSD license, is quite a shining piece of web development toolkit. It has all the nifty Javascript utility functions/classes to build your next Web 2.0 application, in a similar fashion to other toolkits like Script.aculo.us or Rico, but backed by one of the largest company on the [...]
Google Video Downloader Bookmarklet 0.1
I love Google Video Search — great way to waste your evening and plenty of bandwidth. However, I hate to watch video on a Flash player embeded inside a web browser window. I also hate to download the same video again and again every time I want to watch it. So yesterday evening I hacked [...]
Scripturizer for Javascript Bookmarklet
This idea is actually implemented after Glen’s comment on a possible Greasemonkey plugin. Instead of re-bundling Scripturizer for Javascript into a Greasemonkey user-script, where very limit number of users might give it a try, I have made it into a “bookmarklet” instead, where clicking on a button can scripturize any webpage that you are currently [...]
Scripturizer and ESV Popup have moved!
I have released the latest version of Scripturizer for Javascript and ESV Popup on FuCoder.com, my current programming/Internet blog. The new version is almost a complete re-write that walks through DOM tree instead of searching and replacing in innerHTML. I will also gradually migrate my other projects over — whenever I have more time working [...]
Scripturizer for Javascript 2.0 and ESV Popup 1.1
Today I have migrated Scripturizer for Javascript and ESV Popup from my personal blogsite to FuCoder.com, and have updated them with the latest changes that I have been working on. Scripturizer for Javascript 2.0 Almost a complete re-write. Instead of searching and replacing innerHTML with regular expression, I have made a DOM walker to create [...]
Search Engine Highlight Javascript 1.3
Further improvement has been made to the Search Engine Highlight Javascript, which has recently been moved from my personal website to FuCoder.com. Here are the changes: Rewrite the parsing engine to use DOM instead of resetting the HTML. Easier customisation on search engines. Use Javascript Cruncher for distribution. Download the SE-Hilite 1.3 (2.7kb, zip). See [...]
Super Mario — in Javascript
Via Boing Boing. Someone in Japan has implemented the whole of Nintendo classic Super Mario in Javascript. This is totally insane. Why someone would do that is beyond me, other than to prove that it can be done. It does bring back quite a bit of childhood memory though…
SE Hilite Javascript 1.2
Thanks to Alex for reporting the issue, I have updated my Search Engine Highlight Javascript to 1.2. Here are the changes: Fix up the bug when search keyword containing partial match of ‘span class=”hilite”‘. Having an extra boolean flag Hilite.exact, whether the parser should perform exact match. Default to true, i.e. searching for “search” will [...]
del.icio.us direc.tor
del.icio.us direc.tor: Johnvey Hwang’s high performance AJAX web service broker. This script is very neat. Setup a bookmarlet. Visit del.icio.us. Click on the bookmarklet, and it instantly transforms your ugly del.icio.us web interface into a fancy AJAX-driven DHTML interface. What stands out is this implementation does not require a middle man as service broker. It [...]