GH-2178: Update Anti-suite names where they appear in GBE #614
Conversation
…ock lists to their new names
|
Looks good, just a couple other spots that need to be updated |
| @@ -63,12 +63,12 @@ | |||
| background-image: buildAdBlockActiveIcon(#1dafed); | |||
| } | |||
|
|
|||
| // Smart Blocking Icon | |||
| // Smart Browsing Icon | |||
| .SetupAntiSuite__feature .smart-blocking { | |||
wlycdgr
Oct 1, 2020
Member
Let's also change the class names .smart-blocking -> .smart-browsing
Let's also change the class names .smart-blocking -> .smart-browsing
benstrumeyer
Oct 1, 2020
Author
Contributor
Updated the class names!
Updated the class names!
| } else if (featureType === 'smart_block') { | ||
| featureName = t('smart_blocking'); | ||
| } |
wlycdgr
Oct 1, 2020
Member
And here
And here
benstrumeyer
Oct 1, 2020
Author
Contributor
Updated!
Updated!
|
Quick comment on one of the updates. Otherwise, we were looking good until I made the mistake of running a global search on 'smart_block'....looks like there are....a few more spots: I know it's a pain, but let's update those and try to stick closer to one name per feature - we have enough confusion around feature names in the extension as is |
| // Smart Browsing Icon | ||
| .SetupAntiSuite__feature .smart-blocking { | ||
| .SetupAntiSuite__feature .smart-browsing { | ||
| background-image: buildSmartBrowsingIcon(#9f9f9f); | ||
| } | ||
| .SetupAntiSuite__feature .smart-blocking.active { | ||
| .SetupAntiSuite__feature .smart-browsing.active { | ||
| background-image: buildSmartBrowsingActiveIcon(#1dafed); |
wlycdgr
Oct 2, 2020
Member
Did you also update the place(s) in the components where these classes are used? Sorry if I missed that
Did you also update the place(s) in the components where these classes are used? Sorry if I missed that
benstrumeyer
Oct 6, 2020
Author
Contributor
My bad! Looks like it got updated by the global search and replace 👍
My bad! Looks like it got updated by the global search and replace
…rtBlock.js to PolicySmartBrowse.js
|
|
|
Looks like there's supposed to be a dash between "Smart" and "Browsing" |
|
"The following Ad-Block filter lists" should be "The following ad-block filter lists" (in the Ad-Block Lists Settings tab) |
| @@ -134,7 +134,7 @@ See the complete GitHub [milestone](https://github.com/ghostery/ghostery-extensi | |||
| + Add new counter for Requests Modified by Anti-Tracking (#392) | |||
| + Show fingerprint, cookie and advertisement icons in Detail View tracker list (#394) | |||
| + Improved Anti-Tracking integration (#377) | |||
| + Integrate Click2Play into SmartBlocking (#388) | |||
| + Integrate Click2Play into SmartBrowsing (#388) | |||
wlycdgr
Oct 27, 2020
Member
Same deal here with the CHANGELOG - let's leave the old entries as is
Same deal here with the CHANGELOG - let's leave the old entries as is
benstrumeyer
Oct 27, 2020
Author
Contributor
Updated!
Updated!
| const smartBrowseed = !block ? this.policySmartBrowse.shouldBlock(app_id, cat_id, tab_id, page_url, eventMutable.type, eventMutable.timeStamp) : false; | ||
| const smartUnblocked = block ? this.policySmartBrowse.shouldUnblock(app_id, cat_id, tab_id, page_url, eventMutable.type) : false; |
wlycdgr
Oct 27, 2020
Member
Looks like a spot where the auto-replace didn't quite do the trick. Let's update these to smartBrowseBlocked and smartBrowseUnblocked
Looks like a spot where the auto-replace didn't quite do the trick. Let's update these to smartBrowseBlocked and smartBrowseUnblocked
benstrumeyer
Oct 27, 2020
Author
Contributor
Typos! Gotta watch out for those, good catch
Typos! Gotta watch out for those, good catch
| @@ -15,7 +15,7 @@ | |||
| * prefetched: {boolean} indicates that the tab was prefetched and not part of the main window | |||
| * purplebox: {boolean} indicates that the purplebox.js script has been loaded on this tab | |||
| * protocol: {string} request protocol | |||
| * smartBlock: {Object} smart blocking stats for this tab | |||
| * smartBrowse: {Object} smart blocking stats for this tab | |||
wlycdgr
Oct 27, 2020
Member
Comment needs an update to match ~
Comment needs an update to match ~
benstrumeyer
Oct 27, 2020
Author
Contributor
Nice catch! I just found/replaced the variables, didn't think to look for comments too. Updated the comments in a few more places too
Nice catch! I just found/replaced the variables, didn't think to look for comments too. Updated the comments in a few more places too
| @@ -119,7 +119,7 @@ class ConfData { | |||
| _initProperty('enable_click2play_social', true); | |||
| _initProperty('enable_human_web', !IS_CLIQZ && !IS_FIREFOX); | |||
| _initProperty('enable_abtests', true); | |||
| _initProperty('enable_smart_block', true); | |||
| _initProperty('enable_smart_browse', true); | |||
christophertino
Oct 27, 2020
Member
This is going to override the setting for any users with Smart Block currently turned off. Is there a reason we are changing all of these variable and file names, instead of just changing the user-facing language?
This is going to override the setting for any users with Smart Block currently turned off. Is there a reason we are changing all of these variable and file names, instead of just changing the user-facing language?
|
Closing in favor of #626 |

Change string names from:
Ticket: https://ghostery.atlassian.net/browse/GH-2178