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

[Question] Do you know a way to block the anyoing "self ads" of proton? #629

Closed
BobWs opened this issue Aug 10, 2023 · 19 comments
Closed

[Question] Do you know a way to block the anyoing "self ads" of proton? #629

BobWs opened this issue Aug 10, 2023 · 19 comments

Comments

@BobWs
Copy link

BobWs commented Aug 10, 2023

Hi,
Not a bug or issue report, but a question!
Do you know a way to block the annoying ads of proton about upgrade to paid account and all those other promotions?
See screenshot for example

Screen_Shot 4
TIA

@vladimiry
Copy link
Owner

vladimiry commented Aug 10, 2023

Any stuff can be cut out or modified by patching https://github.com/ProtonMail/WebClients/ sources before it gets assembled for packaging into the app, see https://github.com/vladimiry/ElectronMail/tree/master/patches/protonmail.

@vladimiry
Copy link
Owner

vladimiry commented Aug 10, 2023

If @ProtonMail saves "explicitly closed" state of this ad in the browser's local storage (I didn't look into the code, just a guess), then this state will be lost, since the app by design keep all the browser/web-specific storages in memory only, so the data not persisted between the app restarts.

@BobWs
Copy link
Author

BobWs commented Aug 11, 2023

keep all the browser/web-specific storages in memory only, so the data not persisted between the app restarts

I guess that's what's happening, because after every new start of the app they all appear again.

Do you want to take look at it and see if you can patch it?

@vladimiry
Copy link
Owner

vladimiry commented Aug 12, 2023

Do you want to take look at it and see if you can patch it?

If I do this, then as an opt-in feature, so @ProtonMail upsell messages not suppressed by default. For opt-in feature, simple static patching won't be a solution (dynamically switchable feature), so more dev work would be required. There is no ETA, so if I do this, you will see it done.

@vladimiry
Copy link
Owner

vladimiry commented Aug 12, 2023

It's coming in the next release. See the new "Disable Proton upsell messages" toggle in the "General" app settings. The toggle is disabled by default, so this is an opt-in feature.
disable-proton-upsell-messages

@BobWs
Copy link
Author

BobWs commented Aug 14, 2023

It's coming in the next release. See the new "Disable Proton upsell messages" toggle in the "General" app settings. The toggle is disabled by default, so this is an opt-in feature.

That's a great solution, nice! Thank you for implementing it!

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

will it also hide the 'upgrade now' banner?

@vladimiry
Copy link
Owner

will it also hide the 'upgrade now' banner?

If it's similar to the image in the first message #629 (comment), then yes, it will.

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 31, 2023

there also an upgrade button on header next to settings. will it be hidden as well ?

image

@vladimiry
Copy link
Owner

will it be hidden as well ?

Nope. Looking into it. The above-displayed "Disable Proton upsell messages" toggle is going to be renamed to "Disable Proton upsell messages & buttons".

@vladimiry
Copy link
Owner

there also an upgrade button on header next to settings. will it be hidden as well ?

Done now.

toggle is going to be renamed to "Disable Proton upsell messages & buttons".

The new toggle title name is "Disable Proton upsell ads". So the toggle disables upsell messages and buttons too.

123

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

just updated to v5.2.0 and it looks great now. thank you !

@pirate486743186
Copy link

the banner is still visible in spam and trash folders...

@vladimiry
Copy link
Owner

the banner is still visible in spam and trash folders...

Not for me. Screenshot?

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

the banner is still visible in spam and trash folders...

same for me
image

@vladimiry
Copy link
Owner

vladimiry commented Sep 19, 2023

It's different on paid plan, so it didn't look like an ad for me. But on free plan it indeed looks like an ad, so has to be taken care too. Thanks for this finding.

free account:
free
paid account:
paid

@pirate486743186
Copy link

yea, i'm a freeloader 😳

@BobWs
Copy link
Author

BobWs commented Sep 22, 2023

Just installed the latest version, nice work thank you for tackling it so quickly!

@vladimiry
Copy link
Owner

vladimiry commented Oct 5, 2023

free account:
free
paid account:
paid

v5.2.1 comes with disableable spam/trash ad banners. No change made for paid users since it's not an ad there, but a shortcut to an available feature and the banner there comes with "close" icon which closes it permanently.

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

4 participants