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

Unified Diff: pages/IAdblockPlus.raw

Issue 6021528219025408: Issue #1170 More progress migrating adblockplus.org to our CMS. (Closed)
Patch Set: Created Sept. 1, 2014, 10:45 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 | « locales/zh_TW/subscriptions.json ('k') | pages/IAdblockPlusSubscription.raw » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/IAdblockPlus.raw
===================================================================
new file mode 100644
--- /dev/null
+++ b/pages/IAdblockPlus.raw
@@ -0,0 +1,27 @@
+template=interface
+
+
+<style type="text/css">
+.propname, .methodname, .argumentname
+{
+ font-weight: bold;
+}
+</style>
+
+<p>
+ $s1$
+</p>
+
+<pre>
+if (&quot;@adblockplus.org/abp/public;1&quot; in Components.classes)
+{
+ var abpURL = Components.classes[&quot;@adblockplus.org/abp/public;1&quot;]
+ .getService(Components.interfaces.nsIURI);
+ var AdblockPlus = Components.utils.import(abpURL.spec, null).AdblockPlus;
+ alert(AdblockPlus.subscriptionCount);
+}
+else
+{
+ // Adblock Plus is not installed
+}
+</pre>
« no previous file with comments | « locales/zh_TW/subscriptions.json ('k') | pages/IAdblockPlusSubscription.raw » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld