How to change total counter
-
- Posts: 5
- Joined: Thu Feb 04, 2016 1:17 am
Re: How to change total counter
Yep, you're right. I tried again and figured out what I was doing wrong. Thanks!
Re: How to change total counter
Yes, now it works fine. thank you for the nice topic
Re: How to change total counter
thanks for information
Re: How to change total counter
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:
Update the counter:
Retrieve the counter:
Code: Select all
browser.storage.local.get("pref:blocked_total").then(console.log)
Code: Select all
browser.storage.local.set({"pref:blocked_total": ###})
Re: How to change total counter
Thanks for your help.
Re: How to change total counter
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
What counter are you referring to?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.
-
- Posts: 1
- Joined: Tue Aug 21, 2018 7:29 am
- Contact:
Re: How to change total counter
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
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
-
- Posts: 1
- Joined: Fri Sep 14, 2018 10:41 am
- Contact:
Re: How to change total counter
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
Thanks brogreiner 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. Enterand press "Enter"Code: Select all
copy(localStorage.stats_total)
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(replace "###" with the data from the text file) and press "Enter"Code: Select all
localStorage.stats_total = JSON.stringify(###)
5. Restart Chrome
Re: How to change total counter
This thread helps me a lot to change counter
-
- Posts: 1
- Joined: Wed Sep 23, 2020 7:38 am
- Location: Germany
- Contact:
Re: How to change total counter
This is an important discussion. Thanku so much.
-
- Posts: 7
- Joined: Mon Dec 14, 2020 9:49 am
Re: How to change total counter
Thanks, this helped a lot.
-
- Posts: 1
- Joined: Thu Dec 10, 2020 6:03 pm
Re: How to change total counter
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?