I had 2 cases where I changed some stuff in 3rd party webpage. Of course it's a temporary change until the page is reloaded.
In one case I need to remove the class "hidden-print" because the print invoice do not print some info. I need that but the supplier never fix it.
// Remove the class hidden-print from the current webpage // This works only in the browser console of the inspector (F12 for Chrome and others) document.querySelector('.hidden-print').classList.remove('hidden-print');
We will put our javascrip inside the following code
Final code to put as url in our Bookmark
If your script has a lot of lines or it has multi-lines you should consider to minified-compress your code.In the references section there is a good link.
Here the same script minified.
This example will show you how to change user-select from none to initial.
User-Select=none means you cannot select the text. It's a simple way to protext the text and not allow to copy it.