Last active
September 29, 2022 00:01
-
-
Save Brawl345/96103746f8ef5cce17b0bc38f3e104f1 to your computer and use it in GitHub Desktop.
Userscripts
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 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')); | |
})(); |
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 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; | |
} | |
} | |
})(); |
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 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; | |
} | |
})(); |
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 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"; | |
} | |
} | |
})(); |
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 MyDealz Link Swapper | |
// @version 1.0.0 | |
// @description Zeigt richtige Links auf MyDealz | |
// @author Brawl345 | |
// @match https://www.mydealz.de/* | |
// @icon https://www.mydealz.de/favicon.ico | |
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/mydealz-link-swapper.user.js | |
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/mydealz-link-swapper.user.js | |
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const links = document.getElementsByTagName("a"); | |
const len = links.length | |
for (var i = 0; i < len; i++) { | |
const link = links[i]; | |
if (link.title !== undefined && link.title.startsWith("http")) { | |
link.href = link.title; | |
} | |
} | |
})(); |
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 Romsmania.cc - Swap download link | |
// @version 1.1.2 | |
// @description Swaps the download button link and forces download without timeout | |
// @author Brawl | |
// @match https://romsmania.cc/* | |
// @icon https://romsmania.cc/favicon.ico | |
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/romsmania-link-swapper.user.js | |
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/romsmania-link-swapper.user.js | |
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (document.URL.split('/')[3] === 'download') { | |
// Force download and clear countdown | |
for(var i=0; i<100000; i++) clearTimeout(i); // https://stackoverflow.com/a/4433944 | |
document.getElementsByClassName('wait__text')[0].style.display = 'none'; | |
window.location = document.getElementsByClassName('wait__link')[0]; | |
} else { | |
// Replace DL Link | |
var dlLinkEl = document.getElementById('download_link'); | |
dlLinkEl.href = dlLinkEl.href.replace('?fast', ''); | |
// Hide "show more" | |
document.getElementsByClassName('more')[0].style.display = 'none'; | |
// Append info | |
var about = document.createElement("p"); | |
about.appendChild(document.createTextNode("Link swapped with Link Swapper Userscript")); | |
dlLinkEl.parentNode.insertBefore(about, dlLinkEl.nextSibling); | |
} | |
})(); |
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 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