Update Tumblr Unnagger to 1.0.2
- Fix hiding sign up and follow buttons
This commit is contained in:
parent
57875d4733
commit
4f32e63ece
|
@ -2,9 +2,8 @@
|
||||||
// @name Tumblr Unnagger
|
// @name Tumblr Unnagger
|
||||||
// @namespace blankie-scripts
|
// @namespace blankie-scripts
|
||||||
// @match https://*.tumblr.com/*
|
// @match https://*.tumblr.com/*
|
||||||
// @exclude-match https://www.tumblr.com/*
|
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
// @version 1.0.1
|
// @version 1.0.2
|
||||||
// @author blankie
|
// @author blankie
|
||||||
// @description Removes login nags
|
// @description Removes login nags
|
||||||
// @inject-into content
|
// @inject-into content
|
||||||
|
@ -49,10 +48,9 @@ if (/^\/archive(\/.*)?$/.test(window.location.pathname)) {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.hostname !== "www.tumblr.com" || window.location.pathname === "/dashboard/iframe") {
|
||||||
GM_addStyle(css);
|
GM_addStyle(css);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function removeLoginWall(element) {
|
function removeLoginWall(element) {
|
||||||
element.removeAttribute("data-login-wall-type");
|
element.removeAttribute("data-login-wall-type");
|
||||||
for (let child of element.querySelectorAll("[data-login-wall-type]")) {
|
for (let child of element.querySelectorAll("[data-login-wall-type]")) {
|
||||||
|
@ -78,3 +76,4 @@ let observer = new MutationObserver(function(mutations) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
observer.observe(document.body, {childList: true, subtree: true});
|
observer.observe(document.body, {childList: true, subtree: true});
|
||||||
|
}
|
Loading…
Reference in New Issue