2011/03/10

Tinted Apple, the Apple Buzz Browser Blocker

UPDATE 1: go the fast track and install the Tinted Apple Blocker extension for Firefox here.

UPDATE 2: now you can also try this as a script for Greasemonkey add-on.


I don't care about Apple products, what Steve Jobs said today or if Apple revenues record a new high, so I hate to stumble on news about their products while browsing around or while checking my twitter stream. It would be nice to be able to skeep the Apple buzz right away before loosing my time reading a single word about their stuff.

So, I edited the parameters within the code of the Tinted Sheen extension for Firefox browser, so that all mentions of say Steve Jobs, the iPhone, iPad and the like get redacted in glorious black on any web page you happen to be*, like in the screenshot above.

If you want to break free of Apple buzz, follow these steps:
  1. Download the Tinted Sheen extension file using Internet Explorer. Go to http://addons.gleuch.com/tinted-sheen/downloads/firefox and choose to download the xpi file. If you open that URL in Firefox it will try to install the extension instead of giving you the option to download the file.
  2. Extract the content of the tinted-sheen-1.0.1.xpi file into a filder where you will keep the edited extention for Firefox to use it. For example in C:\Users\username\Documents\AppFiles\Firefox\TintedApple. Replace "username" with your Windows user name.
  3. Close Firefox browser
  4. Go to the folder where your Firefox profile is located, usually in C:\Users\rojomojo\AppData\Roaming\Mozilla\Firefox\Profiles\
  5. Go into the extentions folder within your Firefox profile folder. In my case that is C:\Users\rojomojo\AppData\Roaming\Mozilla\Firefox\Profiles\ckuzggtd.default\extensions
  6.  Create a file named tinted-sheen@gleuch.com, open it with Notepad and enter the path to the location where you extrated the extension above, that is C:\Users\rojomojo\Documents\AppFiles\Firefox\TintedApple
  7.  Open the file C:\Users\rojomojo\Documents\AppFiles\Firefox\TintedApple\content\tinted-sheen.js with Notepad.
  8. Replace the string "/(charlie(\s|\-|\_)?)?(sheen|porn\sfamily|\#winning|\#tigerblood|tiger\sblood|adonis\sdna|\#sheenskorner|sheen\'s\skorner|\#fastball)/img" with "/((\#a|A)pple|(i[pP]hone|i[pP]ad|i[pP]od|[mM]ac[bB]ook|i[tT]unes|[mM]acintosh|iOS|Apple\sstore)|mac\spro|[sS]teve(\s|\_|\-)[jJ]obs|Safari)/mg" without the quotes.
  9. Replace the string "replace(/(charlie\s)(sheen)/img, '****** ******').replace(/(sheen|\#winning)/img, '******')" with "replace(/(apple\sstore)/img, '****** ******').replace(/(******)/img, '******')" without the quotes.
  10. Open Firefox and test the extension googling for "Steve Jobs" or at PCmag.com homepage.
    *Except for twitter platform Hootsuite dashboard where Apple buzz remain visible. Can you help to solve this?