Skip to content

Instantly share code, notes, and snippets.

@anevins12
Created July 20, 2020 16:29
Show Gist options
  • Save anevins12/e394718db5af815da397e6702d552c3a to your computer and use it in GitHub Desktop.
Save anevins12/e394718db5af815da397e6702d552c3a to your computer and use it in GitHub Desktop.
Tampermonkey: Add jQuery to page
// ==UserScript==
// @name Pa11y filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match **Fill this in***
// @grant none
// ==/UserScript==
(function() {
'use strict';
const $jQueryScript = document.createElement('script');
$jQueryScript.src = 'https://code.jquery.com/jquery-3.5.1.min.js';
$jQueryScript.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild($jQueryScript);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment