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 Download Test | |
// @description Script to test download/install. At least one: require, resource, icon. | |
// @icon /favicon.ico | |
// @require require.js | |
// @resource resource resource.txt | |
// @grant GM.getResourceUrl | |
// ==/UserScript== | |
(async function() { |
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 CSS Resource Test | |
// @version 1 | |
// @grant GM.getResourceUrl | |
// @resource css test.css | |
// ==/UserScript== | |
(async function() { | |
var link = document.createElement('link'); | |
link.rel = 'stylesheet'; |
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 URLSearchParams test | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Test for https://github.com/greasemonkey/greasemonkey/issues/3136 | |
const searchParams = new URLSearchParams("key1=value1&key2=value2"); | |
for (const key of searchParams.keys()) { |
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 Bad match | |
// @description A user script with an improperly formatted @match, which should not install. | |
// @version 1 | |
// @grant none | |
// @match abc | |
// ==/UserScript== |
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 GM.rmc example | |
// @version 1 | |
// @grant GM.registerMenuCommand | |
// ==/UserScript== | |
GM.registerMenuCommand('GM.rmc example', () => alert('GM.rmc example')); |
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 GM.rmc example | |
// @version 1 | |
// @grant none | |
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js | |
// ==/UserScript== | |
GM_registerMenuCommand('GM.rmc example', () => alert('GM.rmc example')); |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<rss version="2.0"> | |
<channel> | |
<title>DOGHOUSEDIARIES</title> | |
<pubDate>Tue, 09 May 2017 00:00:00 +0000</pubDate> | |
<lastBuildDate>Sat, 28 Dec 2019 17:34:53 -0500</lastBuildDate> | |
<link>http://thedoghousediaries.com/</link> | |
<language>en</language> | |
<image> | |
<url>https://scontent-lga3-1.xx.fbcdn.net/v/t1.0-1/p50x50/1510694_10151971936966795_1493121884_n.png?_nc_cat=104&_nc_ohc=5v9cCHoB7iAAQnE0SrL0_1bqdhnw9PaTl_yhpqXq06pscEDZejoSVvPWg&_nc_ht=scontent-lga3-1.xx&oh=5112824c0ca9b259591e3a58fc118994&oe=5E6BD7F6</url> |
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
* { color: red !important; } |
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
'use strict'; | |
// ==UserScript== | |
// @name GM set/get demo | |
// @description Exercises both GM.getValue() and GM.getValue(). Logs a counter which goes up by one, at each page load. | |
// @grant GM.getValue | |
// @grant GM_getValue | |
// @grant GM.setValue | |
// @grant GM_setValue | |
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js | |
// ==/UserScript== |
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
function GM_addStyle(aCss) { | |
'use strict'; | |
let head = document.getElementsByTagName('head')[0]; | |
if (head) { | |
let style = document.createElement('style'); | |
style.setAttribute('type', 'text/css'); | |
style.textContent = aCss; | |
head.appendChild(style); | |
return style; | |
} |
NewerOlder