Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run JavaScript code continously in browser console even after page reload

I am trying to run a JavaScript code, something like this document.getElementById('someID').innerHTML = ''; in a web browser console. It works fine until the page is refreshed or redirected to another page. Soon after the page refreshes the console gets erased, and I have to manually run it again. Is there a way to run JavaScript code continuously in the browser console even after the page reloads, or is there any other way (externally from the browser console) to accomplish the above task?

like image 683
Naveen Yamparala Avatar asked Jul 13 '26 11:07

Naveen Yamparala


1 Answers

You can try tamper monkey there are chrome and firefox versions https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

like image 141
PHP_Developer Avatar answered Jul 16 '26 01:07

PHP_Developer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!