So I'm trying to create userscript for one website. I cannot change any source code of website as it is not mine. Website is using AngularJS controllers everywhere. I'm researching for couple of days how to do this, but not successful.
So I'm trying to inject code $(".nav").after("<div>test</div>");
it is working when I do it via Firefox Developers Console, but why it doesn't work when I'm trying to do it via Userscript.
I did add $(function () { ... });
thingy to code so it fires handle after DOM is ready, but it still doesn't work.
Is there a way to do it? I'm desperate of understanding how AngularJS works...
I will appreciate any help.