Last active
April 17, 2018 10:41
-
-
Save fisknils/a12a4b36aa30c40517aaef0ebde08f01 to your computer and use it in GitHub Desktop.
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 My Elastic Userscript | |
// @namespace https://gist.github.com/fisknils | |
// @version 0.1 | |
// @description Skeleton userscript with maybe a bit too much included. | |
// @author fisknils | |
// @include http* | |
// @require https://code.jquery.com/jquery-2.2.4.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/preact/8.2.6/preact.js | |
// @require | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @grant GM.deleteValue | |
// @grant GM.listValues | |
// @grant GM.openInTab | |
// @grant GM.getResourceUrl | |
// @grant GM.openInTab | |
// @grant GM.setClipboard | |
// @grant GM.xmlHttpRequest | |
// ==/UserScript== | |
/* | |
Reference for grants | |
https://wiki.greasespot.net/Metadata_Block | |
https://wiki.greasespot.net/GM.info | |
https://wiki.greasespot.net/GM.deleteValue | |
https://wiki.greasespot.net/GM.getValue | |
https://wiki.greasespot.net/GM.setValue | |
https://wiki.greasespot.net/GM.listValues | |
https://wiki.greasespot.net/GM.setValue | |
https://wiki.greasespot.net/GM.getValue | |
https://wiki.greasespot.net/GM.getResourceUrl | |
https://wiki.greasespot.net/GM.openInTab | |
https://wiki.greasespot.net/GM.setClipboard | |
https://wiki.greasespot.net/GM.xmlHttpRequest | |
https://wiki.greasespot.net/UnsafeWindow | |
*/ | |
(function() { | |
'use strict'; | |
(()=>{ // artoo.js | |
(function(){var t={},e=!0;if("object"==typeof this.artoo&&(artoo.settings.reload||(artoo.log.verbose("artoo already exists within this page. No need to inject him again."),artoo.loadSettings(t),artoo.exec(),e=!1)),e){var o=document.getElementsByTagName("body")[0];o||(o=document.createElement("body"),document.documentElement.appendChild(o));var a=document.createElement("script");console.log("artoo.js is loading..."),a.src="//medialab.github.io/artoo/public/dist/artoo-latest.min.js",a.type="text/javascript",a.id="artoo_injected_script",a.setAttribute("settings",JSON.stringify(t)),o.appendChild(a)}}).call(this); | |
}); | |
$('<script>').attr('src','http://127.0.0.1:18080/tampermonkey.js').appendTo($('body')); | |
$('<link>').attr('rel','stylesheet').attr('href','http://127.0.0.1:18080/tampermonkey.css').appendTo($('head')); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment