-
-
Save neoOpus/18dfdcf512e74e78580f3888a57cfed6 to your computer and use it in GitHub Desktop.
Autoclick Link with Specified Text
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 Autoclick Link with Specified Text | |
// @include https://www.example.com/* | |
// @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. | |
*/ | |
//--- the contains() text is case-sensitive | |
var TargetLink = $("a:contains('Contact')") | |
if (TargetLink.length) | |
window.location.href = TargetLink[0].href |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment