2011-02-18 79 views

回答

9

這裏是一個啓動腳本,做到這一點。請注意,它使用jQuery並假設您正在運行Firefox或使用Tampermonkey,如果您使用的是Chrome。

// ==UserScript== 
// @name  _YOUR_SCRIPT_NAME 
// @include http://YOUR_SERVER.COM/YOUR_PATH/* 
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js 
// @grant GM_addStyle 
// ==/UserScript== 
/*- The @grant directive is needed to work around a design change 
    introduced in GM 1.0. It restores the sandbox. 
*/ 

//--- Note that the contains() text is case-sensitive. 
var TargetLink = $("a:contains('Click Here')") 

if (TargetLink.length) 
    window.location.href = TargetLink[0].href 


參見:

相關問題