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 Load imgur images without referrer for FactorioPrints | |
// @namespace http://mreb.uk | |
// @version 1 | |
// @description It looks like the actual images are not actually deleted but just blocked by referrer. Loading the images via tampermonkey fixes the site | |
// @author megamit | |
// @match https://factorioprints.com/blueprints | |
// @connect i.imgur.com | |
// @grant GM_xmlhttpRequest | |
// @grant unsafeWindow |
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
//META{"name":"tempFix"}*// | |
/*@cc_on | |
@if (@_jscript) | |
// Offer to self-install for clueless users that try to run this directly. | |
var shell = WScript.CreateObject("WScript.Shell"); | |
var fs = new ActiveXObject("Scripting.FileSystemObject"); | |
var pathPlugins = shell.ExpandEnvironmentStrings("%APPDATA%\\BetterDiscord\\plugins"); | |
var pathSelf = WScript.ScriptFullName; | |
// Put the user at ease by addressing them in the first person |
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
//META{"name":"searchPlugin"}*// | |
class searchPlugin{ | |
constructor(){ | |
this.cancelFlag = false; | |
this.css = "<style class='searchBarPlugin'>"+ | |
"#searchBarInner{"+ | |
"float:right; position:relative; height: 40px; bottom:40px;color:#FFF; padding: 0 4px; border-radius: 4px;"+ | |
'}'+ | |
'.buttonClose{'+ | |
'background: transparent url(https://discordapp.com/assets/14f734d6803726c94b970c3ed80c0864.svg); background-size: cover; transition: opacity .1s easeout; opacity: .5; width:12px; height: 12px; padding: 0'+ |