aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@topo.tw>2023-02-03 11:37:28 +0800
committerHsieh Chin Fan <typebrook@topo.tw>2023-02-03 11:37:28 +0800
commite60b33c82b02ae04cb7acde079fd9c5ad2044ecc (patch)
tree9a5ea9e191d7135ce5c5ce7e05a769a9b98dfb4f
parent6bd8e6fb44f8821cd57a357e2802f266d5b0dcc2 (diff)
Update
-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})();