javascript - How would I remove/turn Unselectable off on a page using GreaseMonkey? -


kinda new coding wondering how can remove unselectable attribute using greasemonkey script.

this have far.

var elmlink = document.getattributebyid("unselectable"); elmlink.removeattribute('unselectable'); 

there no such function getattributebyid looking document.queryselectorall. can use want.

var elmlink = document.queryselectorall("[unselectable]"); 

now return every element unselectable attribute need loop through them remove attribute.

elmlink.foreach(function(entry) {     entry.removeattribute("unselectable"); }); 

hope helps


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -