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

Unified Diff: libadblockplus-android-webview/assets/hide.js

Issue 29678581: Issue 6000 - Rename "libadblockplus-android" (Closed)
Patch Set: addressed comments Created Jan. 29, 2018, 11:04 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 | « libadblockplus-android-webview/assets/empty.js ('k') | libadblockplus-android-webview/assets/inject.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-webview/assets/hide.js
diff --git a/libadblockplus-android-webview/assets/hide.js b/libadblockplus-android-webview/assets/hide.js
deleted file mode 100644
index 5565fcd199526d356711c8f396e862f9ef366292..0000000000000000000000000000000000000000
--- a/libadblockplus-android-webview/assets/hide.js
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- {{DEBUG}} console.log('started hiding elements');
- var selectors = JSON.parse({{BRIDGE}}.getElemhideSelectors());
- {{DEBUG}} console.log('parsed selectors: ' + selectors.length);
- for (var i = 0; i < selectors.length; i++)
- {
- var selector = selectors[i];
- if (selector[0] == '#')
- {
- var element = document.getElementById(selector.substr(1));
- if (element != undefined)
- {
- {{DEBUG}} console.log('elem blocked ' + selector);
- element.style.display = 'none';
- };
- }
- else
- {
- var elements = document.getElementsByClassName(selector.substr(1));
- for (var k=0; k < elements.length; k++)
- {
- {{DEBUG}} console.log('elem hidden ' + selector);
- elements[k].style.display = 'none';
- }
- };
- };
- {{DEBUG}} console.log('finished hiding elements');
-};
« no previous file with comments | « libadblockplus-android-webview/assets/empty.js ('k') | libadblockplus-android-webview/assets/inject.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld