Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -192,6 +192,19 @@ |
addAcceptable = false; |
} |
+ // Add "anti-adblock messages" subscription for new users |
+ if (!prevVersion) |
+ { |
+ var subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl); |
+ if (subscription && !(subscription.url in FilterStorage.knownSubscriptions)) |
+ { |
+ subscription.disabled = true; |
+ FilterStorage.addSubscription(subscription); |
+ if (subscription instanceof DownloadableSubscription && !subscription.lastDownload) |
kzar
2016/03/10 16:20:24
Nit: Mind wrapping this long line?
Sebastian Noack
2016/03/11 15:41:01
Done.
|
+ Synchronizer.execute(subscription); |
+ } |
+ } |
+ |
if (!addSubscription && !addAcceptable) |
return; |