Created
March 3, 2014 21:40
-
-
Save jerone/9335196 to your computer and use it in GitHub Desktop.
OpenUserJS.org Export Cert
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 OpenUserJS.org Export Cert | |
// @namespace http://OpenUserJS.org | |
// @homepageUrl http://OpenUserJS.org | |
// @include http://userscripts.org/home/scripts | |
// @version 1 | |
// @grant GM_openInTab | |
// ==/UserScript== | |
(function () { | |
var userId = document.evaluate('//li[@class="menu"]/a[text()[contains(.,"public profile")]]', document, null, 9, null) .singleNodeValue.href.match(/(\d+)/) [0]; | |
if (window.confirm('Open tab to OpenUserJS.org?')) { | |
GM_openInTab('http://openuserjs.org?cert=' + window.btoa(unescape(encodeURIComponent(userId)))); | |
} | |
}) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment