Fathom/In-Page Pop-Up Detection: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "== In-Page Pop-up Detection == This is an experiment to try to train an in-page pop-up detector using [https://mozilla.github.io/fathom/intro.html Fathom]. === Dataset Curati...")
 
No edit summary
Line 15: Line 15:
   * (bookmarklet) javascript:void([].forEach.call(document.querySelectorAll('body *'),e=>/fixed|sticky/.test(getComputedStyle(e).position)&&e.parentNode.removeChild(e)))
   * (bookmarklet) javascript:void([].forEach.call(document.querySelectorAll('body *'),e=>/fixed|sticky/.test(getComputedStyle(e).position)&&e.parentNode.removeChild(e)))
   * (bookmarklet) javascript:(function()%7B(function () %7Bvar i%2C elements %3D document.querySelectorAll('body *')%3Bfor (i %3D 0%3B i < elements.length%3B i%2B%2B) %7Bif (getComputedStyle(elements%5Bi%5D).position %3D%3D%3D 'fixed') %7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
   * (bookmarklet) javascript:(function()%7B(function () %7Bvar i%2C elements %3D document.querySelectorAll('body *')%3Bfor (i %3D 0%3B i < elements.length%3B i%2B%2B) %7Bif (getComputedStyle(elements%5Bi%5D).position %3D%3D%3D 'fixed') %7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
  * [https://addons.mozilla.org/en-us/firefox/addon/behind_the_overlay/ Behind the overlay] and [https://addons.mozilla.org/en-US/firefox/addon/behind-the-overlay-revival/ Behind the overlay revival] extensions.  The former has [https://github.com/NicolaeNMV/BehindTheOverlay/blob/master/chrome/js/overlay_remover.js code] for overlay removal which might be helpful for writing the initial feature rules.

Revision as of 22:53, 13 March 2018

In-Page Pop-up Detection

This is an experiment to try to train an in-page pop-up detector using Fathom.

Dataset Curation

The first step for this project is curating a dataset of these in-page pop-ups. In order to do so we're crowd-sourcing an effort through the community to collect the addresses of a large number of pages that show such pop-ups using a Google Form, a Firefox Extension and a Chrome Extension.

Useful Notes on the dataset collection

Some good potential extra data sources:

 * http://tabcloseddidntread.com/
 * http://confirmshaming.tumblr.com/
 * https://github.com/yourduskquibbles/webannoyances

Helpful links for writing the features:

 * https://alisdair.mcdiarmid.org/kill-sticky-headers/
 * (bookmarklet) javascript:void([].forEach.call(document.querySelectorAll('body *'),e=>/fixed|sticky/.test(getComputedStyle(e).position)&&e.parentNode.removeChild(e)))
 * (bookmarklet) javascript:(function()%7B(function () %7Bvar i%2C elements %3D document.querySelectorAll('body *')%3Bfor (i %3D 0%3B i < elements.length%3B i%2B%2B) %7Bif (getComputedStyle(elements%5Bi%5D).position %3D%3D%3D 'fixed') %7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
 * Behind the overlay and Behind the overlay revival extensions.  The former has code for overlay removal which might be helpful for writing the initial feature rules.