How to change total counter

Everything about using Adblock Plus on Google Chrome

Re: How to change total counter

Postby AdblockPlusUser » Sat Dec 03, 2016 1:26 am

Yep, you're right. I tried again and figured out what I was doing wrong. Thanks!
AdblockPlusUser
 
Posts: 5
Joined: Thu Feb 04, 2016 2:17 am

Re: How to change total counter

Postby dev_man » Sat May 20, 2017 11:35 pm

Yes, now it works fine. thank you for the nice topic
dev_man
 
Posts: 2
Joined: Mon Apr 03, 2017 1:28 pm

Re: How to change total counter

Postby kabebi » Fri Jul 07, 2017 2:10 am

thanks for information :wink:
kabebi
 
Posts: 1
Joined: Fri Jul 07, 2017 2:07 am
Location: tbilisi

Re: How to change total counter

Postby greiner » Fri Nov 03, 2017 2:23 pm

Recently, we've made quite significant changes to the Adblock Plus code due to the upcoming release of our Web Extension version for Firefox. That means that the code you need to run to retrieve or update the counter has changed.

Retrieve the counter:
Code: Select all
browser.storage.local.get("pref:blocked_total").then(console.log)


Update the counter:
Code: Select all
browser.storage.local.set({"pref:blocked_total": ###})
User avatar
greiner
ABP Developer
 
Posts: 636
Joined: Mon Sep 03, 2012 5:29 pm
Location: Cologne, Germany

Previous

Return to Adblock Plus for Chrome support

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests