ORLY.db no xxx releases

Remove xxx-tagged records in the release log

2015-09-28 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

  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.3
  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(null, document.querySelectorAll('a[href*="/xxx"]'));
  15. setMutationHandler(document, 'a[href*="/xxx"]', processNodes);
  16.  
  17. function processNodes(observer, nodes) {
  18. for (var i=nodes.length, n; --i>=0 && (n=nodes[i].parentNode); )
  19. if (n.id != 'logo')
  20. n.parentNode.remove();
  21. return true;
  22. }