xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
944 stars 83 forks source link

StyloaiX - Edit style results in error #178

Closed jathek closed 1 year ago

jathek commented 1 year ago

Firefox Dev 106.0b2 (64-bit), Windows 10 Pro 21H2 19044.2006

When I right-click a style and edit it, I get this window: image

askii2 commented 1 year ago

Edit chrome\utils\styloaix\edit.xhtml, copying the changes from Firefox internal edit.xhtml:

On line 3, Change:

-<!DOCTYPE window [
-<!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
- %editMenuStrings;
-]>
+<!DOCTYPE window>

And on lines 58 to 61 (or 61 to 64 before the above edit):

-      <menuitem id="se-menu-find"
-        label="&findCmd.label;" accesskey="&findCmd.accesskey;" command="cmd_find"/>
-      <menuitem id="cMenu_findAgain" label="&findAgainCmd.label;"
-                accesskey="&findAgainCmd.accesskey;" command="cmd_findAgain"/>
+      <menuitem id="se-menu-find"
+                data-l10n-id="styleeditor-find" command="cmd_find"/>
+      <menuitem id="cMenu_findAgain"
+                data-l10n-id="styleeditor-find-again" command="cmd_findAgain"/>
jathek commented 1 year ago

cheers, that worked

xiaoxiaoflood commented 1 year ago

Thanks, fixed, please update.