Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Echelog hide part/join
  3. // @version 1
  4. // @grant none
  5. // @match *://echelog.com/*
  6. // ==/UserScript==
  7.  
  8. console.log("asdf");
  9.  
  10. function elForEach(array, callback, scope) {
  11. for (var i = 0; i < array.length; i++) {
  12. callback.call(scope, i, array[i]);
  13. }
  14. }
  15.  
  16.  
  17. window.addEventListener('load', function() {
  18. var spans = document.querySelectorAll('span.a, span.b');
  19. elForEach(spans, function (i, v) { v.parentElement.style.display = 'none'; });
  20. }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement