Skip to content

Instantly share code, notes, and snippets.

@Mido22
Last active October 28, 2016 16:17
Show Gist options
  • Save Mido22/53e21d5ae2972ae659316632412dad94 to your computer and use it in GitHub Desktop.
Save Mido22/53e21d5ae2972ae659316632412dad94 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name monkeyBusiness.manHasNoName
// @namespace https://gist.github.com/Mido22
// @include http://blank.org/*
// @version 0.0.0
// @require https://code.jquery.com/jquery-3.1.1.slim.min.js
// @require https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js
// @resource bootstrapCSS https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
// @grant GM_addStyle
// @grant GM_getResourceText
// @grant GM_getResourceURL
// @run-at document-start
// ==/UserScript==
document.head.appendChild(cssElement(GM_getResourceURL ("bootstrapCSS")));
$(() => {
'use strict'
let log = console.log.bind(console)
log('--gO craZy1---')
})
function cssElement(url) {
var link = document.createElement("link");
link.href = url;
link.rel="stylesheet";
link.type="text/css";
return link;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment