A basic outline on seive configuration in Imagus—based on previous posts by developer, with additions based on own usage.
Before it's sent to matching, every URL has its protocol and subdomain removed using the following regex:
// ==UserScript== | |
// @name Youtube Playlist Cleanser | |
// @version 2.1.0 | |
// @description Removes watched videos from playlist either by %watched or all | |
// @author js6pak | |
// @include http*://*.youtube.com/* | |
// @include http*://youtube.com/* | |
// @run-at document-idle | |
// @homepageURL https://gist.github.com/js6pak/33bdefdefac09c387f55d08c5b9526fa | |
// @downloadURL https://gist.github.com/js6pak/33bdefdefac09c387f55d08c5b9526fa/raw/youtube-playlist-cleanser.user.js |
// last element in array | |
var lastGesturePointInArray = action.GesturePoints.Length - 1; | |
// pixels travelled | |
var distanceTravelled = action.GesturePoints[lastGesturePointInArray].X - action.GesturePoints[0].X; | |
// Edit if need be: | |
var horizScrollDist = 1.5; | |
// turn to absolute num |
Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device