Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.preload.js

Issue 29737561: Issue 6539, 6782 - Implement support for snippets (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase, simplify, execute script on "snippets.executeScripts" message Created May 23, 2018, 5:06 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/scriptInjection.js » ('j') | lib/scriptInjection.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -587,16 +587,18 @@
});
}
};
if (document instanceof HTMLDocument)
{
checkSitekey();
+ browser.runtime.sendMessage({type: "snippets.executeScripts"});
Manish Jethani 2018/05/23 05:12:45 Send message to background page to execute any scr
Sebastian Noack 2018/05/23 12:32:18 How about using a combined message for element hid
Manish Jethani 2018/07/19 01:00:53 Done. The ElemHide class is now renamed to Conten
+
elemhide = new ElemHide();
elemhide.apply();
document.addEventListener("error", event =>
{
checkCollapse(event.target);
}, true);
« no previous file with comments | « no previous file | lib/scriptInjection.js » ('j') | lib/scriptInjection.js » ('J')

Powered by Google App Engine
This is Rietveld