Greasy Fork is available in English.

Remove custom css on VOAT

Removes the dark custom CSS theme from subverses on VOAT.co

  1. // ==UserScript==
  2. // @name Remove custom css on VOAT
  3. // @include https://voat.co/*
  4. // @include https://www.voat.co/*
  5. // @description Removes the dark custom CSS theme from subverses on VOAT.co
  6. // @version 1.0.2
  7. // @author wOxxOm
  8. // @namespace wOxxOm.scripts
  9. // @license MIT License
  10. // @run-at document-start
  11. // @grant none
  12. // @require https://greatest.deepsurf.us/scripts/12228/code/setMutationHandler.js
  13. // ==/UserScript==
  14.  
  15. [].forEach.call(document.querySelectorAll('#custom_css'), function(node) { node.remove() });
  16.  
  17. setMutationHandler(document, '#custom_css', function(nodes) {
  18. nodes.forEach(function(node) { node.remove() });
  19. if (!this.stopQueued) {
  20. this.stopQueued = true;
  21. document.addEventListener("DOMContentLoaded", this.disconnect.bind(this));
  22. }
  23. return true;
  24. });