SHARE
TWEET

BetterAmal

a guest May 12th, 2020 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         BetterAmal
  3. // @version      0.1
  4. // @description  Fixes Amal's profile picture
  5. // @author       leumas95
  6. // @match        https://forum.dangerousthings.com/**
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. let lookup_table = {
  11.     'https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/50/16_2.png': 'https://forum.dangerousthings.com/uploads/default/optimized/2X/9/9e51cfc92aee99802066b0b8797531b1477fbf80_2_750x1000.jpeg',
  12.     'https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/90/16_2.png': 'https://forum.dangerousthings.com/uploads/default/optimized/2X/9/9e51cfc92aee99802066b0b8797531b1477fbf80_2_750x1000.jpeg',
  13.     'https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/240/16_2.png': 'https://forum.dangerousthings.com/uploads/default/optimized/2X/9/9e51cfc92aee99802066b0b8797531b1477fbf80_2_750x1000.jpeg',
  14. };
  15.  
  16. function LocalMain () {
  17.     for (let image of document.getElementsByTagName('img')) {
  18.         for (let query in lookup_table) {
  19.             if (image.src == query) {
  20.                 image.src = lookup_table[query];
  21.             }
  22.         }
  23.     }
  24. }
  25.  
  26. LocalMain(); //-- Fire GM script once, normally.
  27.  
  28. document.addEventListener ("DOMSubtreeModified", LocalMain, false);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top