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
- Facebook testing keyword searching in old posts
- Google promises faster Chrome with 64-bit support
- iPhone 6 release date, specs/features and rumours: when is the new iPhone 6 coming out in the UK
- Sony Xperia Z3 specs leak online
- Windows 8.2/Windows 9: release date, features and free cloud version
- Samsung Galaxy Alpha release date, specs and rumoured price in the UK
- Vodafone has worst reception but Ofcom tests questioned
- Boxed iPhone 6 photos leak online
- Still on IE8? You've got 18 months to upgrade
- iPhone 6 launch event tipped for 9 September
- 20 years of PC Pro: our best covers
- Why we've closed the PC Pro forums
- How to turn off Google Location Tracking
- 20 years of PC Pro: our greatest review mistakes
- 20 years of PC Pro: our first A-List
- Wikipedia's "right to be forgotten" protest hits the wrong note
- 3D printing hits the high street for plastic selfies
- 20 years of PC Pro: What amazed us in our first issue
- How Google Glass ruined my lunch hour
- Smartphone battery packs: can a USB power pack beat the festival battery blues?
- 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