Explainer for stylusUnavailableForURL message

We don't mention the G+ iframe on CWS stylable only when "Out of process iframes" feature is enabled which can be set manually via chrome://flags/#enable-site-per-process. It's still in development and is known to break some sites, which is why it's not enabled by default.
This commit is contained in:
tophf 2017-04-12 16:56:41 +03:00
parent dad1d1fe5f
commit 1749057b91
26 changed files with 490 additions and 514 deletions

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "إزالة القسم", "message": "إزالة القسم",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,8 +294,8 @@
"message": "Mozilla Formát", "message": "Mozilla Formát",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus nefunguje na těchto stránkách.)", "message": "Stylus nefunguje na těchto stránkách.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -356,8 +356,8 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus funktioniert nicht auf Seiten wie diesen.)", "message": "Stylus funktioniert nicht auf Seiten wie diesen.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,8 +294,8 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(To Stylus δεν λειτουργεί σε σελίδες όπως αυτή.)", "message": "To Stylus δεν λειτουργεί σε σελίδες όπως αυτή.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -494,10 +494,14 @@
} }
} }
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus can't affect this page.)", "message": "Stylus doesn't work on pages like this.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"stylusUnavailableForURLdetails": {
"message": "As a security precaution, the browser prohibits extensions from affecting its built-in pages (like chrome://version or about:addons) as well as other extensions' pages. Chrome/Chromium forks also restrict the Chrome Web Store.",
"description": "Sub-note in the toolbar pop-up when on a URL Stylus can't affect"
},
"toggleStyle": { "toggleStyle": {
"message": "Toggle style", "message": "Toggle style",
"description": "Label for the checkbox to enable/disable a style" "description": "Label for the checkbox to enable/disable a style"
@ -515,7 +519,7 @@
"description": "Note in the toolbar popup usually on file:// URLs after [re]loading Stylus" "description": "Note in the toolbar popup usually on file:// URLs after [re]loading Stylus"
}, },
"unreachableFileHint": { "unreachableFileHint": {
"message": "To allow Stylus access file:// URLs enable the checkbox on chrome://extensions page.", "message": "Stylus can access file:// URLs only if you enable the corresponding checkbox for Stylus extension on chrome://extensions page.",
"description": "Note in the toolbar popup for file:// URLs" "description": "Note in the toolbar popup for file:// URLs"
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {

View File

@ -350,8 +350,8 @@
"message": "Formato Mozilla", "message": "Formato Mozilla",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus no funciona en páginas como esta)", "message": "Stylus no funciona en páginas como esta",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "Poista osio", "message": "Poista osio",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,8 +294,8 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus ne fonctionne pas sur les pages de ce genre)", "message": "Stylus ne fonctionne pas sur les pages de ce genre",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "Rimuovi sezione", "message": "Rimuovi sezione",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "セクションを削除", "message": "セクションを削除",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,8 +294,8 @@
"message": "Mozilla-opmaak", "message": "Mozilla-opmaak",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus werkt niet op pagina's als deze.)", "message": "Stylus werkt niet op pagina's als deze.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "Remover seção", "message": "Remover seção",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,8 +294,8 @@
"message": "Формат Mozilla", "message": "Формат Mozilla",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus не работает на таких страницах)", "message": "Stylus не работает на таких страницах.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -1,425 +1,424 @@
{ {
"appliesToEverything": { "appliesToEverything": {
"message": "Све", "message": "Све",
"description": "Text displayed for styles that apply to all sites" "description": "Text displayed for styles that apply to all sites"
}, },
"defaultTheme": { "defaultTheme": {
"message": "подразумевано", "message": "подразумевано",
"description": "Default CodeMirror CSS theme option on the edit style page" "description": "Default CodeMirror CSS theme option on the edit style page"
}, },
"manageOnlyEdited": { "manageOnlyEdited": {
"message": "Само уређени стилови", "message": "Само уређени стилови",
"description": "Checkbox to show only locally edited styles" "description": "Checkbox to show only locally edited styles"
}, },
"exportLabel": { "exportLabel": {
"message": "Извези", "message": "Извези",
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
}, },
"issues": { "issues": {
"message": "Проблеми", "message": "Проблеми",
"description": "Label for the CSSLint issues block on the style edit page" "description": "Label for the CSSLint issues block on the style edit page"
}, },
"cm_tabSize": { "cm_tabSize": {
"message": "Величина картице", "message": "Величина картице",
"description": "Label for the text box controlling tab size option for the style editor." "description": "Label for the text box controlling tab size option for the style editor."
}, },
"enableStyleLabel": { "enableStyleLabel": {
"message": "Омогући", "message": "Омогући",
"description": "Label for the button to enable a style" "description": "Label for the button to enable a style"
}, },
"styleMissingName": { "styleMissingName": {
"message": "Унесите назив", "message": "Унесите назив",
"description": "Error displayed when user saves without providing a name" "description": "Error displayed when user saves without providing a name"
}, },
"appliesDomainOption": { "appliesDomainOption": {
"message": "УРЛ адресе на домену", "message": "УРЛ адресе на домену",
"description": "Option to make the style apply to the entered string as a domain" "description": "Option to make the style apply to the entered string as a domain"
}, },
"checkForUpdate": { "checkForUpdate": {
"message": "Проверите ажурирање", "message": "Проверите ажурирање",
"description": "Label for the button to check a single style for an update" "description": "Label for the button to check a single style for an update"
}, },
"importAppendLabel": { "importAppendLabel": {
"message": "Додај стилу", "message": "Додај стилу",
"description": "Label for the button to import a style and append to the existing sections" "description": "Label for the button to import a style and append to the existing sections"
}, },
"updateAllCheckSucceededNoUpdate": { "updateAllCheckSucceededNoUpdate": {
"message": "Сви стилови су ажурирани.", "message": "Сви стилови су ажурирани.",
"description": "Text that displays when an update all check completed and no updates are available" "description": "Text that displays when an update all check completed and no updates are available"
}, },
"styleFromMozillaFormatPrompt": { "styleFromMozillaFormatPrompt": {
"message": "Налепи код у Mozilla формату", "message": "Налепи код у Mozilla формату",
"description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button" "description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button"
}, },
"helpAlt": { "helpAlt": {
"message": "Помоћ", "message": "Помоћ",
"description": "Alternate text for help buttons" "description": "Alternate text for help buttons"
}, },
"search": { "search": {
"message": "Претражи", "message": "Претражи",
"description": "Label before the search input field in the editor shown on Ctrl-F" "description": "Label before the search input field in the editor shown on Ctrl-F"
}, },
"confirmYes": { "confirmYes": {
"message": "Да", "message": "Да",
"description": "'Yes' button in a confirm dialog" "description": "'Yes' button in a confirm dialog"
}, },
"findStylesForSite": { "findStylesForSite": {
"message": "Пронађи још стилова за овај сајт.", "message": "Пронађи још стилова за овај сајт.",
"description": "Text for a link that gets a list of styles for the current site" "description": "Text for a link that gets a list of styles for the current site"
}, },
"manageHeading": { "manageHeading": {
"message": "Инсталирани стилови", "message": "Инсталирани стилови",
"description": "Heading for the manage page" "description": "Heading for the manage page"
}, },
"styleBeautify": { "styleBeautify": {
"message": " Улепшај", "message": " Улепшај",
"description": "Label for the CSS-beautifier button on the edit style page" "description": "Label for the CSS-beautifier button on the edit style page"
}, },
"styleEnabledLabel": { "styleEnabledLabel": {
"message": "Омогућено", "message": "Омогућено",
"description": "Label for the enabled state of styles" "description": "Label for the enabled state of styles"
}, },
"styleToMozillaFormatHelp": { "styleToMozillaFormatHelp": {
"message": "Mozilla формат кода се може користити у Stylish за Firefox и може се послати на userstyles.org.", "message": "Mozilla формат кода се може користити у Stylish за Firefox и може се послати на userstyles.org.",
"description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format" "description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format"
}, },
"sectionAdd": { "sectionAdd": {
"message": "Додај нови одељак", "message": "Додај нови одељак",
"description": "Label for the button to add a section" "description": "Label for the button to add a section"
}, },
"styleSaveLabel": { "styleSaveLabel": {
"message": "Сачувај", "message": "Сачувај",
"description": "Label for save button for style editing" "description": "Label for save button for style editing"
}, },
"confirmStop": { "confirmStop": {
"message": "Заустави", "message": "Заустави",
"description": "'Stop' button in a confirm dialog" "description": "'Stop' button in a confirm dialog"
}, },
"writeStyleForURL": { "writeStyleForURL": {
"message": "ову УРЛ адресу", "message": "ову УРЛ адресу",
"description": "Text for link in toolbar pop-up to write a new style for the current URL" "description": "Text for link in toolbar pop-up to write a new style for the current URL"
}, },
"appliesAdd": { "appliesAdd": {
"message": "Додај", "message": "Додај",
"description": "Label for the button to add an 'applies' entry" "description": "Label for the button to add an 'applies' entry"
}, },
"appliesRegexpOption": { "appliesRegexpOption": {
"message": "УРЛ адресе које одговарају регуларном изразу", "message": "УРЛ адресе које одговарају регуларном изразу",
"description": "Option to make the style apply to the entered string as a regular expression" "description": "Option to make the style apply to the entered string as a regular expression"
}, },
"styleInstall": { "styleInstall": {
"message": "Инсталирати '$stylename$' у Stylus?", "message": "Инсталирати '$stylename$' у Stylus?",
"description": "Confirmation when installing a style", "description": "Confirmation when installing a style",
"placeholders": { "placeholders": {
"stylename": { "stylename": {
"content": "$1" "content": "$1"
} }
} }
}, },
"manageText": { "manageText": {
"message": "<a href='https://userstyles.org'>Преузмите стилове са userstyles.org</a> | <a href='http://add0n.com/stylus.html'>Помоћ</a>", "message": "<a href='https://userstyles.org'>Преузмите стилове са userstyles.org</a> | <a href='http://add0n.com/stylus.html'>Помоћ</a>",
"description": "Help text on the manage page" "description": "Help text on the manage page"
}, },
"searchStyles": { "searchStyles": {
"message": "Претражи садржај", "message": "Претражи садржај",
"description": "Label for the search filter textbox on the Manage styles page" "description": "Label for the search filter textbox on the Manage styles page"
}, },
"disableStyleLabel": { "disableStyleLabel": {
"message": "Онемогући", "message": "Онемогући",
"description": "Label for the button to disable a style" "description": "Label for the button to disable a style"
}, },
"prefShowBadge": { "prefShowBadge": {
"message": "Прикажи број активних стилова за тренутни сајт на дугмету на алатној траци", "message": "Прикажи број активних стилова за тренутни сајт на дугмету на алатној траци",
"description": "Label for the checkbox controlling toolbar badge text." "description": "Label for the checkbox controlling toolbar badge text."
}, },
"menuShowBadge": { "menuShowBadge": {
"message": "Прикажи број активних стилова", "message": "Прикажи број активних стилова",
"description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text."
}, },
"cm_lineWrapping": { "cm_lineWrapping": {
"message": "Преламање текста", "message": "Преламање текста",
"description": "Label for the checkbox controlling word wrap option for the style editor." "description": "Label for the checkbox controlling word wrap option for the style editor."
}, },
"styleCancelEditLabel": { "styleCancelEditLabel": {
"message": "Назад на управљање", "message": "Назад на управљање",
"description": "Label for cancel button for style editing" "description": "Label for cancel button for style editing"
}, },
"styleChangesNotSaved": { "styleChangesNotSaved": {
"message": "Направили сте измене овог стила које нисте сачували.", "message": "Направили сте измене овог стила које нисте сачували.",
"description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving"
}, },
"importLabel": { "importLabel": {
"message": "Увези", "message": "Увези",
"description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)"
}, },
"updateCheckFailServerUnreachable": { "updateCheckFailServerUnreachable": {
"message": "Ажурирање није успело - сервер није доступан.", "message": "Ажурирање није успело - сервер није доступан.",
"description": "Text that displays when an update check failed because the update server is unreachable" "description": "Text that displays when an update check failed because the update server is unreachable"
}, },
"manageFilters": { "manageFilters": {
"message": "Филтери", "message": "Филтери",
"description": "Label for filters container" "description": "Label for filters container"
}, },
"applyAllUpdates": { "applyAllUpdates": {
"message": "Примени сва ажурирања", "message": "Примени сва ажурирања",
"description": "Label for the button to apply all detected updates" "description": "Label for the button to apply all detected updates"
}, },
"deleteStyleConfirm": { "deleteStyleConfirm": {
"message": "Да ли сте сигурни да желите да избришете овај стил?", "message": "Да ли сте сигурни да желите да избришете овај стил?",
"description": "Confirmation before deleting a style" "description": "Confirmation before deleting a style"
}, },
"confirmDelete": { "confirmDelete": {
"message": "Delete" "message": "Delete"
}, },
"confirmCancel": { "confirmCancel": {
"message": "Cancel" "message": "Cancel"
}, },
"styleBadRegexp": { "styleBadRegexp": {
"message": "Регуларни израз је неисправан.", "message": "Регуларни израз је неисправан.",
"description": "Validation message for a bad regexp in a style" "description": "Validation message for a bad regexp in a style"
}, },
"optionsHeading": { "optionsHeading": {
"message": "Опције", "message": "Опције",
"description": "Heading for options section on manage page." "description": "Heading for options section on manage page."
}, },
"appliesDisplay": { "appliesDisplay": {
"message": "Примењује се на: $applies$", "message": "Примењује се на: $applies$",
"description": "Text on the manage screen to describe what the style applies to", "description": "Text on the manage screen to describe what the style applies to",
"placeholders": { "placeholders": {
"applies": { "applies": {
"content": "$1" "content": "$1"
} }
} }
}, },
"styleUpdate": { "styleUpdate": {
"message": "Да ли сте сигурни да желите да ажурирате '$stylename$'?", "message": "Да ли сте сигурни да желите да ажурирате '$stylename$'?",
"description": "Confirmation when updating a style", "description": "Confirmation when updating a style",
"placeholders": { "placeholders": {
"stylename": { "stylename": {
"content": "$1" "content": "$1"
} }
} }
}, },
"styleSectionsTitle": { "styleSectionsTitle": {
"message": "Одељци", "message": "Одељци",
"description": "Title for the style sections section" "description": "Title for the style sections section"
}, },
"editStyleTitle": { "editStyleTitle": {
"message": "Уреди стил $stylename$", "message": "Уреди стил $stylename$",
"description": "Title of the page for editing styles", "description": "Title of the page for editing styles",
"placeholders": { "placeholders": {
"stylename": { "stylename": {
"content": "$1" "content": "$1"
} }
} }
}, },
"updateCheckSucceededNoUpdate": { "updateCheckSucceededNoUpdate": {
"message": "Стил је ажуриран.", "message": "Стил је ажуриран.",
"description": "Text that displays when an update check completed and no update is available" "description": "Text that displays when an update check completed and no update is available"
}, },
"appliesUrlPrefixOption": { "appliesUrlPrefixOption": {
"message": "УРЛ адресе које почињу са", "message": "УРЛ адресе које почињу са",
"description": "Option to make the style apply to the entered string as a URL prefix" "description": "Option to make the style apply to the entered string as a URL prefix"
}, },
"searchRegexp": { "searchRegexp": {
"message": "Користи /re/ синтаксу за претрагу регуларним изразом", "message": "Користи /re/ синтаксу за претрагу регуларним изразом",
"description": "Label after the search input field in the editor shown on Ctrl-F" "description": "Label after the search input field in the editor shown on Ctrl-F"
}, },
"importReplaceTooltip": { "importReplaceTooltip": {
"message": "Одбаци садржај тренутног стила и упиши преко њега увезени стил", "message": "Одбаци садржај тренутног стила и упиши преко њега увезени стил",
"description": "Label for the button to import and overwrite current style" "description": "Label for the button to import and overwrite current style"
}, },
"popupStylesFirst": { "popupStylesFirst": {
"message": "Излистај стилове пре команди у менију дугмета на алатној траци", "message": "Излистај стилове пре команди у менију дугмета на алатној траци",
"description": "Label for the checkbox controlling section order in the toolbar button menu." "description": "Label for the checkbox controlling section order in the toolbar button menu."
}, },
"sectionHelp": { "sectionHelp": {
"message": "Одељци вам омогућавају да дефинишете различите делове кода који се примењују на раличите скупове УРЛ-ова у истом стилу. На пример, један исти стил може променити почетну страницу једног сајта на један начин а остатак сајта на други начин.", "message": "Одељци вам омогућавају да дефинишете различите делове кода који се примењују на раличите скупове УРЛ-ова у истом стилу. На пример, један исти стил може променити почетну страницу једног сајта на један начин а остатак сајта на други начин.",
"description": "Help text for sections" "description": "Help text for sections"
}, },
"noStylesForSite": { "noStylesForSite": {
"message": "Нема инсталираних стилова за овај сајт.", "message": "Нема инсталираних стилова за овај сајт.",
"description": "Text displayed when no styles are installed for the current site" "description": "Text displayed when no styles are installed for the current site"
}, },
"appliesDisplayTruncatedSuffix": { "appliesDisplayTruncatedSuffix": {
"message": "и још", "message": "и још",
"description": "Text added to appliesDisplay when there are more sites for the style than are displayed" "description": "Text added to appliesDisplay when there are more sites for the style than are displayed"
}, },
"appliesRemove": { "appliesRemove": {
"message": "Уклони", "message": "Уклони",
"description": "Label for the button to remove an 'applies' entry" "description": "Label for the button to remove an 'applies' entry"
}, },
"styleToMozillaFormatTitle": { "styleToMozillaFormatTitle": {
"message": "Стил у Mozilla формату", "message": "Стил у Mozilla формату",
"description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page" "description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page"
}, },
"manageTitle": { "manageTitle": {
"message": "Stylus", "message": "Stylus",
"description": "Title for the manage page" "description": "Title for the manage page"
}, },
"writeStyleFor": { "writeStyleFor": {
"message": "Упиши стил за:", "message": "Упиши стил за:",
"description": "Label for toolbar pop-up that precedes the links to write a new style" "description": "Label for toolbar pop-up that precedes the links to write a new style"
}, },
"replace": { "replace": {
"message": "Замени", "message": "Замени",
"description": "Label before the replace input field in the editor shown on Ctrl-H" "description": "Label before the replace input field in the editor shown on Ctrl-H"
}, },
"appliesLabel": { "appliesLabel": {
"message": "Примењује се на", "message": "Примењује се на",
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Управљај инсталираним стиловима", "message": "Управљај инсталираним стиловима",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
"message": "Ажурирање није успело - сервер је одговорио кодом $code$.", "message": "Ажурирање није успело - сервер је одговорио кодом $code$.",
"description": "Text that displays when an update check failed because the response code indicates an error", "description": "Text that displays when an update check failed because the response code indicates an error",
"placeholders": { "placeholders": {
"code": { "code": {
"content": "$1" "content": "$1"
} }
} }
}, },
"appliesSpecify": { "appliesSpecify": {
"message": "Детаљније", "message": "Детаљније",
"description": "Label for the button to make a style apply only to specific sites" "description": "Label for the button to make a style apply only to specific sites"
}, },
"installUpdate": { "installUpdate": {
"message": "Инсталирај ажурирање", "message": "Инсталирај ажурирање",
"description": "Label for the button to install an update for a single style" "description": "Label for the button to install an update for a single style"
}, },
"styleMozillaFormatHeading": { "styleMozillaFormatHeading": {
"message": "Mozilla формат", "message": "Mozilla формат",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus не ради на страницама као што је ова.)", "message": "Stylus не ради на страницама као што је ова.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" },
}, "sectionRemove": {
"sectionRemove": { "message": "Уклони одељак",
"message": "Уклони одељак", "description": "Label for the button to remove a section"
"description": "Label for the button to remove a section" },
}, "disableAllStyles": {
"disableAllStyles": { "message": "Искључи све стилове",
"message": "Искључи све стилове", "description": "Label for the checkbox that turns all enabled styles off."
"description": "Label for the checkbox that turns all enabled styles off." },
}, "undoGlobal": {
"undoGlobal": { "message": "Опозови (свеобухватно)",
"message": "Опозови (свеобухватно)", "description": "CSS-beautify global Undo button label"
"description": "CSS-beautify global Undo button label" },
}, "updateCompleted": {
"updateCompleted": { "message": "Ажурирање је комплетирано.",
"message": "Ажурирање је комплетирано.", "description": "Text that displays when an update completed"
"description": "Text that displays when an update completed" },
}, "checkingForUpdate": {
"checkingForUpdate": { "message": "Проверавање...",
"message": "Проверавање...", "description": "Text to display when checking a style for an update"
"description": "Text to display when checking a style for an update" },
}, "sectionCode": {
"sectionCode": { "message": "Код",
"message": "Код", "description": "Label for the code for a section"
"description": "Label for the code for a section" },
}, "cm_smartIndent": {
"cm_smartIndent": { "message": "Користи паметно увлачење редова",
"message": "Користи паметно увлачење редова", "description": "Label for the checkbox controlling smart indentation option for the style editor."
"description": "Label for the checkbox controlling smart indentation option for the style editor." },
}, "appliesHelp": {
"appliesHelp": { "message": "Употреба 'Примењује се на' одређује опсег УРЛ адреса на које се код у овом одељку примењује.",
"message": "Употреба 'Примењује се на' одређује опсег УРЛ адреса на које се код у овом одељку примењује.", "description": "Help text for 'applies to' section"
"description": "Help text for 'applies to' section" },
}, "editStyleHeading": {
"editStyleHeading": { "message": "Уреди стил",
"message": "Уреди стил", "description": "Title of the page for editing styles"
"description": "Title of the page for editing styles" },
}, "appliesUrlOption": {
"appliesUrlOption": { "message": "УРЛ",
"message": "УРЛ", "description": "Option to make the style apply to the entered string as a URL"
"description": "Option to make the style apply to the entered string as a URL" },
}, "addStyleTitle": {
"addStyleTitle": { "message": "Додај стил",
"message": "Додај стил", "description": "Title of the page for adding styles"
"description": "Title of the page for adding styles" },
}, "importReplaceLabel": {
"importReplaceLabel": { "message": "Упиши преко стила",
"message": "Упиши преко стила", "description": "Label for the button to import and overwrite current style"
"description": "Label for the button to import and overwrite current style" },
}, "dbError": {
"dbError": { "message": "Дошло је до грешке користећи Stylus базу података. Да ли желите да посетите веб страницу са могућим решењима?",
"message": "Дошло је до грешке користећи Stylus базу података. Да ли желите да посетите веб страницу са могућим решењима?", "description": "Prompt when a DB error is encountered"
"description": "Prompt when a DB error is encountered" },
}, "importAppendTooltip": {
"importAppendTooltip": { "message": "Додај увезени стил тренутном стилу",
"message": "Додај увезени стил тренутном стилу", "description": "Tooltip for the button to import a style and append to the existing sections"
"description": "Tooltip for the button to import a style and append to the existing sections" },
}, "helpKeyMapHotkey": {
"helpKeyMapHotkey": { "message": "Притисни пречицу",
"message": "Притисни пречицу", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short"
"description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" },
}, "replaceAll": {
"replaceAll": { "message": "Замени све",
"message": "Замени све", "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey"
"description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" },
}, "editGotoLine": {
"editGotoLine": { "message": "Иди на ред (или line:col)",
"message": "Иди на ред (или line:col)", "description": "Go to line or line:column on Ctrl-G in style code editor"
"description": "Go to line or line:column on Ctrl-G in style code editor" },
}, "checkAllUpdates": {
"checkAllUpdates": { "message": "Проверите ажурирања за све стилове",
"message": "Проверите ажурирања за све стилове", "description": "Label for the button to check all styles for updates"
"description": "Label for the button to check all styles for updates" },
}, "issuesHelp": {
"issuesHelp": { "message": "Проблем пронађен од стране <a href='https://github.com/CSSLint/csslint' target='_blank'>CSSLint</a> са овим омогућеним правилима:",
"message": "Проблем пронађен од стране <a href='https://github.com/CSSLint/csslint' target='_blank'>CSSLint</a> са овим омогућеним правилима:", "description": "Help popup message for the CSSLint issues block on the style edit page"
"description": "Help popup message for the CSSLint issues block on the style edit page" },
}, "confirmNo": {
"confirmNo": { "message": "Не",
"message": "Не", "description": "'No' button in a confirm dialog"
"description": "'No' button in a confirm dialog" },
}, "undo": {
"undo": { "message": "Опозови",
"message": "Опозови", "description": "Button label"
"description": "Button label" },
}, "cm_keyMap": {
"cm_keyMap": { "message": "Мапа тастера",
"message": "Мапа тастера", "description": "Label for the drop-down list controlling the keymap for the style editor."
"description": "Label for the drop-down list controlling the keymap for the style editor." },
}, "cm_indentWithTabs": {
"cm_indentWithTabs": { "message": "Користи картице са паметним увлачењем редова",
"message": "Користи картице са паметним увлачењем редова", "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor."
"description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." },
}, "replaceWith": {
"replaceWith": { "message": "Замени са",
"message": "Замени са", "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc."
"description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." },
}, "deleteStyleLabel": {
"deleteStyleLabel": { "message": "Избриши",
"message": "Избриши", "description": "Label for the button to delete a style"
"description": "Label for the button to delete a style" },
}, "addStyleLabel": {
"addStyleLabel": { "message": "Упиши нови стил",
"message": "Упиши нови стил", "description": "Label for the button to go to the add style page"
"description": "Label for the button to go to the add style page" },
}, "manageOnlyEnabled": {
"manageOnlyEnabled": { "message": "Само омогућени стилови",
"message": "Само омогућени стилови", "description": "Checkbox to show only enabled styles"
"description": "Checkbox to show only enabled styles" },
}, "editStyleLabel": {
"editStyleLabel": { "message": "Уреди",
"message": "Уреди", "description": "Label for the button to go to the edit style page"
"description": "Label for the button to go to the edit style page" },
}, "cm_theme": {
"cm_theme": { "message": "Тема",
"message": "Тема", "description": "Label for the style editor's CSS theme."
"description": "Label for the style editor's CSS theme." },
}, "helpKeyMapCommand": {
"helpKeyMapCommand": { "message": "Укуцај име команде",
"message": "Укуцај име команде", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short"
"description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" },
}, "description": {
"description": { "message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.",
"message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.", "description": "Extension description"
"description": "Extension description" }
} }
}

View File

@ -294,8 +294,8 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus fungerar inte på sidor som denna.)", "message": "Stylus fungerar inte på sidor som denna.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,8 +294,8 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus fungerar inte på sidor som dessa.)", "message": "Stylus fungerar inte på sidor som dessa.",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "Remove section", "message": "Remove section",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "Bölümü kaldır", "message": "Bölümü kaldır",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -294,10 +294,6 @@
"message": "Mozilla Format", "message": "Mozilla Format",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": {
"message": "(Stylus does not work on pages like this.)",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
},
"sectionRemove": { "sectionRemove": {
"message": "移除节", "message": "移除节",
"description": "Label for the button to remove a section" "description": "Label for the button to remove a section"

View File

@ -352,8 +352,8 @@
"message": "Mozilla 格式", "message": "Mozilla 格式",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": "(Stylus在这样的页面上不工作)", "message": "Stylus在这样的页面上不工作",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -294,8 +294,8 @@
"message": "Mozilla格式", "message": "Mozilla格式",
"description": "Heading for the section with buttons to import/export Mozilla format of the style" "description": "Heading for the section with buttons to import/export Mozilla format of the style"
}, },
"stylishUnavailableForURL": { "stylusUnavailableForURL": {
"message": " Stylus 不能在諸如此類的網頁上生效。", "message": "Stylus 不能在諸如此類的網頁上生效。",
"description": "Note in the toolbar pop-up when on a URL Stylus can't affect" "description": "Note in the toolbar pop-up when on a URL Stylus can't affect"
}, },
"sectionRemove": { "sectionRemove": {

View File

@ -14,8 +14,14 @@ const URLS = {
configureCommands: configureCommands:
OPERA ? 'opera://settings/configureCommands' OPERA ? 'opera://settings/configureCommands'
: 'chrome://extensions/configureCommands', : 'chrome://extensions/configureCommands',
// CWS cannot be scripted in chromium, see ChromeExtensionsClient::IsScriptableURL
// https://cs.chromium.org/chromium/src/chrome/common/extensions/chrome_extensions_client.cc
chromeWebStore: FIREFOX ? 'N/A' : 'https://chrome.google.com/webstore/',
}; };
const RX_SUPPORTED_URLS = new RegExp(`^(file|https?|ftps?):|^${URLS.ownOrigin}`); const RX_SUPPORTED_URLS = new RegExp(
'^(file|ftps?|http)://|' +
`^https://${FIREFOX ? '' : '(?!chrome\\.google\\.com/webstore)'}|` +
'^' + URLS.ownOrigin);
let BG = chrome.extension.getBackgroundPage(); let BG = chrome.extension.getBackgroundPage();

View File

@ -66,7 +66,6 @@ a:hover {
display: table-cell; display: table-cell;
} }
#unavailable,
#installed { #installed {
border-bottom: 1px solid black; border-bottom: 1px solid black;
padding-bottom: 2px; padding-bottom: 2px;
@ -219,9 +218,7 @@ body > .actions {
} }
.actions > div:not(:last-child):not(#disable-all-wrapper), .actions > div:not(:last-child):not(#disable-all-wrapper),
.actions > .main-controls > div:not(:last-child), .actions > .main-controls > div:not(:last-child) {
#unavailable:not(:last-child),
#unavailable + .actions {
margin-bottom: 0.75em; margin-bottom: 0.75em;
} }
@ -230,24 +227,10 @@ body > .actions {
vertical-align: middle; vertical-align: middle;
} }
#unavailable { body.blocked #installed > *,
border: none; body.blocked .actions > .main-controls,
body.blocked .actions > .left-gutter {
display: none; display: none;
margin-top: 0.75em;
align-items: center;
justify-content: center;
font-size: 14px;
}
body.blocked #installed,
body.blocked #find-styles,
body.blocked #write-style,
body:not(.blocked) #unavailable {
display: none;
}
body.blocked #unavailable {
display: flex;
} }
/* Never shown, but can be enabled with a style */ /* Never shown, but can be enabled with a style */
@ -437,22 +420,38 @@ body.blocked #unavailable {
opacity: .25; opacity: .25;
} }
.blocked:before,
.unreachable:before { .unreachable:before {
content: "__MSG_unreachableContentScript__";
padding: 5px 0.75em; padding: 5px 0.75em;
display: block; display: block;
font-weight: bold; font-weight: bold;
} }
.blocked #installed:before,
.unreachable #installed:before { .unreachable #installed:before {
content: "__MSG_unreachableFileHint__";
padding: 1px 0.75em 9px; padding: 1px 0.75em 9px;
display: block; display: block;
font-size: 90%; font-size: 90%;
border-bottom: 1px solid black;
margin-bottom: 5px; margin-bottom: 5px;
} }
.blocked:before {
content: "__MSG_stylusUnavailableForURL__";
}
.blocked #installed:before {
content: "__MSG_stylusUnavailableForURLdetails__";
}
.unreachable:before {
content: "__MSG_unreachableContentScript__";
}
.unreachable #installed:before {
content: "__MSG_unreachableFileHint__";
border-bottom: 1px solid black;
}
@keyframes lights-off { @keyframes lights-off {
from { from {
background-color: transparent; background-color: transparent;

View File

@ -76,12 +76,6 @@
</div> </div>
</div> </div>
<div id="unavailable">
<div class="main-controls">
<span id="unavailable-message" i18n-text="stylishUnavailableForURL"></span>
</div>
</div>
<div id="installed"></div> <div id="installed"></div>
<div class="actions"> <div class="actions">

View File

@ -357,7 +357,7 @@ function handleUpdate(style) {
} }
// Add an entry when a new style for the current url is installed // Add an entry when a new style for the current url is installed
if (tabURL && BG.getApplicableSections({style, matchUrl: tabURL, stopOnFirst: true}).length) { if (tabURL && BG.getApplicableSections({style, matchUrl: tabURL, stopOnFirst: true}).length) {
$('#unavailable').style.display = 'none'; document.body.classList.remove('blocked');
createStyleElement({style}); createStyleElement({style});
} }
} }

View File

@ -104,6 +104,12 @@ function filterStyles({
// eslint-disable-next-line no-use-before-define // eslint-disable-next-line no-use-before-define
const disableAll = asHash && prefs.get('disableAll', false); const disableAll = asHash && prefs.get('disableAll', false);
if (matchUrl && matchUrl.startsWith(URLS.chromeWebStore)) {
// CWS cannot be scripted in chromium, see ChromeExtensionsClient::IsScriptableURL
// https://cs.chromium.org/chromium/src/chrome/common/extensions/chrome_extensions_client.cc
return asHash ? {} : [];
}
// add \t after url to prevent collisions (not sure it can actually happen though) // add \t after url to prevent collisions (not sure it can actually happen though)
const cacheKey = ' ' + enabled + url + '\t' + id + matchUrl + '\t' + asHash + strictRegexp; const cacheKey = ' ' + enabled + url + '\t' + id + matchUrl + '\t' + asHash + strictRegexp;
const cached = cachedStyles.filters.get(cacheKey); const cached = cachedStyles.filters.get(cacheKey);