DZone article source redirector

Redirects DZone articles to their source

Versión del día 22/08/2014. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name        DZone article source redirector
// @namespace   dzone
// @description Redirects DZone articles to their source
// @include     http://*.dzone.com/articles/*
// @include     https://*.dzone.com/articles/*
// @version     1
// @grant       none
// ==/UserScript==

var links = document.getElementsByTagName('a');

for (var i in links) { 
  if (links[i].text == 'Source' || links[i].text == 'source') {
    console.debug('Redirecting to ' + links[i].href);
    window.location = links[i].href;
  }
}