Fix: newStyleInUsercss -> newStyleAsUsercss

This commit is contained in:
eight 2017-11-09 08:21:42 +08:00
parent 0c292c3150
commit 95e3ba13cd
4 changed files with 5 additions and 5 deletions

View File

@ -974,7 +974,7 @@
"optionsAdvancedContextDelete": { "optionsAdvancedContextDelete": {
"message": "Add 'Delete' in editor context menu" "message": "Add 'Delete' in editor context menu"
}, },
"optionsAdvancedNewStyleInUsercss": { "optionsAdvancedNewStyleAsUsercss": {
"message": "Write new style as usercss" "message": "Write new style as usercss"
}, },
"optionsActions": { "optionsActions": {

View File

@ -1354,7 +1354,7 @@ function setStyleMeta(style) {
function isUsercss(style) { function isUsercss(style) {
return ( return (
style.usercssData || style.usercssData ||
!style.id && prefs.get('newStyleInUsercss') !style.id && prefs.get('newStyleAsUsercss')
); );
} }

View File

@ -9,7 +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
'newStyleInUsercss': false, // create new style in usercss format 'newStyleAsUsercss': false, // create new style in usercss format
'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'

View File

@ -124,9 +124,9 @@
</span> </span>
</label> </label>
<label> <label>
<span i18n-text="optionsAdvancedNewStyleInUsercss"></span> <span i18n-text="optionsAdvancedNewStyleAsUsercss"></span>
<span class="onoffswitch"> <span class="onoffswitch">
<input type="checkbox" id="newStyleInUsercss"> <input type="checkbox" id="newStyleAsUsercss">
<span></span> <span></span>
</span> </span>
</label> </label>