openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.49k stars 306 forks source link

[Critical] can't install any Styles from userstyles.org anymore #379

Closed FaySmash closed 6 years ago

FaySmash commented 6 years ago

Since today, you can only install Styles from userstyles.org with the WebExt Stylish addon. I need to have the old XPCOM Stylish addon for browser GUI theming installed, so I can't update to the WebExt Stylish verison. (You an install Styles from userstyles.org in Stylus but only if Stylish is installed too) The Screenshot is from the new install button, which only works when Stylish is installed.

stonecrusher commented 6 years ago

They changed the page in favour of the android version they want to release.

FaySmash commented 6 years ago

@stonecrusher so what? Stylus is useless without userstyles.org support, there surely is a way to work around this issue, maybe a userscript to fake the existence of stylish or something like this which could be implemented

FaySmash commented 6 years ago

I just found a (not very good but working) workaround, just put

?utm_campaign=stylish_stylepage

at the end of the url of the userstyles.org Style to get the install prompt. You can't customize settings though.

stonecrusher commented 6 years ago

It was just the explanation for why it's not Stylus' fault. I am sure @tophf will find a way to adapt to the changes made by userstyles.org.

Oh and Stylus is not useless without USO. USO is just the biggest repository for styles. You can still write your own or use other repositories.

Better workaround: Make your customizations, then Show CSS code, copy that code and insert it into a new style in Stylus.

FaySmash commented 6 years ago

@stonecrusher for me it's pretty much useless, because I made my own Styles and published them on USO. Those themes include USO proprietary handling of custom settings (eg. /*[[test]]*/) so if you copy out the source code, it won't work because some important parts are "hidden" (aka replaced by USO custom settings place holders). I now can't even use my own themes anymore, I'm working on a new one atm and can't test how it looks like because I can't install it (which replaces the custom settings placeholders). I know, there is also usercss but a lot of Styles on USO doesn't use it (mine are going too support now though)

stonecrusher commented 6 years ago

Ah sorry, thought the variables also get replaced in the "show sourcecode" section. They only do get replaced in the "Install style as a userscript" link. They get replaced when using freestyler.ws, though.

FaySmash commented 6 years ago

@tophf wow, that was really fast!! :D excited for the next stylus version! I moved to usercss and my own github repo anyway, just a matter of time until userstyles acting up again.

bardware commented 6 years ago

This happens every once in a while. Do I see right?

tophf commented 6 years ago

Oh, I see they've changed something and now there are two install buttons. Gonna investigate.

tophf commented 6 years ago

Wow, they require Stylish being installed like in every site function.

Mottie commented 6 years ago

They're being jerks about it eh?

tophf commented 6 years ago

Or nonchalant as usual.

FaySmash commented 6 years ago

seems like I was right! x) and it was a good decision to switch to usercss (now on GitLab bc M$) ^^

mzso commented 5 years ago

@FaySmash commented on 2018. ápr. 30. 16:01 CEST:

  • Browser: Waterfox 56.1.0 / Firefox 60.0b16
  • Operating System: Windows 10 1709
  • Screenshot:
    grafik

Since today, you can only install Styles from userstyles.org with the WebExt Stylish addon. I need to have the old XPCOM Stylish addon for browser GUI theming installed, so I can't update to the WebExt Stylish verison. (You an install Styles from userstyles.org in Stylus but only if Stylish is installed too) The Screenshot is from the new install button, which only works when Stylish is installed.

Hi! So how does using Stylus and old Stylish together work? I once tried out Stylus but once I realized I can't use it to customize UI I stayed with Stylish.

But of course now I can't install anything anymore even though I have their godforsaken extension installed, only not the newer webextension versions.

narcolepticinsomniac commented 5 years ago

So how does using Stylus and old Stylish together work?

Why wouldn't you just try it? Then you can you tell us. If you're using the old XUL based version of Stylish for styling the UI, but it won't install styles from USO anymore, using Stylus for typical web page styles seems like it might be a lot more convenient.

Don't see why there'd be any conflict. I used to have Stylish 2.1.1 and Stylus installed at the same time for this exact reason, but it's been a while, and I never really used Firefox much anyway.

decembre commented 5 years ago

"So how does using Stylus and old Stylish together work?" "Why wouldn't you just try it?"

Yes Stylus is better than Stylish: i love it! But, in my case is use an old Stylish version when i create an userstyles, because i use a very useful userscript to edit my userstyles.

Edit CSS in Stylus is less comfortable. I made a request to add an edit toolbar with icon to replace shortcuts (which are difficult to remember): [Feature Request] Extend editor with buttons for auto !important / go to the line / Comment or uncomment etc... #676 About the install userstyles button in userstyles.org: I don't like it ask always to update the install of stylish. I have read some workaround but they don't work for me.... Ps: Can someone write an userscript to install only the userstyles (without update Stylish)?

narcolepticinsomniac commented 5 years ago

I made a request to add an edit toolbar with icon to replace shortcuts (which are difficult to remember):

It's a good idea, it just has never been a priority

Same answer I gave in that issue.

...add an edit toolbar with icon to replace shortcuts (which are difficult to remember)

Shortcuts become second nature if you make the effort to learn them. Most users are only familiar with shortcuts, since there's never been any toolbar in any of the modern WebExtension forks of Stylish AFAIK, not to mention, most modern text editors in general prefer shortcuts over toolbars, and don't even include toolbars by default. The only popular one that does, that I'm aware of, is Notepad++, and it's kind of a throwback. Others might allow you to enable one, or install plugins to enable one.

IIRC, when we originally discussed it, we experimented a little with existing CodeMirror toolbar plugins. @tophf didn't like em, and said he'd prefer to implement his own, more optimized version if we were to add one. He probably would've eventually, but he's been less involved recently, so we try not to bug him like we used to. It's possible he still might though, if reminded. He occasionally works on things when he feels like it.

About the install userstyles button in userstyles.org... I don't like it ask always to update the install of stylish... Can someone write an userscript to install only the userstyles (without update Stylish)?

The install button should work as expected with Stylus, does it not? Are you asking if someone will fix the old XUL based version of Stylish for you? If so, I doubt that's gonna happen here. With all the people out there who are still hanging on to old, outdated versions of Firefox, there's gotta be someone maintaining it to some degree. Have you checked out Stylem?

mzso commented 5 years ago

@narcolepticinsomniac commented on 2019. szept. 26. 12:34 CEST:

The install button should work as expected with Stylus, does it not? Are you asking if someone will fix the old XUL based version of Stylish for you? If so, I doubt that's gonna happen here. With all the people out there who are still hanging on to old, outdated versions of Firefox, there's gotta be someone maintaining it to some degree. Have you checked out Stylem?

I think he meant the website to allow installation. You can't even copy paste or anything. Anyway, Stylem sort of functions but the USI installation is bugged. It ignores customization. And after it either shows that the style is installed (can't update), or if I ctrl+f5 it shows the install stylish button.

Funnily enough even ther own friggin current addon doesn't work perfectly. You can install multiple copies if you ctrl+f5 otherwise it only shows that the style is installed, no update with Stylish either.

narcolepticinsomniac commented 5 years ago

We've had a hard enough time keeping USO installation working in Stylus. None of us use the old XUL based version of Stylish, so if you're looking for help with it, you should look for people who still use it. Have you tried the CustomButtons dev? I'm vaguely familiar with him from the forum. He maintains a custom fork of the old Stylish.

If he hasn't fixed USO installation already, he might be open to it. Looks like Stylem already has an open issue that's related. Maybe one of them could utilize some of the workarounds in our content script if you brought it to their attention. There's gotta be at least half a dozen bug fixes since the new owners took over USO and started shredding cheese over spaghetti code.

mzso commented 5 years ago

@narcolepticinsomniac commented on 2019. szept. 26. 23:59 CEST:

We've had a hard enough time keeping USO installation working in Stylus. None of us use the old XUL based version of Stylish, so if you're looking for help with it, you should look for people who still use it. Have you tried the CustomButtons dev? I'm vaguely familiar with him from the forum. He maintains a custom fork of the old Stylish.

If he hasn't fixed USO installation already, he might be open to it. Looks like Stylem already has an open issue that's related. Maybe one of them could utilize some of the workarounds in our content script if you brought it to their attention. There's gotta be at least half a dozen bug fixes since the new owners took over USO and started shredding cheese over spaghetti code.

Thans for the suggestions.

decembre commented 5 years ago

Thanks for the explanations!

Shortcuts become second nature if you make the effort to learn them.:

Efforts, Yes ... :-) I understand, but these shortcuts/functions are not very useful for me. I don't see some functions (maybe i am blind too) i use a lot, like:

1 - Auto "! important ;" (just this one, not other type of autocompletion) 2 - Comment / un-comment Text 3 - Undo / Redo 4 - Preview / un-preview 5 - Go to line 6 - Cursor at 7 - Go To Top / Bottom 8 - Show Size/Bytes of the style

And some i use less but ... : 9 - Clone Style 10 - Unobfuscate

And for more readability, a way to have, in an edit mode, all the include (domain, url-pref etc...) collapsed or simplified (just as i typed, in one line - no icon, no waste place ). If we want change them, an icon to edit/expand them should be sufficient. When i edit a very large style, with many sections, it should be great.

The install button should work as expected with Stylus, does it not? Are you asking if someone will fix the old XUL based version of Stylish for you? If so, I doubt that's gonna happen here.

I know... But it seems more a problem of userstyles site and how it present the install userstyles link, no ?. That's not possible to bypass the forced "update Stylish" ? The trick "ctrl+f5" never worked for me , as far i remember, i don't know why. I don't install many, often for test, so i copy/past the css.

But like i said, i find Userstyles.org very irritating and buggy (and without real alternative, too), and if Stylus gain a better edit mod, i let Stylish . Yes: "The new owners took over USO and started shredding cheese over spaghetti code"!

PS: As you mentioned, i use the Stylish2 by srazzano: It is very useful, but srazzano seems tired of al these change in Stylish an Firefox too....

decembre commented 9 months ago

A solution? Download userstyle from their so buggy sites userstyles.org ? Use this userscript: "Userstyles.org downloader" by Eric Medina (ericmedina024) style-downloader.user.js

tophf commented 9 months ago

That userscript doesn't preserve the variables, so it's best to install from uso-archive instead, which is what Stylus is doing currently.

decembre commented 9 months ago

OK...