When I view the the html page containing the script in firefox the code loads and exacutes correctly but when I open the webpage via the debug add on and load the page as an addon the script no longer functions, is there a reason this is happening?
Make sure you put your js in a .js file that you load with a <script src="scriptfile.js"></script> tag. Inline scripts are not allowed in extensions, so onload etc. properties in HTML will also not work.
I copied the external script file as detailed on this page (https://www.w3schools.com/js/js_whereto.asp)
“function myFunction() {
document.getElementById(“demo”).innerHTML = “Paragraph changed.”;
}”
Thank you for your response, I have now done that and unfortunately it is still not working. I have done some research into this and it seems to have been an unresolved ongoing issue for a while now. I have been researching some workarounds given this, however is there a way I can access the security certificate of a webpage a user is on and send it to a server via a POST?