Compare commits

...

11 Commits

Author SHA1 Message Date
Ajay Ramachandran
1b4bee1b90 Increase version number 2020-12-15 14:25:44 -05:00
Ajay Ramachandran
608aa73ae4 New Crowdin updates (#577) 2020-12-15 14:25:23 -05:00
Ajay Ramachandran
3b07bc638a Merge pull request #576 from ajayyy/padding
Fix popup padding on YouTube page
2020-12-15 14:25:04 -05:00
Ajay Ramachandran
b6b109b226 Convert \n in localized strings to <br/> for html 2020-12-15 14:03:01 -05:00
Ajay Ramachandran
e31aaba24c Fix website text not using strings in popup 2020-12-15 14:02:08 -05:00
Ajay Ramachandran
17eead2bb6 Use short category name in popup 2020-12-15 13:50:06 -05:00
Ajay Ramachandran
865422eaaa Fix help link on popup 2020-12-14 23:56:56 -05:00
Ajay Ramachandran
9b572609f8 Fix popup padding on YouTube page 2020-12-14 23:51:23 -05:00
Ajay Ramachandran
ba01293067 Merge pull request #573 from ajayyy/padding
Lower popup padding
2020-12-14 23:41:52 -05:00
Ajay Ramachandran
59fbc84017 Go back to old names for channel whitelisting 2020-12-14 23:39:06 -05:00
Ajay Ramachandran
4b0c6b80f6 Lower popup padding 2020-12-14 23:26:08 -05:00
16 changed files with 18 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "SponsorBlock",
"version": "2.0.10",
"version": "2.0.10.1",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [{

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "Opravdu to chcete odeslat?"
},
"whitelistChannel": {
"message": "Přidat do výjimek"
},
"removeFromWhitelist": {
"message": "Odebrat z výjimek"
},
"voteOnTime": {
"message": "Hlasovat pro segment"
},

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "Bist du sicher, dass du dies übermitteln willst?"
},
"whitelistChannel": {
"message": "Zur Whitelist hinzufügen"
},
"removeFromWhitelist": {
"message": "Von der Whitelist entfernen"
},
"voteOnTime": {
"message": "Über ein Segment abstimmen"
},

View File

@@ -122,10 +122,10 @@
"message": "Are you sure you want to submit this?"
},
"whitelistChannel": {
"message": "Add to whitelist"
"message": "Whitelist channel"
},
"removeFromWhitelist": {
"message": "Remove from whitelist"
"message": "Remove channel from whitelist"
},
"voteOnTime": {
"message": "Vote On A Segment"

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "¿Estás seguro de que quieres enviar esto?"
},
"whitelistChannel": {
"message": "Añadir a la lista blanca"
},
"removeFromWhitelist": {
"message": "Eliminar de la lista blanca"
},
"voteOnTime": {
"message": "Vote En Un Segmento"
},

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "Êtes-vous sûr de vouloir soumettre ces segments?"
},
"whitelistChannel": {
"message": "Ajouter à la liste blanche"
},
"removeFromWhitelist": {
"message": "Retirer de la liste blanche"
},
"voteOnTime": {
"message": "Voter pour un segment"
},

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "Sei sicuro di volerlo inviare?"
},
"whitelistChannel": {
"message": "Aggiungi alla whitelist"
},
"removeFromWhitelist": {
"message": "Rimuovi dalla whitelist"
},
"voteOnTime": {
"message": "Vota un Segmento"
},

View File

@@ -122,10 +122,10 @@
"message": "Weet u zeker dat u dit wilt indienen?"
},
"whitelistChannel": {
"message": "Toevoegen aan whitelist"
"message": "Kanaal whitelisten"
},
"removeFromWhitelist": {
"message": "Verwijderen van whitelist"
"message": "Kanaal verwijderen van whitelist"
},
"voteOnTime": {
"message": "Stemmen op een segment"

View File

@@ -122,10 +122,10 @@
"message": "Czy na pewno chcesz to zamieścić?"
},
"whitelistChannel": {
"message": "Dodaj do białej listy"
"message": "Dodaj kanał do wyjątków"
},
"removeFromWhitelist": {
"message": "Usuń z białej listy"
"message": "Usuń kanał z listy wyjątków"
},
"voteOnTime": {
"message": "Oceń segment"

View File

@@ -121,15 +121,12 @@
"submitCheck": {
"message": "Вы уверены, что хотите отправить эту информацию?"
},
"whitelistChannel": {
"message": "Добавить в белый список"
},
"removeFromWhitelist": {
"message": "Удалить из белого списка"
},
"voteOnTime": {
"message": "Проголосовать за сегмент"
},
"Submissions": {
"message": "Отправлено сегментов"
},
"savedPeopleFrom": {
"message": "Вы помогли людям пропустить "
},

View File

@@ -121,12 +121,6 @@
"submitCheck": {
"message": "Är du säker på att du vill rapportera detta?"
},
"whitelistChannel": {
"message": "Lägg till i vitlistan"
},
"removeFromWhitelist": {
"message": "Tag bort från vitlistan"
},
"voteOnTime": {
"message": "Rösta på ett segment"
},

View File

@@ -18,7 +18,7 @@
flex-flow: column nowrap;
align-items: center;
width: 330px;
margin: 22px;
padding: 22px;
text-align: center;
}
@@ -27,7 +27,7 @@
color: var(--sb-main-fg-color);
background: none;
border: none;
padding: 10px 8px;
padding: 7px;
outline: none;
cursor: pointer;

View File

@@ -4,7 +4,7 @@
<link id="sponsorBlockStyleSheet" rel="stylesheet" type="text/css" href="popup.css">
</head>
<body style="margin: 0; min-width: 320px; background: var(--sb-main-bg-color);">
<body style="margin: auto; width: 374px; background: var(--sb-main-bg-color);">
<div id="sponsorblockPopup" class="sponsorBlockPageBody preload">
<div class="logoText bottomSpace">
<img src="icons/IconSponsorBlocker256px.png" height="40px" id="sponsorBlockPopupLogo">
@@ -129,13 +129,13 @@
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span></b>).
</div>
<footer id="sbFooter">
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">Website</a> |
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">__MSG_website__</a> |
<a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> |
<a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a>
<br/>
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
<a href="https://matrix.to/#/+sponsorblock:ajay.app" target="_blank" rel="noopener">Matrix</a> |
<a id="helpButton" href="#">__MSG_help__</a>
<a id="helpButton" style="cursor: pointer;">__MSG_help__</a>
</footer>
<button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button>

View File

@@ -33,7 +33,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
chrome.runtime.openOptionsPage();
return;
case "openHelp":
window.open(chrome.runtime.getURL('help/index_en.html'));
chrome.tabs.create({url: chrome.runtime.getURL('help/index_en.html')});
return;
case "sendRequest":
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {

View File

@@ -375,7 +375,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
const sponsorTimeButton = document.createElement("button");
sponsorTimeButton.className = "segmentTimeButton popupElement";
const prefix = chrome.i18n.getMessage("category_" + segmentTimes[i].category) + ": ";
const prefix = utils.shortCategoryName(segmentTimes[i].category) + ": ";
let extraInfo = "";
if (segmentTimes[i].hidden === SponsorHideType.Downvoted) {

View File

@@ -206,7 +206,7 @@ class Utils {
getLocalizedMessage(text: string): string | false {
const valNewH = text.replace(/__MSG_(\w+)__/g, function(match, v1) {
return v1 ? chrome.i18n.getMessage(v1) : "";
return v1 ? chrome.i18n.getMessage(v1).replace("\n", "<br/>") : "";
});
if(valNewH != text) {