ekb imdb - skip ad

By ekbworldwide Uploaded May 21, 2008 — Installed 67 times.
// ==UserScript==
// @name           ekb imdb skip full page ad
// @namespace      ekbworldwide
// @include        http://imdb.com/ad/*
// @include        http://*.imdb.com/ad/*
// @version        0.1
// ==/UserScript==

skipAd = window.location.href;
/* chop off the first part */
skipAd = skipAd.replace(/^(http:\/\/www.imdb.com\/ad\/.*dest=)/,"");
/* make a small change to make the real url usable */
skipAd = skipAd.replace(/(http%3A)/,"http:");
// Yes, I'm not good at regex so I have an alert to check if everything is working
/*
alert(skipAd);
*/
window.location.href = skipAd;