I created a Firefox add-on, the point is that Youtube is built into the side and adds an extra button. A key role is just enough to redirect to another page of youtube link.
The problem is that when changing the youtube video url does not change, but remains above the header change, but not the button. You can, however, be updated properly when I update the page (F5).
What I mean is that the supply is not updated during its navigation on Youtube.
Here is the content of the file main.js which invite the executive file:
var pageMod = require("page-mod");
var self = require("self");
pageMod.PageMod({
include: "*.youtube.com",
contentScriptFile: self.data.url("youtube.js")
});
My question is, how should it be changed so that during navigation in the Youtube freshen the accessories as well?
Thanks in advance!
Best Regards Davee