mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-02 15:40:13 +00:00
Merge pull request #392 from alastairR/master
NZ Herald fix, missing curly brace
This commit is contained in:
commit
90a2ce2bc2
@ -177,13 +177,13 @@ function removeDOMElement(...elements) {
|
||||
}
|
||||
}
|
||||
|
||||
function removeClassesByPrefix(el, prefix)
|
||||
{
|
||||
function removeClassesByPrefix(el, prefix) {
|
||||
for (let i = el.classList.length - 1; i >= 0; i--) {
|
||||
if(el.classList[i].startsWith(prefix)) {
|
||||
el.classList.remove(el.classList[i]);
|
||||
if(el.classList[i].startsWith(prefix))
|
||||
el.classList.remove(el.classList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function pageContains(selector, text) {
|
||||
let elements = document.querySelectorAll(selector);
|
||||
|
Loading…
Reference in New Issue
Block a user