Urgent.News

What's breaking now, across thousands of outlets.

Tech

GreaseMonkey, or How to Enhance Your Web Experience (2008)

Archival repost — originally published on my old blog on December 21, 2008. Lightly cleaned up for dev.to (translated from French, and I fixed a smart-quote encoding issue in the code block that would have made it fail). GreaseMonkey itself has since been discontinued for Firefox — Tampermonkey and Violentmonkey are the modern equivalents — and Google's markup has changed completely since 2008,…

GreaseMonkey, a Firefox extension, empowers users to take control of their web experience. By applying a few lines of code, users can customize the visual appearance of websites to their liking, removing unwanted elements such as ads or sponsored links. This technology relies on the user's understanding of JavaScript, the Document Object Model (DOM), and/or XPath.

One example of a userscript provided showcases how to eliminate Google's sponsored links from search results. The script first identifies the elements containing the sponsored links using specific IDs, then removes them from the page by removing the parent node of each element.

For those interested in exploring the world of userscripts, the author encourages others to write their own scripts and share them on UserScripts.org, where they might be helpful to others. The author's specific script, a Google Sponsored Links remover, is available on the site, open to any feedback or criticism.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

My First UWA Widget for Netvibes and iGoogle (2009)

Archival repost — originally published on my old blog on January 18, 2009. Lightly cleaned up for dev.to (translated from French; I also dropped my personal TVRage feed hash from the example URL…

  • Developer created first UWA widget for Netvibes and iGoogle in 2009
  • Widget used TVRage service to fetch personalized RSS feeds of TV shows
  • PHP API developed to process messy feeds and sort data for clean widget

More from Friday 21 August →