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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -