Good evening!
I was introduced to javascript last Thursday in an attempt to create an extension for notifications.
I studied a lot and I managed to make it work. The problem is that the notifications are being made by "alert", but I found these annoying rsrs very annoying. So I want to create something better to generate these notifications.
Searching here on stackoverflow, I found a post that indicated that link site and would like to generate something like notification of the image
Theproblemis:Thesiteisthird-party,soIcannotedittheHTML.SoI'mtryingtodosomegambiarratoincludethescriptinthehtmlofthepageandseeifitloads.Thesiteupdatesitselfevery5minutes,soitwouldnotbeaproblemifIcouldinsertdothisgambs(sincetheextensionisloadedagainwheneverthepageupdates).
Itriedusingdocument.getElementsByTagName("HEAD"). innerHTML +=""; in an attempt to give an append but it did not work. Is there any way I can use Lobibox notifications?
If not, could you give me tips on how I could create "cute" notifications for this case?
If my post is too confusing, I'll leave an example: "I want to create an extension that will notify me, using the alert that I liked Lobibox, whenever a new question is asked in stackoverflow, but I'm not the adm of the site, so I can not change the html to include new scripts ". Is there any way to do what I have described?
I accept tips, codes, criticism. Any kind of help or complaint is welcome haha. Vlw!