Hentai Image Dark Mode

Makes the webapges on hentai-img.com dark themed. Very rushed, just needed something basic in the moment.

  1. // ==UserScript==
  2. // @name Hentai Image Dark Mode
  3. // @namespace https://greasyfork.org/
  4. // @version 0.2
  5. // @description Makes the webapges on hentai-img.com dark themed. Very rushed, just needed something basic in the moment.
  6. // @author You
  7. // @match *://*.hentai-img.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=hentai-img.com
  9. // @grant none
  10. // @license GNU General Public License v3.0
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. setInterval(function () {
  16. document.querySelectorAll(".image-list-item").forEach(o => o.style.backgroundColor = "#111111");
  17. document.body.style.backgroundColor = "#111111";
  18. const keys = "outline main_contents right left center_left left_sidebar center".split(" ");
  19. for (const key of keys) {
  20. const element = document.getElementById(key);
  21. if (element == null) break;
  22. element.style.backgroundColor = "#111111";
  23. element.style.color = "#FFFFFF";
  24. }
  25. }, 100);
  26. })();