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 47 times
1

Alexandre Neukirchen
- 2,713
- 7
- 26
- 36

T.Todua
- 53,146
- 19
- 236
- 237
-
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