Run my Javascript code on every page on my browser, similar to how a chrome extension would
问题 I know with Chrome I can use snippets to manually run some js code on a webpage. But This required manually executing the snippet. is there any way to have some JS code that my browser (chrome or firefox) would every time I visited a new page? 回答1: You may be looking for userscripts. These allow you to write Javascript code which will then be automatically executed whenever you visit a page matching a particular pattern. For example, the following userscript: // ==UserScript== // @name