Page 2 of 3

Re: How to change total counter

Posted: Sat Dec 03, 2016 12:26 am
by AdblockPlusUser
Yep, you're right. I tried again and figured out what I was doing wrong. Thanks!

Re: How to change total counter

Posted: Sat May 20, 2017 11:35 pm
by dev_man
Yes, now it works fine. thank you for the nice topic

Re: How to change total counter

Posted: Fri Jul 07, 2017 2:10 am
by kabebi
thanks for information :wink:

Re: How to change total counter

Posted: Fri Nov 03, 2017 1:23 pm
by greiner
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": ###})

Re: How to change total counter

Posted: Sat Mar 17, 2018 10:55 pm
by nudosu
Thanks for your help.

Re: How to change total counter

Posted: Tue Jul 17, 2018 8:30 pm
by mouniaZad
Where can I change the font size of the coming soon counter? The letters and digits are just too large on a mobile phone.

Re: How to change total counter

Posted: Wed Jul 18, 2018 1:08 pm
by greiner
mouniaZad wrote:Where can I change the font size of the coming soon counter? The letters and digits are just too large on a mobile phone.
What counter are you referring to?

Re: How to change total counter

Posted: Tue Aug 21, 2018 7:48 am
by imjamespeter
However, if you remember the total number (or can approximate it) and it's really important to you to know how many ads AdBlock has ever blocked for you, you can set AdBlock's counter to start at that number instead of 0 after a reinstall. Here's how.

In Chrome:
Open the Chrome Extensions page (Chrome menu > More Tools > Extensions or open a new tab and enter chrome://extensions).
Enable Developer Mode in the upper right corner of the page.
Find AdBlock in the list of extensions.
To the right of "Inspect views," click background page. The Chrome Developer Tools window opens.
Select the Console tab.
Enter the following command, where "x" is a valid integer: Prefs.blocked_total = x

Thank you.!
Regards,
James Mobdro

Re: How to change total counter

Posted: Fri Sep 14, 2018 10:43 am
by bichngoc94
Has any one come across this before and if so how did they reset the total counter reading back to 0.00 without following the suggestion by SAP?

Re: How to change total counter

Posted: Tue May 12, 2020 2:55 pm
by nasar
greiner wrote:That data is not stored within a file but you can still store it using this method:

1. Go to the Adblock Plus options page
2. Press CTRL+SHIFT+J to open the JavaScript console
3. Enter

Code: Select all

copy(localStorage.stats_total)
and press "Enter"
4. Paste the copied data into a text file and save it

To restore it follow these steps:

1. Copy the data from the text file where you saved it previously
2. Go to the Adblock Plus options page
3. Press CTRL+SHIFT+J to open the JavaScript console
4. Enter

Code: Select all

localStorage.stats_total = JSON.stringify(###)
(replace "###" with the data from the text file) and press "Enter"
5. Restart Chrome
Thanks bro

Re: How to change total counter

Posted: Mon Jul 27, 2020 4:11 am
by ramjay
This thread helps me a lot to change counter

Re: How to change total counter

Posted: Sun Oct 04, 2020 12:29 pm
by yegane@27
THANKS

Re: How to change total counter

Posted: Mon Oct 05, 2020 2:38 pm
by hellogetsafe
This is an important discussion. Thanku so much.

Re: How to change total counter

Posted: Mon Dec 14, 2020 11:09 am
by pythonjake
Thanks, this helped a lot.

Re: How to change total counter

Posted: Sat Apr 10, 2021 3:53 pm
by shubharora734
I like being able to reset the stats counter from time to time for a variety of reasons, but after the latest update, none of the methods described in this thread work anymore. Is there any way to do so with this latest version?