Skip to content

Instantly share code, notes, and snippets.

@Gapstare
Created August 25, 2021 17:18
Show Gist options
  • Save Gapstare/474bce17e7a7cea547bd16a96f9c0c77 to your computer and use it in GitHub Desktop.
Save Gapstare/474bce17e7a7cea547bd16a96f9c0c77 to your computer and use it in GitHub Desktop.
pouet.net avatar replacer for Greasemonkey
// ==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