IITC-Mobile: better support for external userscripts at gitlab/github #327
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
mobile
Currently we have such intent filter:
.*\\.user.js
ingress-intel-total-conversion/mobile/app/src/main/AndroidManifest.xml
Lines 104 to 116 in 36a9b69
On github/gitlab it triggers on 'blob' pages, like these:
https://github.com/TheSned/IITCPlugins/blob/master/extend-poly-lines.user.js
https://gitlab.com/AlfonsoML/wayfarer/-/blob/master/wayfarer-planner.user.js
But IITCm is unable to handle them: if we try to install from such url, then we get useless html output (installed plugin appears in list as "unknown").
So better to exclude such urls from filter.
And much even better - tranform the urls to raw source:
https://github.com/TheSned/IITCPlugins/raw/master/extend-poly-lines.user.js
https://gitlab.com/AlfonsoML/wayfarer/-/raw/master/wayfarer-planner.user.js
test urls
https://github.com/TheSned/IITCPlugins/blob/master/extend-poly-lines.user.js
https://gitlab.com/AlfonsoML/wayfarer/-/blob/master/wayfarer-planner.user.js
https://github.com/TheSned/IITCPlugins/raw/master/extend-poly-lines.user.js
https://gitlab.com/AlfonsoML/wayfarer/-/raw/master/wayfarer-planner.user.js
https://rawcdn.githack.com/TheSned/IITCPlugins/b52007347b1abab2b5be95c19f7f6ac0bb3d8aff/extend-poly-lines.user.js
https://glcdn.githack.com/AlfonsoML/wayfarer/-/raw/master/wayfarer-planner.user.js
Related to #257
The text was updated successfully, but these errors were encountered: