• 9 Posts
  • 355 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle
  • I have the following, which I didn’t make myself

    DontF-withPaste

    javascript:forceBrowserDefault=(e=>{e.stopImmediatePropagation();return true;});['copy','cut','paste'].forEach(e=>document.addEventListener(e,forceBrowserDefault,true));
    

    Purpose: Restore the ability to paste stuff anywhere, some websites will do this in their password field

    kill-sticky

    (avascript:(function(){document.querySelectorAll("body *").forEach(function(node){if(["fixed","sticky"].includes(getComputedStyle(node).position)){node.parentNode.removeChild(node)}});document.querySelectorAll("html *").forEach(function(node){var s=getComputedStyle(node);if("hidden"===s["overflow"]){node.style["overflow"]="visible"}if("hidden"===s["overflow-x"]){node.style["overflow-x"]="visible"}if("hidden"===s["overflow-y"]){node.style["overflow-y"]="visible"}});var htmlNode=document.querySelector("html");htmlNode.style["overflow"]="visible";htmlNode.style["overflow-x"]="visible";htmlNode.style["overflow-y"]="visible"})();
    

    Purpose: Un-stick anything that remain static when you scroll, ex: website header