Created
April 8, 2019 23:20
-
-
Save ajeddeloh/63e5e1c142ffed3d5f757b3d5d7278d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Echelog hide part/join | |
// @version 1 | |
// @grant none | |
// @match *://echelog.com/* | |
// ==/UserScript== | |
console.log("asdf"); | |
function elForEach(array, callback, scope) { | |
for (var i = 0; i < array.length; i++) { | |
callback.call(scope, i, array[i]); | |
} | |
} | |
window.addEventListener('load', function() { | |
var spans = document.querySelectorAll('span.a, span.b'); | |
elForEach(spans, function (i, v) { v.parentElement.style.display = 'none'; }); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment