Skip to content

Instantly share code, notes, and snippets.

@jokester
Forked from sindresorhus/template.user.js
Created April 2, 2013 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jokester/5290008 to your computer and use it in GitHub Desktop.
Save jokester/5290008 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Script name
// @description Description
// @namespace http://yourwebsite.com
// @version 0.1.0
// @author Your name
// @license MIT
// @released 2013-02-17
// @updated 2013-02-17
// @match *://example.com/*
// @match *://www.example.com/*
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
// before the DOM has loaded
document.addEventListener('DOMContentLoaded', function (e) {
// after the DOM has loaded
// silently fails in Firefox if placed outside when `document-start`
GM_addStyle('body { background: hotPink }');
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment