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
- What is Google Inbox?
- How to get the Windows 10 Technical Preview, plus release date, features and latest news
- Nexus 6 release date, specs and price: when will the Nexus 6 go on sale in the UK?
- Lenovo and Ashton Kutcher launch Yoga Tablet 2 Pro, Yoga Tablet 2 and Yoga 3 Pro
- Lenovo Yoga event live stream: watch Ashton Kutcher's tablet launch live
- HTC shows off Desire Eye selfie phone and periscope-like camera
- Xim: the slideshow app to get excited about
- Adobe has more apps for iOS, but none for Android
- How to download and install Windows 10 Technical Preview
- iPhone 6 Plus "less likely to bend than HTC One"
- Google Glass: mugger bait, pub problem and other lessons learned from two dangerous weeks
- Twitter, please don't fiddle with my feed
- How Satya Nadella can get some pay-raise karma
- Windows 10: a step back to go forward
- 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
- 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