Skip to content

Instantly share code, notes, and snippets.

@guoyunhe
Last active June 17, 2023 13:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guoyunhe/fe163979791e6939d88841d56dd03a5c to your computer and use it in GitHub Desktop.
Save guoyunhe/fe163979791e6939d88841d56dd03a5c to your computer and use it in GitHub Desktop.
Fuck Unsplash+
// ==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