Created
August 25, 2021 17:18
-
-
Save Gapstare/474bce17e7a7cea547bd16a96f9c0c77 to your computer and use it in GitHub Desktop.
pouet.net avatar replacer for Greasemonkey
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 pouet.net avatar replacer | |
// @namespace https://github.com/Farow/userscripts | |
// @version 1 | |
// @include https://*pouet.net/* | |
// @grant none | |
// ==/UserScript== | |
let lookup_table = { | |
'https://content.pouet.net/avatars/bass_.gif': 'https://eltopo.untergrund.net/funny_stuff/wild.png', | |
'https://content.pouet.net/avatars/colors.gif': 'https://eltopo.untergrund.net/funny_stuff/wild.png' | |
}; | |
for (let image of document.getElementsByTagName('img')) { | |
for (let query in lookup_table) { | |
if (image.src == query) { | |
image.src = lookup_table[query]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment