Last active
April 3, 2016 14:46
-
-
Save likaci/80c99f846ebcad299363 to your computer and use it in GitHub Desktop.
稀土掘金/程序师 自动跳转到源页面
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 稀土掘金/程序师 自动跳转到源页面 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author likaci | |
// @match http://gold.xitu.io/entry/* | |
// @match http://www.techug.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
var url = | |
//http://gold.xitu.io/entry/* //http://www.techug.com/* | |
document.querySelector("body > div > a:nth-child(2)") || document.querySelector("div.src_en > p > a"); | |
url = url.href; | |
document.location.href = url; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
稀土掘金/程序师 自动跳转到源页面