horrible don't use this
Created
July 26, 2024 11:17
-
-
Save kendb/5c5f898bd9eb12d6a7f6ee6f79d879f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 i hate trending i never want to see it | |
// @namespace poop.pics | |
// @match https://www.tumblr.com/* | |
// @grant none | |
// @version 1.0 | |
// @author kendb | |
// @description really bad; don't use this | |
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2 | |
// ==/UserScript== | |
const disconnect = VM.observe(document.body, () => { | |
(function () { | |
const exploreSpan = document.querySelectorAll("span"); | |
exploreSpan.forEach(e => { | |
if (e.innerText == "Explore") { | |
e.innerText = "For You"; | |
}; | |
}); | |
if (window.location.href == "https://www.tumblr.com/explore/trending") { | |
window.stop(); | |
window.location.assign("https://www.tumblr.com/explore/recommended-for-you") | |
}; | |
if (window.location.href == "https://www.tumblr.com/explore/recommended-for-you") { | |
const exploreTab = document.querySelectorAll('div[style="--offset:0px"]'); | |
exploreTab.forEach(b => { | |
b.setAttribute('style', 'display:none;') | |
}); | |
}; | |
})(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment