feat: hide the Google "preferred source" call-to-action #44
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16. Depends on #18 and #19.
Feature description
Both apps add a call-to-action to articles asking the reader to add the newspaper as a "preferred source" in Google. It is self-promotion with no value inside the app. Hide it.
Findings
de Volkskrant (7.52.0)
GoogleSourceButtonarticle block, injected client-side bynl.persgroep.edition.article.data.converters.GoogleSourceButtonBlockInjector(shouldInject).shouldInjectreturn false.De Gelderlander (9.21.1)
PreferredSourceComponentmaps ing20.atoi30.g0(id, type, url). Its properties are onlytypeandurl.Approach
GoogleSourceButtonBlockInjector.shouldInjectreturns false, or drop the block via #19.PreferredSourceComponentvia #18.Done when
docs/apps/*.md.Midas Settings
hide_preferred_source), category "Advertenties en promotie", default on. Same key in both apps.GoogleSourceButtonBlockInjector.shouldInject(Volkskrant) and the article filter (Gelderlander).