Javascript

GreaseMonkey: Link videos from Last.fm to YouTube

Last.fm has one small feature that I miss a lot: a direct link on the video page to the original YouTube page. Of course, this only applies to videos from YouTube, but I'm amazed they didn't introduce this yet (or maybe I'm just too blind to see it).

The Simplest GreaseMonkey Script - Javascript Clock

Today I finally took the time to have a look over GreaseMonkey. What I found odd was the apparent lack of "Hello World" samples or simple tutorials. I read the common pitfalls from the manual and I also skimmed through most of the manual, but I must admit that was a little bit boring.

Flickr API, Javascript and Windows Desktop

Lately I've came across a very underrated feature of Microsoft Windows, the ability to use an HTML page as a desktop wallpaper. When I've first seen this feature (I think it was in Windows 98 or Windows 95) it seemed very odd and pointless. Those were the times when web pages were seen as a dangerous ground, especially those that contained some form of scripting.

Mysterious Javascript Bug

Near the end of the day, as I was getting ready to wrap everything up and prepare the project for the next step, I just noticed that Internet Explorer and Opera were both ignoring my Javascript file. Gecko browsers seem to be doing fine, with no reported errors - what could it be? Maybe I forgot a console.log or something.

Javascript: Prototype.js and Setting Attributes

This certainly looks very trivial, but after reading (I admit, it was more like skimming) the prototype.js documentation, I couldn't find a way of doing this. Of course it can be done just by using plain Javascript, but I really wanted to take advantage of the Prototype "abstraction" layer and avoid any possible cross-browser issues.

Syndicate content