Created
July 8, 2011 03:39
-
-
Save nmaier/1071086 to your computer and use it in GitHub Desktop.
userscripts.org-652ff85d-1a84-456b-bd02-05136582164f@tn123.org
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== | |
// @id userscripts.org-652ff85d-1a84-456b-bd02-05136582164f@tn123.org | |
// @name Userscripts https installation | |
// @version 1.0 | |
// @namespace tn123.org | |
// @author tn123 | |
// @description Demonstrated GM_xpath usage | |
// @include http://userscripts.org/scripts/show/* | |
// @run-at document-end | |
// ==/UserScript== | |
var link = GM_xpath({ | |
context: GM_xpath({ | |
paths: ["id('dude')", "id('install_script')"] | |
}), | |
path: "//a[text()='Install']" | |
}); | |
link.href = link.href.replace("http://", "https://"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment