Skip to content

Instantly share code, notes, and snippets.

@mendelgusmao
Created January 29, 2013 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mendelgusmao/4665606 to your computer and use it in GitHub Desktop.
Save mendelgusmao/4665606 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name MediaboomShittyProtection
// @namespace @MendelGusmao
// @include *mediaboom.org/*
// @version 1
// @require http://code.jquery.com/jquery-1.9.0.min.js
// @require https://raw.github.com/carlo/jquery-base64/master/jquery.base64.min.js
// ==/UserScript==
var matcher = /url=([^=]+)/;
$("a[href*=go]").each(function(i, link) {
var encoded = decodeURIComponent($(link).attr("href").match(matcher)[1]);
if (encoded !== undefined && encoded.indexOf("aHR0cDov") > -1)
$(link).attr("href", $.base64.decode(encoded));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment