Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install from URLs and toggle automatic updates per style #39

Closed
randomish opened this issue Mar 4, 2017 · 19 comments
Closed

Install from URLs and toggle automatic updates per style #39

randomish opened this issue Mar 4, 2017 · 19 comments

Comments

@randomish
Copy link

In the Stylish Firefox addon there is a button in the user styles manager called Install from URLs...
Basically a way to install a style from any css file on the web, and automatically keep it up to date by regularly checking that link (I see there is already a configurable global update check interval - good).

I've been waiting for this to be added to Stylish for Chrome for a long time, but it never happened. I discovered this fork today (reading about the GA/privacy issues in Stylish) and switched to it immediately, and I hope this feature will be added fairly soon.

That way I can host a css file on Dropbox/Github or wherever and have any changes automatically sync to all my devices or to anyone else I've shared the raw/css URL with, with no need to be logged in anywhere or to upload to userstyles.org (it may be a private style or a style with no interest to other users).

I guess the current globe icon with a clickable link next to userstyles.org styles in the manager is a good enough indicator of a style installed from the web as opposed to written or imported from a local file, but I would also like a way to toggle automatic updates for each individual style. There are cases where I may not want the automatic update for certain styles, if I want to use my own local changes or review any remote changes manually before I update.

@tophf
Copy link
Member

tophf commented Nov 21, 2017

Update: styles in usercss mode can be installed from URLs directly. All you need is to add a valid header in the comment at the start and increase style version on updates. Example: JishoDeepDark.user.css.

@quenz
Copy link

quenz commented May 13, 2020

Seconded. I want to add one of the .css styles from the Minimal browser extension as a userstyle. They are essentially userstyles, but not technically "UserStyles", with a <name>.user.css file name and a ==UserStyle== header. Rather, they are just written to be used with the extension.

I have manually added the style, but whenever it is updated, I will have to manually update it.

@tophf This won't work if it's someone else's style not formatted as a proper UserStyle. You'd have to fork it, and manually update whenever the original style is updated.

I suggest Stylus allow regular .css file to be installed, and let the user specify which sites (e.g. www.youtube.com) it's supposed to run on, and then for it to update from the URL it was installed from as if that were it's @updateURL.

Perhaps this could be achieved via a special install or import option, where the user can add a .css style (which has no ==UserStyle== header) from a given URL, then a header is generated (separate from the raw CSS), with the @updateURL automatically being added based on the URL it was installed from. Or, the user could write this separate header manually.

@tophf
Copy link
Member

tophf commented May 13, 2020

You can probably use the standard CSS @import statement for the original URL in your local userstyle.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@quenz

This comment has been minimized.

@tophf

This comment has been minimized.

@MulverineX
Copy link

Is there a workaround for this? I want to have the automatically installable theme link, but I also want the user to get automatic updates to the theme

@tophf
Copy link
Member

tophf commented Oct 8, 2020

@MulverineX yes, there's an alternative available for several years: usercss. We could probably just close this issue.

@MulverineX
Copy link

I was not aware that usercss did automatic updates, it's fine then

@tophf
Copy link
Member

tophf commented Dec 2, 2023

usercss

@tophf tophf closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants