ORLY.db no xxx releases

Remove xxx-tagged records in the release log

  1. // ==UserScript==
  2. // @name ORLY.db no xxx releases
  3. // @description Remove xxx-tagged records in the release log
  4. // @include http://www.orlydb.com/*
  5. // @include http://orlydb.com/*
  6. // @version 1.0.4
  7. // @namespace wOxxOm.scripts
  8. // @author wOxxOm
  9. // @license MIT License
  10. // @run-at document-start
  11. // @require https://greatest.deepsurf.us/scripts/12228/code/setMutationHandler.js
  12. // ==/UserScript==
  13.  
  14. processNodes([].slice.call(document.querySelectorAll('a[href*="/xxx"]')));
  15. setMutationHandler(document, 'a[href*="/xxx"]', processNodes);
  16.  
  17. function processNodes(nodes) {
  18. nodes.forEach(function(n) {
  19. if (n.parentNode.id != 'logo')
  20. n.parentNode.parentNode.remove();
  21. });
  22. return true;
  23. }