Skip to content

Instantly share code, notes, and snippets.

@Brawl345
Last active September 29, 2022 00:01
Show Gist options
  • Save Brawl345/96103746f8ef5cce17b0bc38f3e104f1 to your computer and use it in GitHub Desktop.
Save Brawl345/96103746f8ef5cce17b0bc38f3e104f1 to your computer and use it in GitHub Desktop.
Userscripts
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.1.2.1
// @description Replaces the download button link with a working one. Now without jQuery!
// @author Eptun, Brawl
// @match https://www.emuparadise.me/*/*/*
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/emuparadise-download-workaround.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/emuparadise-download-workaround.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
// ==/UserScript==
(function() {
'use strict';
var urlWithoutAnchor = document.URL.split('#')[0];
var id = urlWithoutAnchor.split('/')[5];
var dlLinkEl = document.getElementsByClassName('download-link')[0];
var linkEl = document.createElement('a');
linkEl.appendChild(document.createTextNode('Download using the workaround script (middle click in Firefox)'));
linkEl.href = '/roms/get-download.php?gid=' + id + '&test=true'
linkEl.target = '_blank'
dlLinkEl.insertBefore(linkEl, dlLinkEl.firstChild);
linkEl.appendChild(document.createElement('br'));
linkEl.appendChild(document.createElement('br'));
})();
// ==UserScript==
// @name Fuck You Discord
// @version 1.0.1.1
// @description Swaps Discordapp Image Links
// @author Brawl
// @match https://old.reddit.com/*
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/fuck-you-discord.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/fuck-you-discord.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
// ==/UserScript==
(function() {
'use strict';
var pattern = /^https?:\/\/.+\.discordapp\.(?:com|net)\/attachments\/\d+\/\d+\/.+\.(?:png|jpg|jpeg|gif|bmp)/;
var all_links = document.getElementsByTagName('a');
for(var i=0; i < all_links.length; i++) {
var link = all_links[i];
if(pattern.test(link)) {
link.href = "https://andi7.uber.space/img.php?url=" + link.href;
}
}
var all_images = document.getElementsByTagName('img');
for(var i=0; i < all_images.length; i++) {
var image = all_images[i];
if(pattern.test(image)) {
image.src = "https://andi7.uber.space/img.php?url=" + image.src;
}
}
})();
// ==UserScript==
// @name Google.de - "Es fehlt" gar nichts
// @version 1.0.1.1
// @description Graut "Es fehlt" Ergebnisse aus
// @author Brawl345
// @match https://www.google.com/search*
// @icon https://www.google.com/s2/favicons?domain=www.google.com
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/google-es-fehlt-gar-nichts.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/google-es-fehlt-gar-nichts.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
// ==/UserScript==
(function() {
'use strict';
var all_missing = document.getElementsByTagName("s");
for (var i = 0; i < all_missing.length; i++) {
var missingParent = all_missing[i].parentElement.parentElement.parentElement.parentElement;
missingParent.style.opacity = 0.3;
}
})();
// ==UserScript==
// @name Zeit.de - Kein ZEIT PLUS
// @version 1.0.0
// @description Entfernt ZEIT PLUS Artikel
// @author Brawl
// @match https://www.zeit.de/*
// @icon https://www.zeit.de/favicon.ico
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/kein-zeit-plus.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/kein-zeit-plus.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
// ==/UserScript==
(function() {
'use strict';
var articles = document.getElementsByTagName('article');
var zplusarticle = null;
for(var i = 0; i < articles.length; ++i) {
if(typeof articles[i].dataset["zplus"] !== "undefined") {
zplusarticle = articles[i];
zplusarticle.style.display = "none";
}
}
})();
// ==UserScript==
// @name YouTube (Old Design) - No Translation
// @version 1.0.0
// @description Uses the original title for video pages
// @author Brawl
// @match https://www.youtube.com/watch?v=*
// @icon https://s.ytimg.com/yts/img/favicon-vfl8qSV2F.ico
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/youtube-no-translation.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/youtube-no-translation.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementById("eow-title").innerText = document.title.substring(0, document.title.length - 10);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment