Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AramZS
Created June 14, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AramZS/bad96d9ba8cb9dd09c6588a36474f48c to your computer and use it in GitHub Desktop.
Save AramZS/bad96d9ba8cb9dd09c6588a36474f48c to your computer and use it in GitHub Desktop.
document.documentElement.style.overflow = "auto";
Object.defineProperty(document.documentElement.style, "overflow", {
set: function(val){
console.log("nop", "NOPed on style overflow", val); return false;
}
} );
Object.freeze(document.documentElement.style);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment