Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adminSettings and filterLists #2450

Closed
spec1re opened this issue Mar 13, 2017 · 20 comments
Closed

adminSettings and filterLists #2450

spec1re opened this issue Mar 13, 2017 · 20 comments

Comments

@spec1re
Copy link

spec1re commented Mar 13, 2017

Since some time the "filterLists" and "selectedFilterLists" doesn't apply anymore like before, but eg. "netWhitelist" still does.

Same like here #2419 but the new format doesn't work with Chrome.

grafik

  • Chrome Version 57.0.2987.98 (64-bit)
  • uBlock Origin v1.11.2

Any idea what could it be?

@gorhill
Copy link
Owner

gorhill commented Mar 13, 2017

There is no possible answer if you don't provide the actual value of adminSettings.

@spec1re
Copy link
Author

spec1re commented Mar 13, 2017

Sorry :)

  • Chrome Version 57.0.2987.98 (64-bit)
  • uBlock Origin v1.11.2
  • Software\Policies\Google\Chrome\3rdparty\extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm\policy
	{"userSettings":{"autoUpdate":true,"externalLists":"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\nhttps://secure.fanboy.co.nz/fanboy-turkish.txt\n","webrtcIPAddressHidden":true},"filterLists":{"assets/user/filters.txt":{"group":"default","off":false,"entryCount":0,"entryUsedCount":0},"assets/ublock/experimental.txt":{"title":"uBlock filters – Experimental","group":"default","off":true,"supportURL":"https://github.com/gorhill/uBlock/wiki/Experimental-filters","instructionURL":"https://github.com/gorhill/uBlock/wiki/Experimental-filters","supportName":"github.com"},"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt":{"title":"Block-EU-Cookie-Shit-List","group":"custom","external":true,"off":false,"entryCount":1136,"entryUsedCount":390},"https://secure.fanboy.co.nz/fanboy-turkish.txt":{"title":"","group":"custom","external":true,"entryCount":838,"entryUsedCount":750},"assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt":{"title":"EasyList","group":"ads","homeURL":"https://easylist.to/easylist/easylist.txt","supportURL":"https://forums.lanik.us/","off":false,"entryCount":69785,"entryUsedCount":69676},"https://easylist-downloads.adblockplus.org/easylistgermany.txt":{"off":false,"title":"DEU: EasyList Germany","group":"regions","lang":"de","supportURL":"https://forums.lanik.us/viewforum.php?f=90","entryCount":9691,"entryUsedCount":9688},"assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt":{"title":"EasyPrivacy","group":"privacy","homeURL":"https://easylist.to/easylist/easyprivacy.txt","supportURL":"https://forums.lanik.us/","off":false,"entryCount":12260,"entryUsedCount":12206},"https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt":{"off":false,"title":"Fanboy’s Annoyance List","group":"social","supportURL":"https://forums.lanik.us/","entryCount":24958,"entryUsedCount":10006},"https://easylist-downloads.adblockplus.org/fanboy-social.txt":{"off":false,"title":"Fanboy’s Social Blocking List","group":"social","supportURL":"https://forums.lanik.us/","entryCount":14707,"entryUsedCount":14684},"https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt":{"off":false,"title":"Malvertising filter list by Disconnect","group":"malware","entryCount":5553,"entryUsedCount":384},"https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt":{"off":false,"title":"Malware filter list by Disconnect","group":"malware","entryCount":2817,"entryUsedCount":137},"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt":{"off":false,"title":"Basic tracking list by Disconnect","group":"privacy","entryCount":34,"entryUsedCount":29},"https://easylist-downloads.adblockplus.org/antiadblockfilters.txt":{"off":false,"title":"Adblock Warning Removal List","group":"ads","supportURL":"https://forums.lanik.us/","entryCount":301,"entryUsedCount":297},"https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt":{"off":false,"title":"EU: Prebake - Filter Obtrusive Cookie Notices","group":"regions","supportURL":"https://github.com/liamja/Prebake","entryCount":862,"entryUsedCount":859},"http://malwaredomains.lehigh.edu/files/immortal_domains.txt":{"off":false,"title":"Malware domains (long-lived)","group":"malware","supportURL":"http://www.malwaredomains.com/","entryCount":3205,"entryUsedCount":2414},"assets/thirdparties/mirror1.malwaredomains.com/files/justdomains":{"title":"Malware domains","group":"malware","homeURL":"https://mirror.cedia.org.ec/malwaredomains/justdomains","supportURL":"http://www.malwaredomains.com/","off":false,"entryCount":13215,"entryUsedCount":13176},"assets/thirdparties/pgl.yoyo.org/as/serverlist":{"title":"Peter Lowe’s Ad and tracking server list","group":"multipurpose","homeURL":"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext","supportURL":"https://pgl.yoyo.org/adservers/","off":false,"entryCount":2374,"entryUsedCount":2373},"https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt":{"off":false,"title":"Spam404","group":"malware","supportURL":"http://www.spam404.com/","entryCount":5640,"entryUsedCount":5639},"https://www.fanboy.co.nz/enhancedstats.txt":{"off":false,"title":"Fanboy’s Enhanced Tracking List","group":"privacy","supportURL":"https://forums.lanik.us/","entryCount":1106,"entryUsedCount":1106},"https://www.fanboy.co.nz/fanboy-antifacebook.txt":{"off":false,"title":"Anti-ThirdpartySocial (see warning inside list)","group":"social","supportURL":"https://forums.lanik.us/","entryCount":65,"entryUsedCount":65},"https://filters.adtidy.org/extension/chromium/filters/13.txt":{"off":false,"title":"TUR: Adguard Turkish Filter","group":"regions","lang":"tr","supportURL":"http://forum.adguard.com/forumdisplay.php?51-Filter-Rules","entryCount":2501,"entryUsedCount":2488},"assets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt":{"title":"Malware Domain List","group":"malware","homeURL":"https://www.malwaredomainlist.com/hostslist/hosts.txt","off":false,"entryCount":1218,"entryUsedCount":1218}},"hiddenSettingsString":"ignoreRedirectFilters false\nignoreScriptInjectFilters false\npopupFontSize unset\nsuspendTabsUntilReady false","netWhitelist":"about-scheme\nbehind-the-scene\nchrome-extension-scheme\nchrome-scheme"}

and same problem with:

  • Firefox 52.0 (32-Bit)
  • uBlock Origin v1.11.2

	// uBlock Origin 
	defaultPref("extensions.ublock0.adminSettings", "{\"userSettings\":{\"autoUpdate\":true,\"externalLists\":\"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\\nhttps://secure.fanboy.co.nz/fanboy-turkish.txt\\n\",\"webrtcIPAddressHidden\":true},\"filterLists\":{\"assets/user/filters.txt\":{\"group\":\"default\",\"off\":false,\"entryCount\":8,\"entryUsedCount\":8},\"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\":{\"title\":\"Block-EU-Cookie-Shit-List\",\"group\":\"custom\",\"external\":true,\"off\":false,\"entryCount\":1136,\"entryUsedCount\":390},\"assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt\":{\"title\":\"EasyList\",\"group\":\"ads\",\"homeURL\":\"https://easylist.to/easylist/easylist.txt\",\"supportURL\":\"https://forums.lanik.us/\",\"off\":false,\"entryCount\":69713,\"entryUsedCount\":69604},\"https://easylist-downloads.adblockplus.org/easylistgermany.txt\":{\"off\":false,\"title\":\"DEU: EasyList Germany\",\"group\":\"regions\",\"lang\":\"de\",\"supportURL\":\"https://forums.lanik.us/viewforum.php?f=90\",\"entryCount\":9579,\"entryUsedCount\":9576},\"assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt\":{\"title\":\"EasyPrivacy\",\"group\":\"privacy\",\"homeURL\":\"https://easylist.to/easylist/easyprivacy.txt\",\"supportURL\":\"https://forums.lanik.us/\",\"off\":false,\"entryCount\":12243,\"entryUsedCount\":12189},\"https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt\":{\"off\":false,\"title\":\"Fanboy’s Annoyance List\",\"group\":\"social\",\"supportURL\":\"https://forums.lanik.us/\",\"entryCount\":24936,\"entryUsedCount\":9995},\"https://easylist-downloads.adblockplus.org/fanboy-social.txt\":{\"off\":false,\"title\":\"Fanboy’s Social Blocking List\",\"group\":\"social\",\"supportURL\":\"https://forums.lanik.us/\",\"entryCount\":14696,\"entryUsedCount\":14673},\"https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt\":{\"off\":false,\"title\":\"Malvertising filter list by Disconnect\",\"group\":\"malware\",\"entryCount\":5563,\"entryUsedCount\":381},\"https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt\":{\"off\":false,\"title\":\"Malware filter list by Disconnect\",\"group\":\"malware\",\"entryCount\":2827,\"entryUsedCount\":143},\"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt\":{\"off\":false,\"title\":\"Basic tracking list by Disconnect\",\"group\":\"privacy\",\"entryCount\":34,\"entryUsedCount\":29},\"https://easylist-downloads.adblockplus.org/antiadblockfilters.txt\":{\"off\":false,\"title\":\"Adblock Warning Removal List\",\"group\":\"ads\",\"supportURL\":\"https://forums.lanik.us/\",\"entryCount\":297,\"entryUsedCount\":294},\"https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt\":{\"off\":false,\"title\":\"EU: Prebake - Filter Obtrusive Cookie Notices\",\"group\":\"regions\",\"supportURL\":\"https://github.com/liamja/Prebake\",\"entryCount\":862,\"entryUsedCount\":859},\"http://malwaredomains.lehigh.edu/files/immortal_domains.txt\":{\"off\":false,\"title\":\"Malware domains (long-lived)\",\"group\":\"malware\",\"supportURL\":\"http://www.malwaredomains.com/\",\"entryCount\":3205,\"entryUsedCount\":2414},\"assets/thirdparties/mirror1.malwaredomains.com/files/justdomains\":{\"title\":\"Malware domains\",\"group\":\"malware\",\"homeURL\":\"https://mirror.cedia.org.ec/malwaredomains/justdomains\",\"supportURL\":\"http://www.malwaredomains.com/\",\"off\":false,\"entryCount\":12412,\"entryUsedCount\":12373},\"assets/thirdparties/pgl.yoyo.org/as/serverlist\":{\"title\":\"Peter Lowe’s Ad and tracking server list\",\"group\":\"multipurpose\",\"homeURL\":\"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext\",\"supportURL\":\"https://pgl.yoyo.org/adservers/\",\"off\":false,\"entryCount\":2367,\"entryUsedCount\":2366},\"https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt\":{\"off\":false,\"title\":\"Spam404\",\"group\":\"malware\",\"supportURL\":\"http://www.spam404.com/\",\"entryCount\":5640,\"entryUsedCount\":5639},\"https://www.fanboy.co.nz/enhancedstats.txt\":{\"off\":false,\"title\":\"Fanboy’s Enhanced Tracking List\",\"group\":\"privacy\",\"supportURL\":\"https://forums.lanik.us/\",\"entryCount\":1105,\"entryUsedCount\":1105},\"https://www.fanboy.co.nz/fanboy-antifacebook.txt\":{\"off\":false,\"title\":\"Anti-ThirdpartySocial (see warning inside list)\",\"group\":\"social\",\"supportURL\":\"https://forums.lanik.us/\",\"entryCount\":65,\"entryUsedCount\":65},\"https://filters.adtidy.org/extension/chromium/filters/13.txt\":{\"off\":false,\"title\":\"TUR: Adguard Turkish Filter\",\"group\":\"regions\",\"lang\":\"tr\",\"supportURL\":\"http://forum.adguard.com/forumdisplay.php?51-Filter-Rules\",\"entryCount\":2501,\"entryUsedCount\":2488},\"assets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt\":{\"title\":\"Malware Domain List\",\"group\":\"malware\",\"homeURL\":\"https://www.malwaredomainlist.com/hostslist/hosts.txt\",\"off\":false,\"entryCount\":1250,\"entryUsedCount\":1250}},\"hiddenSettingsString\":\"ignoreRedirectFilters false\\nignoreScriptInjectFilters false\\npopupFontSize unset\\nsuspendTabsUntilReady false\",\"netWhitelist\":\"\about-scheme\\nbehind-the-scene\\nchrome-extension-scheme\\nchrome-scheme\\nloopconversation.about-scheme\\nopera-scheme\"}");

It just gets ignored by uBlock.

@spec1re spec1re closed this as completed Mar 13, 2017
@spec1re spec1re reopened this Mar 13, 2017
@gorhill
Copy link
Owner

gorhill commented Mar 13, 2017

This was working when I tested following the refactoring, but broke it when I decided to add forward compatibility to be sure to not inconvenience users in case they would want to install an older version after installing 1.11.0.

@spec1re
Copy link
Author

spec1re commented Mar 13, 2017

So it is fixed in the next release? Sorry just asking.

Thank you.

@gorhill
Copy link
Owner

gorhill commented Mar 13, 2017

Fixed in 1.11.4, which was just approved on AMO, and pending review in Chrome store.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Sorry but I can't get this working anymore, no matter what I try, none of the filterLists get the checkbox selected.

Reverting back to uBlock Origin v1.10.6 and the extensions.ublock0.adminSettings is working as expected again.

  • Firefox 52.0 (32-Bit)
  • uBlock Origin v1.10.6

Can you please provide me an example of a working extensions.ublock0.adminSettings line for uBlock Origin v1.11.4?

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

Can you please provide me an example of a working

I used yours and it worked.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Negative here, tested with Firefox 52.0, Chrome 57 and v1.11.4, no luck.

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

You edited the comment in which you provided your original, working adminSettings value. What is there now doesn't look right.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Yes I just deleted the white listings, but its 100% the same.

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

Just use what you pasted originally in your comment above, I do not have a copy on my side.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Okay, let me do some checks again, will be reporting back soon.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Okay here we go, all fine now just needed to adjust "filterLists" and "selectedFilterLists" a bit to make the check boxes active. Here the working lines:

  • Chrome Version 57.0.2987.98 (64-bit)
  • uBlock Origin v1.11.4
  • Software\Policies\Google\Chrome\3rdparty\extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm\policy\adminSettings
{"userSettings":{"autoUpdate":true,"externalLists":"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\nhttps://secure.fanboy.co.nz/fanboy-turkish.txt\n","webrtcIPAddressHidden":true}, "filterLists":{"https://secure.fanboy.co.nz/fanboy-turkish.txt":{"off":false},"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt":{"off":false},"https://adguard.com/filter-rules.html?id=13":{"off":false},"https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt":{"off":false},"https://easylist-downloads.adblockplus.org/easylistgermany.txt":{"off":false},"assets/thirdparties/pgl.yoyo.org/as/serverlist":{"off":false},"https://easylist-downloads.adblockplus.org/fanboy-social.txt":{"off":false},"https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt":{"off":false},"https://www.fanboy.co.nz/fanboy-antifacebook.txt":{"off":false},"https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt":{"off":false},"https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt":{"off":false},"http://malwaredomains.lehigh.edu/files/immortal_domains.txt":{"off":false},"assets/thirdparties/mirror1.malwaredomains.com/files/justdomains":{"off":false},"assets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt":{"off":false},"https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt":{"off":false},"https://www.fanboy.co.nz/enhancedstats.txt":{"off":false},"assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt":{"off":false},"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt":{"off":false},"assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt":{"off":false},"https://easylist-downloads.adblockplus.org/antiadblockfilters.txt":{"off":false},"assets/ublock/unbreak.txt":{"off":false},"assets/ublock/privacy.txt":{"off":false},"assets/ublock/badware.txt":{"off":false},"assets/ublock/filters.txt":{"off":false},"assets/user/filters.txt":{"off":false},"assets/ublock/experimental.txt":{"off":true}},"hiddenSettingsString":"ignoreRedirectFilters false\nignoreScriptInjectFilters false\npopupFontSize unset\nsuspendTabsUntilReady false"}
  • Firefox 52.0 (32-Bit)
  • uBlock Origin v1.11.4
  • mozilla.cfg
