dynamic "Subscribe" buttons (function/visibility)
See original GitHub issueAdd a flag property for if a list is directly “subscribe-able”. If it is a .7z
, .zip
, etc., this flag will indicate that the “Subscribe” button should not be displayed.
Instead of a property, this could be something that is automated as well. (i.e., if file is a .txt
vs a .zip
, etc.). That would need extensive testing/debugging.
Feature overlap/similar to #7
Eventually, it could be neat to provide a subscribable mirror of these lists if the maintainer permits it.
Though this could encroach user’s privacy, it could be neat to try to detect which (if any) browser extension Software
the user has installed. Then, only show the “Subscribe” button for lists that are actually supported by that extension. Feedback wanted on this idea, though, if you feel that would violate user’s privacy. If not, does anyone know how this could be achieved?
Updated:
Subscribe buttons should be conditionally visible. By default, they should be visible only if they link to a .txt
file (to accommodate most browser-based software tools). We could enable the button for compressed (.zip
, .7z
) or other formats per this if needed after #370 is implemented.
Updated 2:
- We should hide subscribe buttons if the
viewUrl
is not plain-text (e.g..7z
,.zip
). - We should hide subscribe buttons if the software selected in the software filter select does not support
abp:
/ubo:
-style subscribe links. (isAbpSubscribable
) - We should change “Subscribe” to “Import” if the software selected in the software filter select is AdGuard.
cuz AdGuard doesn’t have real subscribe, it’ll only import lists to user filters without possible updates. -via
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:7 (6 by maintainers)
Top GitHub Comments
I actually came close to creating a pull a week ago that’d do just that for all three of those formats. But two problems got in my way.
Currently, if the URL for a compressed file is in ViewUrlMirror1 or ViewUrlMirror2, there would be no way to access such a link without using the F12 menu.
I additionally wanted to re-enable TPL subscription links so that they simply lead to https://raw.githack.com/collinbarrett/FilterLists/master/data/TPLSubscriptionAssistant.html, and in turn I wanted to give those links a light blue colour instead of dark blue. But I couldn’t figure out how to add colour hex values to https://github.com/collinbarrett/FilterLists/blob/master/web/src/components/SubscribeButtons.tsx.
An alternative for №1 could be to re-colour such links orange, add a “text” value of “Download”, and/or change the “message” value to “Download this list in compressed format”. But that’d hinge on figuring out a solution for №2, which could then be used for this as well.
.tar.gz
should be added to the list.Plain text, gzip compressed may be fine (needs testing).