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
Post a Comment