I know basically nothing about how to run JavaScript or how it is supposed to work in a bookmark. I just see pages on how it is supposed to work and I can't figure it out!!1
Can I run JavaScript from a bookmark on a phone?
I am using an Android and the chrome app. I edit my bookmark and put examples that I have found online and I don't see it doing anything.
If it is possible, can someone post something that I can literally copy/paste into the bookmark for chrome and see it do something like say hello world
?
I have tried javascript:(alert("hello world");)
and javascript:(function(){alert("hello world");})
I looked at these links and couldn't figure it out:
https://en.m.wikipedia.org/wiki/Bookmarklet
https://stackoverflow.com/a/18872722/5582694
What am I doing wrong???