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 firstname.lastname@example.org
- Windows 9: release date, features, free update and cloud version
- iPhone 6 Plus "less likely to bend than HTC One"
- iPhone 6 Plus: Apple's had nine complaints over "bendgate"
- Does the iPhone 6 Plus bend?
- Adobe buys Aviary to open Creative Cloud to mobile
- iPhone 6 is toughest Apple handset yet
- Ellison steps down: but who's really running Oracle now?
- Amazon releases high-end Kindle Voyage Touch
- Sony warns of massive loss on smartphones
- Dropbox app doesn't work properly with iOS 8
- Michael Dell: Cloud infrastructure is the roads, bridges and highways of the 21st century
- How to check your identity hasn’t been sold to the hackers
- Tim Cook: this is how much TV has changed since the 70s
- Westminster wins the .London battle
- 20 years of PC Pro: from deep pan pizza to virtualisation
- Five reasons why the Apple Watch leaves me cold
- Apple Watch, iPhone 6 and 6 Plus: Tim Cook's Apple back with a bang?
- BT Home Hub 5: how to get maximum speed
- 20 years of PC Pro: one-star reviews (including "the worst tablet we've ever seen")
- 20 years of PC Pro: our best covers
- How to sell more ebooks on Amazon
- 10 ways to make your business more secure
- Top five VoIP mistakes
- How to add in-app purchasing to an iPhone, Android or Windows app
- Remote-control ransomware: TeamViewer and software hardball
- Why laptops with serial ports matter to the Internet of Things
- Make your mobile battery last longer
- Small steps into handling Big Data
- Nexus 5: does it really run stock Android?
- How to get broadband to a garden office