Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nmaier/1071086 to your computer and use it in GitHub Desktop.
Save nmaier/1071086 to your computer and use it in GitHub Desktop.
userscripts.org-652ff85d-1a84-456b-bd02-05136582164f@tn123.org
// ==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