// uBlock Origin 
defaultPref("extensions.ublock0.adminSettings", "{\"userSettings\":{\"autoUpdate\":true,\"externalLists\":\"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\\nhttps://secure.fanboy.co.nz/fanboy-turkish.txt\\n\",\"webrtcIPAddressHidden\":true},\"filterLists\":{\"https://secure.fanboy.co.nz/fanboy-turkish.txt\":{\"off\":false},\"https://raw.githubusercontent.com/r4vi/block-the-eu-cookie-shit-list/master/filterlist.txt\":{\"off\":false},\"https://adguard.com/filter-rules.html?id=13\":{\"off\":false},\"https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt\":{\"off\":false},\"https://easylist-downloads.adblockplus.org/easylistgermany.txt\":{\"off\":false},\"assets/thirdparties/pgl.yoyo.org/as/serverlist\":{\"off\":false},\"https://easylist-downloads.adblockplus.org/fanboy-social.txt\":{\"off\":false},\"https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt\":{\"off\":false},\"https://www.fanboy.co.nz/fanboy-antifacebook.txt\":{\"off\":false},\"https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt\":{\"off\":false},\"https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt\":{\"off\":false},\"http://malwaredomains.lehigh.edu/files/immortal_domains.txt\":{\"off\":false},\"assets/thirdparties/mirror1.malwaredomains.com/files/justdomains\":{\"off\":false},\"assets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt\":{\"off\":false},\"https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt\":{\"off\":false},\"https://www.fanboy.co.nz/enhancedstats.txt\":{\"off\":false},\"assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt\":{\"off\":false},\"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt\":{\"off\":false},\"assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt\":{\"off\":false},\"https://easylist-downloads.adblockplus.org/antiadblockfilters.txt\":{\"off\":false},	\"assets/ublock/unbreak.txt\":{\"off\":false},\"assets/ublock/privacy.txt\":{\"off\":false},\"assets/ublock/badware.txt\":{\"off\":false},\"assets/ublock/filters.txt\":{\"off\":false},\"assets/user/filters.txt\":{\"off\":false},\"assets/ublock/experimental.txt\":{\"off\":true}},\"hiddenSettingsString\":\"ignoreRedirectFilters false\\nignoreScriptInjectFilters false\\npopupFontSize unset\\nsuspendTabsUntilReady false\");

The "selectedFilterLists" did not work for...

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

Remove filterLists, it's obsolete. You did not have it in the adminSettings value you provided first.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

And use "selectedFilterLists" instead?

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

Yes.

I just tried it and it worked.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Okay I try...

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

Its working now!

Thank you very much for your patience. :o)

@gorhill
Copy link
Owner

gorhill commented Mar 14, 2017

One of the complication is that on Linux, the JSON string has to be used itself as a JSON value, which means double-encoding, and this is difficult to do by hand. I am modifying the online tool to provide two versions for adminSettings value, the plain string, and the JSON encoded one.

@spec1re
Copy link
Author

spec1re commented Mar 14, 2017

That would be great! 👍

cqx931 referenced this issue in cqx931/AdNauseam May 1, 2017
cqx931 referenced this issue in cqx931/AdNauseam May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants