Git Product home page Git Product logo

invidious-preferences-userscript's People

Contributors

gitoffthelawn avatar intintedao avatar mintmain21 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

invidious-preferences-userscript's Issues

Hide/Remove URL Parameters from URL Bar after page has loaded preferences.

I am indebted to the numerous projects for enforcing a classic Wikipedia theme for influencing my work on this script. I even have my own Wikipedia script. In the extension Legacy Wikipedia, there is a function to remove the URL parameter after the page has loaded the preference without reloading the page and losing the preferences. Application of such a feature to this script would be welcome, especially as it would make it easier to update preferences on the fly.

Initial attempts to implement this into this userscript have failed, but I will keep my eyes open for ways to implement this feature in the future.

Exclude Non-Invidious Links from URL Parameter Appendage (Beta script).

The current beta script appends URL Parameters to links on the webpage, so that they don't have to be applied upon clicking on them.

This is meant specifically for links from the same invidious instance or instances already recognized in the script itself, but currently it also appends the parameters to outgoing links to not just other instances, but also other sites like YouTube.

There should be a way to prevent this from happening.

Produce Invidious Instance recognition from Farside (or equivelant service).

Privacy Redirector uses Farside as a default means of fetching Invidious Instances for redirection.

It may be more efficient to recognize domains listed on Farside or a equivelant service (as well as additional instances listed by the user) than listing out individual instances in the @match segment.

Redirect YouTube to Invidious Domain

While it is recommended this script be used with additional software such as Privacy Redirector (which redirects YouTube links to Invidious), it should be fairly easy to also append basic YouTube redirection to this script in order to create a fully realized Invidious Centric Userscript.

I may consider adding this feature myself, if I believe it's worthwhile. Will likely use a source such as farside for redirects, perhaps with an option to change the redirection source. May be relevant to #7 as well.

Port to Browser Extension

Both this userscript and the extension Legacy Wikipedia use the MIT License.

Given how both function to append URL Parameters to links in order to enforce preferences, it should be easy to make a browser extension out of this userscript.

This would allow for benefits such as ease of usability, faster loading, and less bugs.

URL Parameter Toggles

As the script is presently written, there are two lines of code script users have to alter in order to change the desired URL parameters. One line detects whether the desired URL Parameters are already present in the video link, while the other appends the URL parameters if they are absent.

The Privacy Redirector script which I recommend use alongside this script features different toggles in the code to enable and disable not just individual redirects, but whether those redirects pull destinations from a Farside instance or from a pool of editable URLs maintained by the script user.

At minimum, if anyone is capable of adding such a feature to this script without breaking it, it would be desirable for there to be a single pool of editable URL parameters that can then be applied to both the detect line and the append line so that users do not have to manually edit both lines of code for themselves.

More complicated would be to recreate the toggles from the Privacy Redirector script so that users can merely toggle on/off desired URL parameters and have them applied to the detect and append lines of the code.

Should the latter-most option be plausible, It may further be of use for users to fall back on a "single URL parameter pool" should the options of default toggles prove undesirable for whatever reason, most likely being reasons beyond this repository's scope such as the addition of new URL parameters to the Invidious project or the deprecation of pre-existing URL parameters.

White Flash when "dark_mode=auto".

In the latest stable release, loading new pages on an invidious instance creates a blank white page while the user-script processes what parameters to apply.

When using an extension like Dark Reader this is irrelevant, but it can understandably be frustrating for some users either unable or unwilling to use such a measure.

#6 would at least partially resolve this, insofar that there would be less frequent occurrences where the script would need to append URL parameters to loading pages.

Redirect Invidious Homepage Feed

This script is designed only to alter video URLs (watch?v=) and is unable to edit any other URLs from an Invidious domain. This means that all URL parameter options can only affect video URLs.

While most options in the Invidious Settings relate specifically to video playback or the presentation of video URLs (such as whether comments or a recommended feed are displayed) there are other options which toggle, for example, what theme Invidious uses, and what is displayed on the invidious homepage by default.

While there is technically no URL parameter to alter the content of the homepage, it is possible to force oneself to a specific homepage using one of three routes.

  1. (invidious domain)/feed/popular

  2. (invidious domain)/feed/trending

  3. (invidious domian)/search

While it may be desirable to redirect the homepage to whichever of the three options is preferred by the user, the tricky part is coding redirects specifically of the homepage URL without redirecting not just video URLs, but search results and channel pages.

If anyone can create this desired affect, be it through this script or through another script, without interfering with YouTube to Invidious Redirections or Video URL Parameter Redirection, it would be a desirable option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.