Add: newStyleFormat option
This commit is contained in:
parent
8007f47c09
commit
3cb1943648
|
@ -967,6 +967,12 @@
|
||||||
"optionsAdvancedContextDelete": {
|
"optionsAdvancedContextDelete": {
|
||||||
"message": "Add 'Delete' in editor context menu"
|
"message": "Add 'Delete' in editor context menu"
|
||||||
},
|
},
|
||||||
|
"optionsAdvancedNewStyleFormat": {
|
||||||
|
"message": "Format of newly created userstyle"
|
||||||
|
},
|
||||||
|
"optionsAdvancedNewStyleFormatRegular": {
|
||||||
|
"message": "Regular"
|
||||||
|
},
|
||||||
"optionsActions": {
|
"optionsActions": {
|
||||||
"message": "Actions"
|
"message": "Actions"
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,6 +9,7 @@ var prefs = new function Prefs() {
|
||||||
'show-badge': true, // display text on popup menu icon
|
'show-badge': true, // display text on popup menu icon
|
||||||
'disableAll': false, // boss key
|
'disableAll': false, // boss key
|
||||||
'exposeIframes': false, // Add 'stylus-iframe' attribute to HTML element in all iframes
|
'exposeIframes': false, // Add 'stylus-iframe' attribute to HTML element in all iframes
|
||||||
|
'newStyleFormat': 'regular', // 'regular' or 'usercss', the format of userstyle when creating a new style.
|
||||||
|
|
||||||
'popup.breadcrumbs': true, // display 'New style' links as URL breadcrumbs
|
'popup.breadcrumbs': true, // display 'New style' links as URL breadcrumbs
|
||||||
'popup.breadcrumbs.usePath': false, // use URL path for 'this URL'
|
'popup.breadcrumbs.usePath': false, // use URL path for 'this URL'
|
||||||
|
|
|
@ -122,6 +122,13 @@
|
||||||
<span></span>
|
<span></span>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
|
<label>
|
||||||
|
<span i18n-text="optionsAdvancedNewStyleFormat"></span>
|
||||||
|
<select id="newStyleFormat">
|
||||||
|
<option value="regular" i18n-text="optionsAdvancedNewStyleFormatRegular"></option>
|
||||||
|
<option value="usercss">Usercss</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,7 @@ label:not([disabled]):hover > :first-child {
|
||||||
button,
|
button,
|
||||||
input[type=number],
|
input[type=number],
|
||||||
input[type="color"],
|
input[type="color"],
|
||||||
|
select,
|
||||||
.onoffswitch {
|
.onoffswitch {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user