🏠 Home 

G/O UnSlideshow

Remove slideshows from Kinja sites and show them inline instead


Install this script?
  1. // ==UserScript==
  2. // @name G/O UnSlideshow
  3. // @version 1.0
  4. // @description Remove slideshows from Kinja sites and show them inline instead
  5. // @author T h e n o n y m o u s
  6. // @match https://kotaku.com/*
  7. // @match https://gizmodo.com/*
  8. // @match https://lifehacker.com/*
  9. // @match https://jalopnik.com/*
  10. // @match https://avclub.com/*
  11. // @match https://deadspin.com/*
  12. // @match https://theroot.com/*
  13. // @match https://thetakeout.com/*
  14. // @match https://theinventory.com/*
  15. // @match https://jezebel.com/*
  16. // @match https://theonion.com/*
  17. // @icon https://www.google.com/s2/favicons?sz=64&domain=g-omedia.com
  18. // @grant none
  19. // @namespace https://greasyfork.org/users/924302
  20. // ==/UserScript==
  21. (function() {
  22. 'use strict';
  23. let head = document.getElementsByTagName('head')[0];
  24. if (head) {
  25. let style = document.createElement('style');
  26. style.type = 'text/css';
  27. style.innerHTML = `
  28. .js_slide, #js_slideshow-comments-button { display: block !important; }
  29. [id^="js_slideshow-"], #js_slideshow-navigation { display: none !important; }
  30. `;
  31. head.appendChild(style);
  32. }
  33. Array.from(document.querySelectorAll(".js_slide img")).filter((x) => x.getAttribute("data-srcset")).forEach((x) => x.setAttribute("srcset", x.getAttribute("data-srcset")));
  34. })();