[Release] Stylem

Dedicated board for extension releases/support threads

Moderators: FranklinDM, Lootyhoof

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
Sablesword
Apollo supporter
Apollo supporter
Posts: 37
Joined: 2017-04-01, 06:50

Re: [Release] Stylem

Post by Sablesword » 2020-09-19, 04:59

I'm having trouble with @-moz-document regexp to target deviantart.com. With

Code: Select all

@-moz-document regexp('https://www\\.deviantart\\.com/[^/]*/(gallery|favourites).*') 
I have to reload the gallery or favorites page a second time to get the style to catch.

Are there known bugs in the Stylem regexp, or is there secret knowledge of the stylem regex dialect that I need to be clued in on?

lavabo

Re: [Release] Stylem

Post by lavabo » 2020-11-28, 08:21

Lootyhoof wrote:
2019-05-22, 20:59
Stylem has been updated to v2.2.5.

What's new?
- make the Stylish disabler work better across XUL applications (thanks vanowm)
- fix installing userstyles from userstyles.org (though customizable styles will use their default settings)
- add Borealis Navigator support
- adjust for Interlink support
- remove Thunderbird/Postbox/Fennec support
JebDude wrote:
2019-04-11, 14:31
Any chance we can get some import/export functions?
See: https://github.com/Lootyhoof/stylem/issues/1 (tl;dr: maybe, though it would be nice if someone could contribute that).
any news on the export feature ? I want to import my styles from stylem-PM to stylus-firefox 83

avada
Moon lover
Moon lover
Posts: 97
Joined: 2013-11-16, 16:41
Location: Hungary

Re: [Release] Stylem

Post by avada » 2020-12-12, 17:20

lavabo wrote:
2020-11-28, 08:21
any news on the export feature ? I want to import my styles from stylem-PM to stylus-firefox 83
I wouldn't get high hopes. The extension seems dormant.
You can use the same as I did: https://github.com/openstyles/firefox-stylish-export
You need to install original XUL stylish (uses the same database as Stylem) first.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1633
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: [Release] Stylem

Post by Lootyhoof » 2022-07-23, 21:33

I've updated Stylem to version 2.2.8.

What's new?
- support SeaMonkey 2.53.* (thanks UCyborg)
- add Slovenian translation (thanks UCyborg)

You can grab the latest release from either the Add-ons Site or the GitHub repository.

Coool

Re: [Release] Stylem

Post by Coool » 2022-07-24, 09:52

Hi, Lootyhoof!

I'm curious does your add-on supports options menu, because I can't see? On Stylus works great.

Image

Code: Select all

@preprocessor stylus
@advanced checkbox fixFolderTextWidth "Auto adjust folder text width" 0
Thanks.
Last edited by Coool on 2022-07-24, 18:30, edited 1 time in total.

User avatar
Moonchild
Project founder
Project founder
Posts: 39720
Joined: 2011-08-28, 17:27
Location: Sweden

Re: [Release] Stylem

Post by Moonchild » 2022-07-24, 10:18

Coool wrote:
2022-07-24, 09:52
I'm curious does your add-on supports options menu, because I can't see? On Stylus works great.
I'm not sure why you expect a completely different add-on to have specific features from something else?... :wtf:
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Coool

Re: [Release] Stylem

Post by Coool » 2022-07-24, 12:38

Moonchild, I don't. I just asked. Is it in plans? Can somebody suggest anything else beside Stylem on Pale Moon? Because I haven't found any. Known to me add-ons Stylish (has data sharing breach), Stylus, Cascadea for Safari and xStyle.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1633
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: [Release] Stylem

Post by Lootyhoof » 2022-07-24, 18:36

It's not currently in the plans, no.

User avatar
therube
Board Warrior
Board Warrior
Posts: 1791
Joined: 2018-06-08, 17:02

Re: [Release] Stylem

Post by therube » 2022-07-25, 17:31

(I'm not familiar with Stylem/Stylish...)


@Coool, see, http://forums.mozillazine.org/viewtopic ... #p14933501.
Now if with those changes will mean that "Options" will work, I don't know?

Coool

Re: [Release] Stylem

Post by Coool » 2022-07-25, 19:40

@therube, Lootyhoof already answered, that his add-on don't have Options support. And I don't think dirkf fork change that.

P.S.
Installed, dirkf fork and DON'T have Options menu.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1633
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: [Release] Stylem

Post by Lootyhoof » 2022-08-07, 14:52

Stylem has been updated to v2.2.9.

What's new?
- safety fix to avoid console warnings (thanks dirkf)
- additional compatibility fixes for Mozilla platform (up to 57) (thanks dirkf)
- internal code cleanup (thanks dirkf)

User avatar
pm29_2008r2
Moongazer
Moongazer
Posts: 12
Joined: 2021-10-16, 08:38

Re: [Release] Stylem

Post by pm29_2008r2 » 2023-01-29, 11:18

This only shows the bookmark bar style on a blank page. It works normally only under palemoon32+stylish2.0.7/2.1.1, and is invalid under stylem
[stylish-url="about:xx"] Unable to recognize and work normally

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");


#navigator-toolbox:not([customizing]) #PersonalToolbar {

visibility: collapse;
}

#main-window[stylish-url="about:home"] #PersonalToolbar,


#main-window[stylish-url="about:blank"] #PersonalToolbar,


#main-window[stylish-url="about:newtab"] #PersonalToolbar {

visibility: visible;
}

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1633
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: [Release] Stylem

Post by Lootyhoof » 2023-01-29, 15:33

pm29_2008r2 wrote:
2023-01-29, 11:18
This only shows the bookmark bar style on a blank page. It works normally only under palemoon32+stylish2.0.7/2.1.1, and is invalid under stylem
[stylish-url="about:xx"] Unable to recognize and work normally
Use stylem-url instead.

User avatar
pm29_2008r2
Moongazer
Moongazer
Posts: 12
Joined: 2021-10-16, 08:38

Re: [Release] Stylem

Post by pm29_2008r2 » 2023-01-29, 18:52

It can work normally, thank you.
Can stylem also add stylish-url support? Or automatically change it to stylem-url after manually adding a style?

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3314
Joined: 2012-08-19, 20:32

Re: [Release] Stylem

Post by back2themoon » 2025-02-06, 22:08

I'll post here too a couple of helpful userstyle resources:

https://userstyles.world/
https://uso.kkx.one/ (ad/spyware-free mirror of the old userstyles.org, now mutated into a Chrome-only parody)

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5917
Joined: 2015-12-09, 15:45

Re: [Release] Stylem

Post by moonbat » 2025-02-06, 23:02

back2themoon wrote:
2025-02-06, 22:08
https://userstyles.world/
https://uso.kkx.one/ (ad/spyware-free mirror of the old userstyles.org, now mutated into a Chrome-only parody)
Seems to be nothing but dark mode for various sites :coffee:
Swarth + AutoPageColor covers that use case without needing a separate script per site. I miss the days when these styles actually changed the look of the page, I'd love to have more density of fonts and less whitespace for one.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3314
Joined: 2012-08-19, 20:32

Re: [Release] Stylem

Post by back2themoon » 2026-06-02, 22:42

Suggestion: group/move disabled styles on bottom of the Add-ons Manager list.

Will improve usability and match current Add-ons Manager behaviour for disabled extensions (and Greasemonkey/userscripts).

Enobarbous
Fanatic
Fanatic
Posts: 122
Joined: 2022-12-06, 17:44

Re: [Release] Stylem

Post by Enobarbous » 2026-06-03, 16:20

back2themoon wrote:
2026-06-02, 22:42
Suggestion: group/move disabled styles on bottom of the Add-ons Manager list.
What's stopping you from just sorting by "enabled"?
1.jpg
You do not have the required permissions to view the files attached to this post.
I am sorry for the use of auto-translator to post

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3314
Joined: 2012-08-19, 20:32

Re: [Release] Stylem

Post by back2themoon » 2026-06-03, 16:25

Enobarbous wrote:
2026-06-03, 16:20
What's stopping you from just sorting by "enabled"?
Nothing. No idea this existed, even if it was right in front of me. Thanks. :thumbup:

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1633
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: [Release] Stylem

Post by Lootyhoof » 2026-07-09, 22:14

Stylem 3.0.0 has been released! This is a major release, and adds many exciting features. :)

Note: I will be very upfront and say that AI has been used in the development of this. It is, like any software, a tool, without which this would have been orders of magnitude more difficult to do.

- UserCSS including the ability to detect and install any such .user.css files you browse to (similar to what GreaseMonkey does in that respect)
- Support for vars (options) in the UserCSS - the install prompt and editor will allow you to turn on/off various options that a style may provide.
- Support in the Add-ons Manager for metadata provided in the UserCSS, such as author, description, version and homepage, to be transposed into add-on entries for each style. Right-click context menu entry also includes support page URL where provided in the UserCSS.
- Remove all reference and integration with userstyles.org, replaced with userstyles.world - though any site that provides a UserCSS will be installable in the same manner
- Add import/export features into the User Styles section of about:addons - this JSON backup is compatible with Stylus, and backups from Stylus are compatible with Stylem
- Bundle CodeMirror directly into the extension and drop any dependency on the built-in DevTools; not every application was guaranteed to have this and it wasn't especially well integrated.
- Include a few CodeMirror themes, changeable via the editor UI; these also persist through to the install UI.
- The editor UI includes an interactive "applies to" section that makes setting up @-moz-document rules easier.
- When creating a new style, the UserCSS Metadata is inserted by default as we aim to make this the default format given its prevalence online. It can also be inserted in the Insert menu. You can however still use styles without this metadata just fine.

UserCSS support does include support for the preprocessors that Stylus uses to varying degrees, however, "default" and "uso" are the main supported ones; the others have limited support only. This is partly a technical and partly idealogical choice; to bundle all of the libs required for stylus-lang (ironically named but unrelated as far as I understand) would be quite a complex manner, same for less. When you attempt to install or edit a style using a limited-support preprocessor, it will warn you; you have been warned. :) As for the idealogical standpoint, I personally am not a fan of using those types of languages on top of/instead of CSS when they eventually become that anyway, however, given the prevalence of them, they are supported in a limited fashion.

Enjoy! :)