Is there any way, to create a global function (i.e. MyFunction) in a browser, so, I can execute it on any site, on any page (because browser will know it).
Asked
Active
Viewed 46 times
1
Alexandre Neukirchen
- 2,557
- 7
- 23
- 34
T.Todua
- 49,021
- 18
- 212
- 206
-
1Of course. Create an extension. For example in this answer new function is added to `window`: http://stackoverflow.com/questions/9051205/adding-custom-functionality-into-chromes-console/9051533#9051533 – dfsq Dec 20 '16 at 13:05