From 1749057b919e21ea4d4a61a1ea0a91a186c17bd3 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 12 Apr 2017 16:56:41 +0300 Subject: [PATCH] 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. --- _locales/ar/messages.json | 4 - _locales/cs/messages.json | 4 +- _locales/de/messages.json | 4 +- _locales/el/messages.json | 4 +- _locales/en/messages.json | 10 +- _locales/es/messages.json | 4 +- _locales/fi/messages.json | 4 - _locales/fr/messages.json | 4 +- _locales/it/messages.json | 4 - _locales/ja/messages.json | 4 - _locales/nl/messages.json | 4 +- _locales/pt_BR/messages.json | 4 - _locales/ru/messages.json | 4 +- _locales/sr/messages.json | 849 +++++++++++++++++------------------ _locales/sv/messages.json | 4 +- _locales/sv_SE/messages.json | 4 +- _locales/te/messages.json | 4 - _locales/tr/messages.json | 4 - _locales/zh/messages.json | 4 - _locales/zh_CN/messages.json | 4 +- _locales/zh_TW/messages.json | 4 +- messaging.js | 8 +- popup.css | 47 +- popup.html | 6 - popup.js | 2 +- storage.js | 6 + 26 files changed, 490 insertions(+), 514 deletions(-) diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json index f151170a..a808bf3c 100644 --- a/_locales/ar/messages.json +++ b/_locales/ar/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "إزالة القسم", "description": "Label for the button to remove a section" diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index 2e822c29..d2ab037c 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla Formát", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus nefunguje na těchto stránkách.)", + "stylusUnavailableForURL": { + "message": "Stylus nefunguje na těchto stránkách.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 8b13f9be..11c75031 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -356,8 +356,8 @@ "message": "Mozilla Format", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus funktioniert nicht auf Seiten wie diesen.)", + "stylusUnavailableForURL": { + "message": "Stylus funktioniert nicht auf Seiten wie diesen.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/el/messages.json b/_locales/el/messages.json index e0ad203d..1ce194ef 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla Format", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(To Stylus δεν λειτουργεί σε σελίδες όπως αυτή.)", + "stylusUnavailableForURL": { + "message": "To Stylus δεν λειτουργεί σε σελίδες όπως αυτή.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/en/messages.json b/_locales/en/messages.json index f70b8092..4d2e9786 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -494,10 +494,14 @@ } } }, - "stylishUnavailableForURL": { - "message": "(Stylus can't affect this page.)", + "stylusUnavailableForURL": { + "message": "Stylus doesn't work on pages like this.", "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": { "message": "Toggle 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" }, "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" }, "updateCheckFailBadResponseCode": { diff --git a/_locales/es/messages.json b/_locales/es/messages.json index 57b69ab4..8eb8fb4e 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -350,8 +350,8 @@ "message": "Formato Mozilla", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus no funciona en páginas como esta)", + "stylusUnavailableForURL": { + "message": "Stylus no funciona en páginas como esta", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index c567ec52..05f23581 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "Poista osio", "description": "Label for the button to remove a section" diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index dbc35928..bcefde28 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla Format", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus ne fonctionne pas sur les pages de ce genre)", + "stylusUnavailableForURL": { + "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" }, "sectionRemove": { diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 6ffd1349..0c0e3c96 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "Rimuovi sezione", "description": "Label for the button to remove a section" diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index dcd249cd..0bff027c 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "セクションを削除", "description": "Label for the button to remove a section" diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index b9c7709a..6361e18d 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla-opmaak", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus werkt niet op pagina's als deze.)", + "stylusUnavailableForURL": { + "message": "Stylus werkt niet op pagina's als deze.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 1c45919b..1781676d 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "Remover seção", "description": "Label for the button to remove a section" diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 585f30dc..1de473da 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -294,8 +294,8 @@ "message": "Формат Mozilla", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus не работает на таких страницах)", + "stylusUnavailableForURL": { + "message": "Stylus не работает на таких страницах.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json index 56723fd0..34e16b6d 100644 --- a/_locales/sr/messages.json +++ b/_locales/sr/messages.json @@ -1,425 +1,424 @@ -{ - "appliesToEverything": { - "message": "Све", - "description": "Text displayed for styles that apply to all sites" - }, - "defaultTheme": { - "message": "подразумевано", - "description": "Default CodeMirror CSS theme option on the edit style page" - }, - "manageOnlyEdited": { - "message": "Само уређени стилови", - "description": "Checkbox to show only locally edited styles" - }, - "exportLabel": { - "message": "Извези", - "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" - }, - "issues": { - "message": "Проблеми", - "description": "Label for the CSSLint issues block on the style edit page" - }, - "cm_tabSize": { - "message": "Величина картице", - "description": "Label for the text box controlling tab size option for the style editor." - }, - "enableStyleLabel": { - "message": "Омогући", - "description": "Label for the button to enable a style" - }, - "styleMissingName": { - "message": "Унесите назив", - "description": "Error displayed when user saves without providing a name" - }, - "appliesDomainOption": { - "message": "УРЛ адресе на домену", - "description": "Option to make the style apply to the entered string as a domain" - }, - "checkForUpdate": { - "message": "Проверите ажурирање", - "description": "Label for the button to check a single style for an update" - }, - "importAppendLabel": { - "message": "Додај стилу", - "description": "Label for the button to import a style and append to the existing sections" - }, - "updateAllCheckSucceededNoUpdate": { - "message": "Сви стилови су ажурирани.", - "description": "Text that displays when an update all check completed and no updates are available" - }, - "styleFromMozillaFormatPrompt": { - "message": "Налепи код у Mozilla формату", - "description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button" - }, - "helpAlt": { - "message": "Помоћ", - "description": "Alternate text for help buttons" - }, - "search": { - "message": "Претражи", - "description": "Label before the search input field in the editor shown on Ctrl-F" - }, - "confirmYes": { - "message": "Да", - "description": "'Yes' button in a confirm dialog" - }, - "findStylesForSite": { - "message": "Пронађи још стилова за овај сајт.", - "description": "Text for a link that gets a list of styles for the current site" - }, - "manageHeading": { - "message": "Инсталирани стилови", - "description": "Heading for the manage page" - }, - "styleBeautify": { - "message": " Улепшај", - "description": "Label for the CSS-beautifier button on the edit style page" - }, - "styleEnabledLabel": { - "message": "Омогућено", - "description": "Label for the enabled state of styles" - }, - "styleToMozillaFormatHelp": { - "message": "Mozilla формат кода се може користити у Stylish за Firefox и може се послати на userstyles.org.", - "description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format" - }, - "sectionAdd": { - "message": "Додај нови одељак", - "description": "Label for the button to add a section" - }, - "styleSaveLabel": { - "message": "Сачувај", - "description": "Label for save button for style editing" - }, - "confirmStop": { - "message": "Заустави", - "description": "'Stop' button in a confirm dialog" - }, - "writeStyleForURL": { - "message": "ову УРЛ адресу", - "description": "Text for link in toolbar pop-up to write a new style for the current URL" - }, - "appliesAdd": { - "message": "Додај", - "description": "Label for the button to add an 'applies' entry" - }, - "appliesRegexpOption": { - "message": "УРЛ адресе које одговарају регуларном изразу", - "description": "Option to make the style apply to the entered string as a regular expression" - }, - "styleInstall": { - "message": "Инсталирати '$stylename$' у Stylus?", - "description": "Confirmation when installing a style", - "placeholders": { - "stylename": { - "content": "$1" - } - } - }, - "manageText": { - "message": "Преузмите стилове са userstyles.org | Помоћ", - "description": "Help text on the manage page" - }, - "searchStyles": { - "message": "Претражи садржај", - "description": "Label for the search filter textbox on the Manage styles page" - }, - "disableStyleLabel": { - "message": "Онемогући", - "description": "Label for the button to disable a style" - }, - "prefShowBadge": { - "message": "Прикажи број активних стилова за тренутни сајт на дугмету на алатној траци", - "description": "Label for the checkbox controlling toolbar badge text." - }, - "menuShowBadge": { - "message": "Прикажи број активних стилова", - "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." - }, - "cm_lineWrapping": { - "message": "Преламање текста", - "description": "Label for the checkbox controlling word wrap option for the style editor." - }, - "styleCancelEditLabel": { - "message": "Назад на управљање", - "description": "Label for cancel button for style editing" - }, - "styleChangesNotSaved": { - "message": "Направили сте измене овог стила које нисте сачували.", - "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" - }, - "importLabel": { - "message": "Увези", - "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" - }, - "updateCheckFailServerUnreachable": { - "message": "Ажурирање није успело - сервер није доступан.", - "description": "Text that displays when an update check failed because the update server is unreachable" - }, - "manageFilters": { - "message": "Филтери", - "description": "Label for filters container" - }, - "applyAllUpdates": { - "message": "Примени сва ажурирања", - "description": "Label for the button to apply all detected updates" - }, - "deleteStyleConfirm": { - "message": "Да ли сте сигурни да желите да избришете овај стил?", - "description": "Confirmation before deleting a style" - }, - "confirmDelete": { - "message": "Delete" - }, - "confirmCancel": { - "message": "Cancel" - }, - "styleBadRegexp": { - "message": "Регуларни израз је неисправан.", - "description": "Validation message for a bad regexp in a style" - }, - "optionsHeading": { - "message": "Опције", - "description": "Heading for options section on manage page." - }, - "appliesDisplay": { - "message": "Примењује се на: $applies$", - "description": "Text on the manage screen to describe what the style applies to", - "placeholders": { - "applies": { - "content": "$1" - } - } - }, - "styleUpdate": { - "message": "Да ли сте сигурни да желите да ажурирате '$stylename$'?", - "description": "Confirmation when updating a style", - "placeholders": { - "stylename": { - "content": "$1" - } - } - }, - "styleSectionsTitle": { - "message": "Одељци", - "description": "Title for the style sections section" - }, - "editStyleTitle": { - "message": "Уреди стил $stylename$", - "description": "Title of the page for editing styles", - "placeholders": { - "stylename": { - "content": "$1" - } - } - }, - "updateCheckSucceededNoUpdate": { - "message": "Стил је ажуриран.", - "description": "Text that displays when an update check completed and no update is available" - }, - "appliesUrlPrefixOption": { - "message": "УРЛ адресе које почињу са", - "description": "Option to make the style apply to the entered string as a URL prefix" - }, - "searchRegexp": { - "message": "Користи /re/ синтаксу за претрагу регуларним изразом", - "description": "Label after the search input field in the editor shown on Ctrl-F" - }, - "importReplaceTooltip": { - "message": "Одбаци садржај тренутног стила и упиши преко њега увезени стил", - "description": "Label for the button to import and overwrite current style" - }, - "popupStylesFirst": { - "message": "Излистај стилове пре команди у менију дугмета на алатној траци", - "description": "Label for the checkbox controlling section order in the toolbar button menu." - }, - "sectionHelp": { - "message": "Одељци вам омогућавају да дефинишете различите делове кода који се примењују на раличите скупове УРЛ-ова у истом стилу. На пример, један исти стил може променити почетну страницу једног сајта на један начин а остатак сајта на други начин.", - "description": "Help text for sections" - }, - "noStylesForSite": { - "message": "Нема инсталираних стилова за овај сајт.", - "description": "Text displayed when no styles are installed for the current site" - }, - "appliesDisplayTruncatedSuffix": { - "message": "и још", - "description": "Text added to appliesDisplay when there are more sites for the style than are displayed" - }, - "appliesRemove": { - "message": "Уклони", - "description": "Label for the button to remove an 'applies' entry" - }, - "styleToMozillaFormatTitle": { - "message": "Стил у Mozilla формату", - "description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page" - }, - "manageTitle": { - "message": "Stylus", - "description": "Title for the manage page" - }, - "writeStyleFor": { - "message": "Упиши стил за:", - "description": "Label for toolbar pop-up that precedes the links to write a new style" - }, - "replace": { - "message": "Замени", - "description": "Label before the replace input field in the editor shown on Ctrl-H" - }, - "appliesLabel": { - "message": "Примењује се на", - "description": "Label for 'applies to' fields on the edit/add screen" - }, - "openManage": { - "message": "Управљај инсталираним стиловима", - "description": "Link to open the manage page." - }, - "updateCheckFailBadResponseCode": { - "message": "Ажурирање није успело - сервер је одговорио кодом $code$.", - "description": "Text that displays when an update check failed because the response code indicates an error", - "placeholders": { - "code": { - "content": "$1" - } - } - }, - "appliesSpecify": { - "message": "Детаљније", - "description": "Label for the button to make a style apply only to specific sites" - }, - "installUpdate": { - "message": "Инсталирај ажурирање", - "description": "Label for the button to install an update for a single style" - }, - "styleMozillaFormatHeading": { - "message": "Mozilla формат", - "description": "Heading for the section with buttons to import/export Mozilla format of the style" - }, - "stylishUnavailableForURL": { - "message": "(Stylus не ради на страницама као што је ова.)", - "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" - }, - "sectionRemove": { - "message": "Уклони одељак", - "description": "Label for the button to remove a section" - }, - "disableAllStyles": { - "message": "Искључи све стилове", - "description": "Label for the checkbox that turns all enabled styles off." - }, - "undoGlobal": { - "message": "Опозови (свеобухватно)", - "description": "CSS-beautify global Undo button label" - }, - "updateCompleted": { - "message": "Ажурирање је комплетирано.", - "description": "Text that displays when an update completed" - }, - "checkingForUpdate": { - "message": "Проверавање...", - "description": "Text to display when checking a style for an update" - }, - "sectionCode": { - "message": "Код", - "description": "Label for the code for a section" - }, - "cm_smartIndent": { - "message": "Користи паметно увлачење редова", - "description": "Label for the checkbox controlling smart indentation option for the style editor." - }, - "appliesHelp": { - "message": "Употреба 'Примењује се на' одређује опсег УРЛ адреса на које се код у овом одељку примењује.", - "description": "Help text for 'applies to' section" - }, - "editStyleHeading": { - "message": "Уреди стил", - "description": "Title of the page for editing styles" - }, - "appliesUrlOption": { - "message": "УРЛ", - "description": "Option to make the style apply to the entered string as a URL" - }, - "addStyleTitle": { - "message": "Додај стил", - "description": "Title of the page for adding styles" - }, - "importReplaceLabel": { - "message": "Упиши преко стила", - "description": "Label for the button to import and overwrite current style" - }, - "dbError": { - "message": "Дошло је до грешке користећи Stylus базу података. Да ли желите да посетите веб страницу са могућим решењима?", - "description": "Prompt when a DB error is encountered" - }, - "importAppendTooltip": { - "message": "Додај увезени стил тренутном стилу", - "description": "Tooltip for the button to import a style and append to the existing sections" - }, - "helpKeyMapHotkey": { - "message": "Притисни пречицу", - "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" - }, - "replaceAll": { - "message": "Замени све", - "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" - }, - "editGotoLine": { - "message": "Иди на ред (или line:col)", - "description": "Go to line or line:column on Ctrl-G in style code editor" - }, - "checkAllUpdates": { - "message": "Проверите ажурирања за све стилове", - "description": "Label for the button to check all styles for updates" - }, - "issuesHelp": { - "message": "Проблем пронађен од стране CSSLint са овим омогућеним правилима:", - "description": "Help popup message for the CSSLint issues block on the style edit page" - }, - "confirmNo": { - "message": "Не", - "description": "'No' button in a confirm dialog" - }, - "undo": { - "message": "Опозови", - "description": "Button label" - }, - "cm_keyMap": { - "message": "Мапа тастера", - "description": "Label for the drop-down list controlling the keymap for the style editor." - }, - "cm_indentWithTabs": { - "message": "Користи картице са паметним увлачењем редова", - "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." - }, - "replaceWith": { - "message": "Замени са", - "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." - }, - "deleteStyleLabel": { - "message": "Избриши", - "description": "Label for the button to delete a style" - }, - "addStyleLabel": { - "message": "Упиши нови стил", - "description": "Label for the button to go to the add style page" - }, - "manageOnlyEnabled": { - "message": "Само омогућени стилови", - "description": "Checkbox to show only enabled styles" - }, - "editStyleLabel": { - "message": "Уреди", - "description": "Label for the button to go to the edit style page" - }, - "cm_theme": { - "message": "Тема", - "description": "Label for the style editor's CSS theme." - }, - "helpKeyMapCommand": { - "message": "Укуцај име команде", - "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" - }, - "description": { - "message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.", - "description": "Extension description" - } -} +{ + "appliesToEverything": { + "message": "Све", + "description": "Text displayed for styles that apply to all sites" + }, + "defaultTheme": { + "message": "подразумевано", + "description": "Default CodeMirror CSS theme option on the edit style page" + }, + "manageOnlyEdited": { + "message": "Само уређени стилови", + "description": "Checkbox to show only locally edited styles" + }, + "exportLabel": { + "message": "Извези", + "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" + }, + "issues": { + "message": "Проблеми", + "description": "Label for the CSSLint issues block on the style edit page" + }, + "cm_tabSize": { + "message": "Величина картице", + "description": "Label for the text box controlling tab size option for the style editor." + }, + "enableStyleLabel": { + "message": "Омогући", + "description": "Label for the button to enable a style" + }, + "styleMissingName": { + "message": "Унесите назив", + "description": "Error displayed when user saves without providing a name" + }, + "appliesDomainOption": { + "message": "УРЛ адресе на домену", + "description": "Option to make the style apply to the entered string as a domain" + }, + "checkForUpdate": { + "message": "Проверите ажурирање", + "description": "Label for the button to check a single style for an update" + }, + "importAppendLabel": { + "message": "Додај стилу", + "description": "Label for the button to import a style and append to the existing sections" + }, + "updateAllCheckSucceededNoUpdate": { + "message": "Сви стилови су ажурирани.", + "description": "Text that displays when an update all check completed and no updates are available" + }, + "styleFromMozillaFormatPrompt": { + "message": "Налепи код у Mozilla формату", + "description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button" + }, + "helpAlt": { + "message": "Помоћ", + "description": "Alternate text for help buttons" + }, + "search": { + "message": "Претражи", + "description": "Label before the search input field in the editor shown on Ctrl-F" + }, + "confirmYes": { + "message": "Да", + "description": "'Yes' button in a confirm dialog" + }, + "findStylesForSite": { + "message": "Пронађи још стилова за овај сајт.", + "description": "Text for a link that gets a list of styles for the current site" + }, + "manageHeading": { + "message": "Инсталирани стилови", + "description": "Heading for the manage page" + }, + "styleBeautify": { + "message": " Улепшај", + "description": "Label for the CSS-beautifier button on the edit style page" + }, + "styleEnabledLabel": { + "message": "Омогућено", + "description": "Label for the enabled state of styles" + }, + "styleToMozillaFormatHelp": { + "message": "Mozilla формат кода се може користити у Stylish за Firefox и може се послати на userstyles.org.", + "description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format" + }, + "sectionAdd": { + "message": "Додај нови одељак", + "description": "Label for the button to add a section" + }, + "styleSaveLabel": { + "message": "Сачувај", + "description": "Label for save button for style editing" + }, + "confirmStop": { + "message": "Заустави", + "description": "'Stop' button in a confirm dialog" + }, + "writeStyleForURL": { + "message": "ову УРЛ адресу", + "description": "Text for link in toolbar pop-up to write a new style for the current URL" + }, + "appliesAdd": { + "message": "Додај", + "description": "Label for the button to add an 'applies' entry" + }, + "appliesRegexpOption": { + "message": "УРЛ адресе које одговарају регуларном изразу", + "description": "Option to make the style apply to the entered string as a regular expression" + }, + "styleInstall": { + "message": "Инсталирати '$stylename$' у Stylus?", + "description": "Confirmation when installing a style", + "placeholders": { + "stylename": { + "content": "$1" + } + } + }, + "manageText": { + "message": "Преузмите стилове са userstyles.org | Помоћ", + "description": "Help text on the manage page" + }, + "searchStyles": { + "message": "Претражи садржај", + "description": "Label for the search filter textbox on the Manage styles page" + }, + "disableStyleLabel": { + "message": "Онемогући", + "description": "Label for the button to disable a style" + }, + "prefShowBadge": { + "message": "Прикажи број активних стилова за тренутни сајт на дугмету на алатној траци", + "description": "Label for the checkbox controlling toolbar badge text." + }, + "menuShowBadge": { + "message": "Прикажи број активних стилова", + "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." + }, + "cm_lineWrapping": { + "message": "Преламање текста", + "description": "Label for the checkbox controlling word wrap option for the style editor." + }, + "styleCancelEditLabel": { + "message": "Назад на управљање", + "description": "Label for cancel button for style editing" + }, + "styleChangesNotSaved": { + "message": "Направили сте измене овог стила које нисте сачували.", + "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" + }, + "importLabel": { + "message": "Увези", + "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" + }, + "updateCheckFailServerUnreachable": { + "message": "Ажурирање није успело - сервер није доступан.", + "description": "Text that displays when an update check failed because the update server is unreachable" + }, + "manageFilters": { + "message": "Филтери", + "description": "Label for filters container" + }, + "applyAllUpdates": { + "message": "Примени сва ажурирања", + "description": "Label for the button to apply all detected updates" + }, + "deleteStyleConfirm": { + "message": "Да ли сте сигурни да желите да избришете овај стил?", + "description": "Confirmation before deleting a style" + }, + "confirmDelete": { + "message": "Delete" + }, + "confirmCancel": { + "message": "Cancel" + }, + "styleBadRegexp": { + "message": "Регуларни израз је неисправан.", + "description": "Validation message for a bad regexp in a style" + }, + "optionsHeading": { + "message": "Опције", + "description": "Heading for options section on manage page." + }, + "appliesDisplay": { + "message": "Примењује се на: $applies$", + "description": "Text on the manage screen to describe what the style applies to", + "placeholders": { + "applies": { + "content": "$1" + } + } + }, + "styleUpdate": { + "message": "Да ли сте сигурни да желите да ажурирате '$stylename$'?", + "description": "Confirmation when updating a style", + "placeholders": { + "stylename": { + "content": "$1" + } + } + }, + "styleSectionsTitle": { + "message": "Одељци", + "description": "Title for the style sections section" + }, + "editStyleTitle": { + "message": "Уреди стил $stylename$", + "description": "Title of the page for editing styles", + "placeholders": { + "stylename": { + "content": "$1" + } + } + }, + "updateCheckSucceededNoUpdate": { + "message": "Стил је ажуриран.", + "description": "Text that displays when an update check completed and no update is available" + }, + "appliesUrlPrefixOption": { + "message": "УРЛ адресе које почињу са", + "description": "Option to make the style apply to the entered string as a URL prefix" + }, + "searchRegexp": { + "message": "Користи /re/ синтаксу за претрагу регуларним изразом", + "description": "Label after the search input field in the editor shown on Ctrl-F" + }, + "importReplaceTooltip": { + "message": "Одбаци садржај тренутног стила и упиши преко њега увезени стил", + "description": "Label for the button to import and overwrite current style" + }, + "popupStylesFirst": { + "message": "Излистај стилове пре команди у менију дугмета на алатној траци", + "description": "Label for the checkbox controlling section order in the toolbar button menu." + }, + "sectionHelp": { + "message": "Одељци вам омогућавају да дефинишете различите делове кода који се примењују на раличите скупове УРЛ-ова у истом стилу. На пример, један исти стил може променити почетну страницу једног сајта на један начин а остатак сајта на други начин.", + "description": "Help text for sections" + }, + "noStylesForSite": { + "message": "Нема инсталираних стилова за овај сајт.", + "description": "Text displayed when no styles are installed for the current site" + }, + "appliesDisplayTruncatedSuffix": { + "message": "и још", + "description": "Text added to appliesDisplay when there are more sites for the style than are displayed" + }, + "appliesRemove": { + "message": "Уклони", + "description": "Label for the button to remove an 'applies' entry" + }, + "styleToMozillaFormatTitle": { + "message": "Стил у Mozilla формату", + "description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page" + }, + "manageTitle": { + "message": "Stylus", + "description": "Title for the manage page" + }, + "writeStyleFor": { + "message": "Упиши стил за:", + "description": "Label for toolbar pop-up that precedes the links to write a new style" + }, + "replace": { + "message": "Замени", + "description": "Label before the replace input field in the editor shown on Ctrl-H" + }, + "appliesLabel": { + "message": "Примењује се на", + "description": "Label for 'applies to' fields on the edit/add screen" + }, + "openManage": { + "message": "Управљај инсталираним стиловима", + "description": "Link to open the manage page." + }, + "updateCheckFailBadResponseCode": { + "message": "Ажурирање није успело - сервер је одговорио кодом $code$.", + "description": "Text that displays when an update check failed because the response code indicates an error", + "placeholders": { + "code": { + "content": "$1" + } + } + }, + "appliesSpecify": { + "message": "Детаљније", + "description": "Label for the button to make a style apply only to specific sites" + }, + "installUpdate": { + "message": "Инсталирај ажурирање", + "description": "Label for the button to install an update for a single style" + }, + "styleMozillaFormatHeading": { + "message": "Mozilla формат", + "description": "Heading for the section with buttons to import/export Mozilla format of the style" + }, + "stylusUnavailableForURL": { + "message": "Stylus не ради на страницама као што је ова.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" + }, + "sectionRemove": { + "message": "Уклони одељак", + "description": "Label for the button to remove a section" + }, + "disableAllStyles": { + "message": "Искључи све стилове", + "description": "Label for the checkbox that turns all enabled styles off." + }, + "undoGlobal": { + "message": "Опозови (свеобухватно)", + "description": "CSS-beautify global Undo button label" + }, + "updateCompleted": { + "message": "Ажурирање је комплетирано.", + "description": "Text that displays when an update completed" + }, + "checkingForUpdate": { + "message": "Проверавање...", + "description": "Text to display when checking a style for an update" + }, + "sectionCode": { + "message": "Код", + "description": "Label for the code for a section" + }, + "cm_smartIndent": { + "message": "Користи паметно увлачење редова", + "description": "Label for the checkbox controlling smart indentation option for the style editor." + }, + "appliesHelp": { + "message": "Употреба 'Примењује се на' одређује опсег УРЛ адреса на које се код у овом одељку примењује.", + "description": "Help text for 'applies to' section" + }, + "editStyleHeading": { + "message": "Уреди стил", + "description": "Title of the page for editing styles" + }, + "appliesUrlOption": { + "message": "УРЛ", + "description": "Option to make the style apply to the entered string as a URL" + }, + "addStyleTitle": { + "message": "Додај стил", + "description": "Title of the page for adding styles" + }, + "importReplaceLabel": { + "message": "Упиши преко стила", + "description": "Label for the button to import and overwrite current style" + }, + "dbError": { + "message": "Дошло је до грешке користећи Stylus базу података. Да ли желите да посетите веб страницу са могућим решењима?", + "description": "Prompt when a DB error is encountered" + }, + "importAppendTooltip": { + "message": "Додај увезени стил тренутном стилу", + "description": "Tooltip for the button to import a style and append to the existing sections" + }, + "helpKeyMapHotkey": { + "message": "Притисни пречицу", + "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" + }, + "replaceAll": { + "message": "Замени све", + "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" + }, + "editGotoLine": { + "message": "Иди на ред (или line:col)", + "description": "Go to line or line:column on Ctrl-G in style code editor" + }, + "checkAllUpdates": { + "message": "Проверите ажурирања за све стилове", + "description": "Label for the button to check all styles for updates" + }, + "issuesHelp": { + "message": "Проблем пронађен од стране CSSLint са овим омогућеним правилима:", + "description": "Help popup message for the CSSLint issues block on the style edit page" + }, + "confirmNo": { + "message": "Не", + "description": "'No' button in a confirm dialog" + }, + "undo": { + "message": "Опозови", + "description": "Button label" + }, + "cm_keyMap": { + "message": "Мапа тастера", + "description": "Label for the drop-down list controlling the keymap for the style editor." + }, + "cm_indentWithTabs": { + "message": "Користи картице са паметним увлачењем редова", + "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." + }, + "replaceWith": { + "message": "Замени са", + "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." + }, + "deleteStyleLabel": { + "message": "Избриши", + "description": "Label for the button to delete a style" + }, + "addStyleLabel": { + "message": "Упиши нови стил", + "description": "Label for the button to go to the add style page" + }, + "manageOnlyEnabled": { + "message": "Само омогућени стилови", + "description": "Checkbox to show only enabled styles" + }, + "editStyleLabel": { + "message": "Уреди", + "description": "Label for the button to go to the edit style page" + }, + "cm_theme": { + "message": "Тема", + "description": "Label for the style editor's CSS theme." + }, + "helpKeyMapCommand": { + "message": "Укуцај име команде", + "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" + }, + "description": { + "message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.", + "description": "Extension description" + } +} diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 292b3372..14ad05cb 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla Format", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus fungerar inte på sidor som denna.)", + "stylusUnavailableForURL": { + "message": "Stylus fungerar inte på sidor som denna.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/sv_SE/messages.json b/_locales/sv_SE/messages.json index 1fef387a..913f6b8c 100644 --- a/_locales/sv_SE/messages.json +++ b/_locales/sv_SE/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla Format", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus fungerar inte på sidor som dessa.)", + "stylusUnavailableForURL": { + "message": "Stylus fungerar inte på sidor som dessa.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/te/messages.json b/_locales/te/messages.json index a6f9ef12..82268516 100644 --- a/_locales/te/messages.json +++ b/_locales/te/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "Remove section", "description": "Label for the button to remove a section" diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json index 3006bcb0..7a15d65c 100644 --- a/_locales/tr/messages.json +++ b/_locales/tr/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "Bölümü kaldır", "description": "Label for the button to remove a section" diff --git a/_locales/zh/messages.json b/_locales/zh/messages.json index 3727b871..fbc30b4c 100644 --- a/_locales/zh/messages.json +++ b/_locales/zh/messages.json @@ -294,10 +294,6 @@ "message": "Mozilla Format", "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": { "message": "移除节", "description": "Label for the button to remove a section" diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index b2e72bd9..99b9dc9c 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -352,8 +352,8 @@ "message": "Mozilla 格式", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "(Stylus在这样的页面上不工作)", + "stylusUnavailableForURL": { + "message": "Stylus在这样的页面上不工作", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index b5deba4a..07e51fad 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -294,8 +294,8 @@ "message": "Mozilla格式", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, - "stylishUnavailableForURL": { - "message": "( Stylus 不能在諸如此類的網頁上生效。)", + "stylusUnavailableForURL": { + "message": "Stylus 不能在諸如此類的網頁上生效。", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { diff --git a/messaging.js b/messaging.js index d53b89f5..44705306 100644 --- a/messaging.js +++ b/messaging.js @@ -14,8 +14,14 @@ const URLS = { configureCommands: OPERA ? 'opera://settings/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(); diff --git a/popup.css b/popup.css index 897bd92f..529a544f 100644 --- a/popup.css +++ b/popup.css @@ -66,7 +66,6 @@ a:hover { display: table-cell; } -#unavailable, #installed { border-bottom: 1px solid black; padding-bottom: 2px; @@ -219,9 +218,7 @@ body > .actions { } .actions > div:not(:last-child):not(#disable-all-wrapper), -.actions > .main-controls > div:not(:last-child), -#unavailable:not(:last-child), -#unavailable + .actions { +.actions > .main-controls > div:not(:last-child) { margin-bottom: 0.75em; } @@ -230,24 +227,10 @@ body > .actions { vertical-align: middle; } -#unavailable { - border: none; +body.blocked #installed > *, +body.blocked .actions > .main-controls, +body.blocked .actions > .left-gutter { 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 */ @@ -437,22 +420,38 @@ body.blocked #unavailable { opacity: .25; } +.blocked:before, .unreachable:before { - content: "__MSG_unreachableContentScript__"; padding: 5px 0.75em; display: block; font-weight: bold; } +.blocked #installed:before, .unreachable #installed:before { - content: "__MSG_unreachableFileHint__"; padding: 1px 0.75em 9px; display: block; font-size: 90%; - border-bottom: 1px solid black; 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 { from { background-color: transparent; diff --git a/popup.html b/popup.html index 1c026e9e..4b56fcc0 100644 --- a/popup.html +++ b/popup.html @@ -76,12 +76,6 @@ -
-
- -
-
-
diff --git a/popup.js b/popup.js index 7c091869..241860a9 100644 --- a/popup.js +++ b/popup.js @@ -357,7 +357,7 @@ function handleUpdate(style) { } // Add an entry when a new style for the current url is installed if (tabURL && BG.getApplicableSections({style, matchUrl: tabURL, stopOnFirst: true}).length) { - $('#unavailable').style.display = 'none'; + document.body.classList.remove('blocked'); createStyleElement({style}); } } diff --git a/storage.js b/storage.js index b4bc03bb..4bd345e7 100644 --- a/storage.js +++ b/storage.js @@ -104,6 +104,12 @@ function filterStyles({ // eslint-disable-next-line no-use-before-define 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) const cacheKey = ' ' + enabled + url + '\t' + id + matchUrl + '\t' + asHash + strictRegexp; const cached = cachedStyles.filters.get(cacheKey);