Is there a way to make FF extension intercept and modify page document after being received and before rendering or execution such as “beforescriptexecute” as it’s no more working.
I need to stop specific harmful inline ‘Java-scripts’ from execution.
i’m currently using indirect way through “webRequest.filterResponseData” to modify request body when being received but it’s only supported in FF57 and doeasnt offer real control
isn’t there a better way like “beforescriptexecute”?
Thanks for reply, but I was trying to stop specific scripts not all scripts on page I think StreamFilter is the best approach so far, by the way…few moments ago i was trying to use this code in either content.js or bg.js: