diff options
Diffstat (limited to '.config/qutebrowser/greasemonkey/unsplash.js')
-rwxr-xr-x | .config/qutebrowser/greasemonkey/unsplash.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/qutebrowser/greasemonkey/unsplash.js b/.config/qutebrowser/greasemonkey/unsplash.js index 7d65781..17b117b 100755 --- a/.config/qutebrowser/greasemonkey/unsplash.js +++ b/.config/qutebrowser/greasemonkey/unsplash.js @@ -12,6 +12,7 @@ console.log("AAAAAAAA"); e.remove(); }); + })(); GM_addStyle(` @@ -21,3 +22,11 @@ GM_addStyle(` height: 0; } `) + +const text = 'Unsplash+'; +for (const container of document.querySelectorAll('figure')) { + if (container.textContent.includes(text)) { + container.remove(); + } + console.log(container); +} |