Created
November 6, 2011 12:04
-
-
Save basyura/1342790 to your computer and use it in GitHub Desktop.
yahoo redirector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name yahoo news redirector | |
// @namespace [email protected] | |
// @include http://dailynews.yahoo.co.jp/* | |
// ==/UserScript== | |
(function () { | |
var h3 = document.getElementsByTagName("h3")[0]; | |
var url = h3.childNodes[0].getAttribute("href"); | |
location.href = url; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment