PugLife

Replace all images on fetlife with pug images

  1. // ==UserScript==
  2. // @name PugLife
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Replace all images on fetlife with pug images
  6. // @author reneklacan
  7. // @match http://tampermonkey.net/index.php?version=4.3.6&ext=dhdg&updated=true
  8. // @grant none
  9. // @run-at document-start
  10. // @include https://fetlife.com/*
  11. // @include https://*.fetlife.com/*
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. var imgLink = "https://vetstreet.brightspotcdn.com/dims4/default/10dae76/2147483647/thumbnail/645x380/quality/90/?url=https%3A%2F%2Fvetstreet-brightspot.s3.amazonaws.com%2F3a%2F54%2F5ae8bfcc41b381c27a792e0dd891%2FAP-KWDHXS-645sm8113.jpg";
  17. setInterval(function() {
  18. document
  19. .querySelectorAll('img')
  20. .forEach(function(img) {
  21. if (img.src != imgLink) {
  22. img.src = imgLink;
  23. }
  24. });
  25. }, 200);
  26. })();