question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dynamic "Subscribe" buttons (function/visibility)

See original GitHub issue

Add 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

  • We should change abp: subscribe links to ubo: subscribe links if the list is only supported by uBO/Nano. -via
  • We should support IE/TPL subscribe links. -#289
  • We should support Little Snitch subscribe links. -#507
  • See if there is a subscribe link format that the Opera browser can support. -via

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DandelionSproutcommented, Mar 15, 2020

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.

  1. 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.

  2. 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.

1reaction
gwarsercommented, Mar 15, 2020

We should hide subscribe buttons if the viewUrl is not plain-text (e.g. .7z, .zip)

.tar.gz should be added to the list.

Plain text, gzip compressed may be fine (needs testing).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Click Youtube Subscribe Button Dynamically in Website
Now I want to click the hidden button when I click the Subscribe Button I created. $('.cta-subscribe-btn').click(function(e) { e.
Read more >
Reference Guide | YouTube Subscribe Button
This class identifies the <div> element as a container for a subscription button and enables YouTube to dynamically resize the embedded button ......
Read more >
support IE/TPL subscribe links · Issue #289 · collinbarrett/FilterLists
For lists that target IE, change the subscribe link to match a pattern like: ... dynamic "Subscribe" buttons (function/visibility) #28.
Read more >
Dynamic Youtube Subscribe Button, After Effects Project Files
Buy Dynamic Youtube Subscribe Button by easygraphics on VideoHive. This is a simple and clean Youtube subcsribe button template.
Read more >
Dynamic Youtube Subscribe Button - Envato Elements
Dynamic Youtube Subscribe Button Video Templates. Subscribe to Envato Elements for unlimited Video Templates downloads for a single monthly fee.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found