aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/bookmarklet/kill
diff options
context:
space:
mode:
Diffstat (limited to 'web/bookmarklet/kill')
-rw-r--r--web/bookmarklet/kill22
1 files changed, 22 insertions, 0 deletions
diff --git a/web/bookmarklet/kill b/web/bookmarklet/kill
new file mode 100644
index 0000000..7eb82e3
--- /dev/null
+++ b/web/bookmarklet/kill
@@ -0,0 +1,22 @@
1javascript: (function(){
2 document.querySelectorAll("body *").forEach(function(node) {
3 if(["fixed","sticky"].includes(getComputedStyle(node).position)) {
4 node.parentNode.removeChild(node);
5 }
6 });
7 document.querySelectorAll("html *").forEach(function(node) {
8 var s=getComputedStyle(node);
9 if("hidden"===s["overflow"]) {
10 node.style["overflow"]="visible";
11 }
12 if("hidden"===s["overflow-x"]) {
13 node.style["overflow-x"]="visible";
14 }
15 if("hidden"===s["overflow-y"]) {
16 node.style["overflow-y"]="visible"}
17 });
18 var htmlNode=document.querySelector("html");
19 htmlNode.style["overflow"]="visible";
20 htmlNode.style["overflow-x"]="visible";
21 htmlNode.style["overflow-y"]="visible";
22})();