GNOME Bugzilla – Bug 781942
Do not show websites rated for adults in the overview
Last modified: 2018-08-03 21:06:52 UTC
In the overview do not show websites which carry a meta tag specifying it is Restricted To Adults (RTA). Tag: <meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" /> Relevant links: https://davidwalsh.name/rta-label http://www.rtalabel.org/
This would be a good task for someone looking to take a deep dive into Epiphany, but also a lot of work. In the web extension, you'd need to walk the DOM, look for meta tags, and see if it matches using the webkit2gtk-web-extension API. Then you'll need to send a script message to the UI process to mark the current page as adults only. The history database format would need to be modified to add an extra boolean field. Since you're touching the database format, you'd need to investigate whether a database migration is required; if so, then we'd need a new profile migrator. Lastly, history query performed by ephy-about-handler will need to be modified to extract the new database field. You'll need to also make the query a bit smarter, or query repeatedly if some of the top nine sites turn out to be RTA, since you don't want to wind up with a missing overview item for each RTA site in the top nine.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/epiphany/issues/385.