Tailor websites to your needs with user scripts
Posted on 29 Jan 2013 at 09:16
User scripts can add features to your favourite websites, remove unwanted content and do much more besides. Darien Graham-Smith shows how it’s done
ShowcaseClick here to see our script showcase demonstrating the capabilities of some popular user scripts
Such scripts effectively work in the same way as browser extension, but they're simpler and more self-contained. They’re an easier way to create your own web page customisations – and as a result there’s a thriving community of hobbyist scripters out there, producing a big library of scripts you can freely draw on.
Using user scripts
The power of user scripts first came to general attention in 2005, thanks to the release of a scripting add-on for Mozilla Firefox called Greasemonkey. It was an instant hit among techies, who loved being able to “route around broken websites, alter site styles, and roll back ill-conceived site redesigns”. A companion website was created at userscripts.org for script creators to share their creations with the wider community. The idea was such a success that the following year O’Reilly Media published a tutorial book of Greasemonkey Hacks (from which the above quote is taken) featuring 100 example scripts.
Greasemonkey remains terrifically popular today – Mozilla’s statistics indicate it’s been downloaded almost 60 million times over the years – and userscripts.org now hosts more than 80,000 scripts. But you no longer need to be a Firefox user to take advantage of user scripts. Both Google Chrome and Opera support user scripts natively, and many popular scripts are available as extensions for Internet Explorer and Safari.
Not all scripts will work in all browsers. Firefox, Chrome and Opera all parse and render web pages in slightly different ways, and have different security models – so a script that works perfectly in one browser may not have the desired effect on another. Even within one platform you may hit compatibility issues: the official Greasemonkey add-on received a major update last year (hitting version 1.0 after seven years in development), which included significant security enhancements. As a result, you may find some scripts at userscripts.org that won’t work in the current version of any browser.
The fragility of scripts
User scripts are offered as-is, with no promise whatsoever of technical support. They may contain bugs, and even if a script works perfectly a browser update can cause it to abruptly stop working – as can a website update. There’s nothing that can be done about this. Greasemonkey can check automatically for script updates, so if there’s a fix it’ll reach you as soon as it’s available, but there’s no guarantee that one will be made available quickly, or ever.
Tracking down useful scripts in the first place can be frustrating too. The userscripts.org database is quite rudimentary, and hosts a great many outdated scripts. Though you can order your search results by date and number of downloads, finding a high-quality, fully working script tends to involve a certain degree of trial and error.
For more details about purchasing this feature and/or images for editorial usage, please contact Jasmine Samra on email@example.com
- Surveillance panic could lead to restrictive data laws
- Google unveils build-your-own Street View
- Qualcomm making 64-bit mobile chips
- Police knock out 40 sites accused of piracy
- Samsung launches 1TB SSD for Ultrabooks and tablets
- More than 100 Britons hit by CryptoLocker
- BlackBerry says "we're still alive" as sales hit new low
- Apple buys Twitter search startup Topsy
- Next wave of Windows updates codenamed "Threshold"
- Surface 2 owners locked out due to BitLocker bug
- Switching from iPhone to Android: what I miss, what I don't
- Tech City: Easy to score when you move the goalposts
- How to remove SkyDrive from the Windows 8.1 Explorer
- Switching from iPhone to Android? Switch off iMessage
- Why is Google pumping more money into Firefox?
- Sky Broadband Shield review
- Samsung Galaxy S4: how to double your battery life
- Motorola Moto G review: first look
- IBM Watson meets Willy Wonka
- Google’s support policies shove users towards Chrome
- The importance of load balancing
- Windows Phone App Studio: an easy way to create your first Windows Phone 8 app
- The end of Windows XP support: what it really means for businesses
- Don't rely on Chrome's password vault
- Using Buffer to manage your social media
- Microsoft needs its own Steve Jobs
- Forget credit cards: hackers want your Facebook account
- Can't get fast enough broadband? Here's what to do
- Leap Motion and the battle against UI stagnation
- How to build a really bad network