openfoodfacts/power-user-script

Better filter for "recent changes" page

Open

#20 opened on Apr 20, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (6 forks)auto 404
good first issue

Repository metrics

Stars
 (13 stars)
PR merge metrics
 (PR metrics pending)

Description

The "recent changes" filter (filter as you type) is currently filtering edits that contains a value. image

It would be awesome to let users exclude some results:

  • -hungergames would list all pages except the ones containing "hungergames"
  • -hunger -date-limite would list all pages except the ones containing "hungergames" or "date-limite"
  • image -hungerwould list all pages containing "image" except the ones containing "hunger"

Impacts:

  • exclude from "traffic" the well known apps (such as kiliweb, hungergames, date-limite, etc.), to identify new users
  • allow us to monitor temporary operations/missions

How? All the code is currently in the "Recent Changes" section of the code. See: https://github.com/openfoodfacts/power-user-script/blob/189026fb658f14bee0b510fcd27e27c07ab6be7c/OpenFoodFactsPower.user.js#L747

Contributor guide