Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ajeddeloh
Created April 8, 2019 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeddeloh/63e5e1c142ffed3d5f757b3d5d7278d0 to your computer and use it in GitHub Desktop.
Save ajeddeloh/63e5e1c142ffed3d5f757b3d5d7278d0 to your computer and use it in GitHub Desktop.
// ==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