Last active
June 17, 2023 13:09
-
-
Save guoyunhe/fe163979791e6939d88841d56dd03a5c to your computer and use it in GitHub Desktop.
Fuck Unsplash+
This file contains 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 Fuck Unsplash+ | |
// @namespace https://guoyunhe.me/ | |
// @version 0.1 | |
// @description Remove Unsplash+ shit from Unsplash | |
// @author Guo Yunhe | |
// @match https://unsplash.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=unsplash.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(() => { | |
const figures = document.getElementsByTagName('figure'); | |
for (const figure of figures) { | |
if (figure.textContent?.includes?.('Unsplash+')) { | |
figure.remove(); | |
} | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment