Skip to content

Commit

Permalink
fixed updater, added more langs
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackusPL authored Jun 3, 2024
1 parent 01b47e5 commit 75dca33
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 9 deletions.
4 changes: 2 additions & 2 deletions credits.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<!--<link rel="stylesheet" type="text/css" href="https://blackuspl.github.io/DarknessAir/index.css">-->
<!--<link rel="stylesheet" type="text/css" href="https://blackuspl.github.io/index.css">-->
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" script-src='unsafe-inline' ;>
</head>

<body>
<main>
<a href="https://blackuspl.github.io/DarknessAir">My Website</a>
<a href="https://blackuspl.github.io/">My Website</a>
</main>
<footer>
<div class="version"></div>
Expand Down
21 changes: 21 additions & 0 deletions js/Polish Coub.meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ==UserScript==
// @name Polish Coub
// @name:pl Polski Coub
// @namespace http://blackuspl.github.io/DarknessAir
// @source https://github.com/BlackusPL/Polish-Coub
// @updateURL https://github.com/BlackusPL/Polish-Coub/raw/main/js/Polish%20Coub.meta.js
// @downloadURL https://github.com/BlackusPL/Polish-Coub/raw/main/js/Polish%20Coub.user.js
// @version 0.57
// @description Translate Coub to polish language
// @description:pl Tłumaczy Couba na polski język
// @author BlackusPL
// @match *://coub.com/*
// @exclude *://coub.com/chat/*
// @exclude *://coub.com/rules*
// @exclude *://coub.com/dmca*
// @exclude *://coub.com/privacy*
// @exclude *://coub.com/tos*
// @exclude *://coub.com/brand-assets*
// @icon https://raw.githubusercontent.com/BlackusPL/Polish-Coub/main/favicon.svg
// @grant GM_addStyle
// ==/UserScript==
24 changes: 18 additions & 6 deletions js/Polish Coub.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// @name:pl Polski Coub
// @namespace http://blackuspl.github.io/DarknessAir
// @source https://github.com/BlackusPL/Polish-Coub
// @updateURL https://github.com/BlackusPL/Polish-Coub/raw/main/js/Polish%20Coub.user.js
// @updateURL https://github.com/BlackusPL/Polish-Coub/raw/main/js/Polish%20Coub.meta.js
// @downloadURL https://github.com/BlackusPL/Polish-Coub/raw/main/js/Polish%20Coub.user.js
// @version 0.56
// @version 0.57
// @description Translate Coub to polish language
// @description:pl Tłumaczy Couba na polski język
// @author BlackusPL
Expand Down Expand Up @@ -34,12 +34,12 @@ replacements = {
' is looking for feedback.' : ' szuka informacji zwrotnej.',
'Only other users can leave reactions to your coub' : 'Tylko inni użytkownicy mogą zostawiać reakcje na twoje couby',
'Be the first to share your thoughts!' : 'Bądź pierwszym, który podzieli się swoimi myślami!',
'Add new channel' : 'Dodaj nowy kanał',
'View all' : 'Obejrz wszystkie',
'Home' : 'Strona główna',
'Hot' : 'Na czasie',
'Random Reactions' : 'Losowe Reakcje',
'Random' : 'Losowe',
'You may also like' : 'Może ci się też spodobać',
'Best coubs' : 'Najlepsze couby',
'Featured channels' : 'Wyróżnione kanały',
'Top of the Month' : 'Najlepsze w miesiącu',
Expand Down Expand Up @@ -87,7 +87,6 @@ replacements = {
'Previous Week' : 'Poprzedni Tydzień',
'Next Week' : 'Następny Tydzień',
'Favourites' : 'Ulubione',
'Comments' : 'Komentarze',
'others' : 'innych',
'Find friends on Coub' : 'Znajdź znajomych na Coubie',
'Connect your social networks to find' : 'Połącz swoje konta społecznościowe aby znaleźć',
Expand Down Expand Up @@ -124,7 +123,6 @@ replacements = {
'Add' : 'Dodaj',
'Coubs' : 'Couby',
'Popular' : 'Popula​rne', // invisible character to prevent to translation conflict
'Logout' : 'Wyloguj',
'hours' : 'godziny',
'Next' : 'Dalej',
'More' : 'Więcej',
Expand Down Expand Up @@ -157,13 +155,21 @@ for (var i = 0; i < textnodes.snapshotLength; i++) {
}
translate();
replacements = {
'Only other users can leave reactions to your coub' : 'Tylko inni użytkownicy mogą zostawić reakcje do twojego couba',
'Copy link' : 'Kopiuj link',
'Add new channel' : 'Dodaj nowy kanał',
'Create Coub' : 'Stwórz Couba',
'Open on Coub' : 'Otwórz na Coubie',
'Create Story' : 'Stwórz Story',
'Create recoub' : 'Stwórz recouba',
'Followers' : 'Obserwują',
'Followed' : 'Zaobserwowane',
'Unfollow' : 'Przestań obserwować',
'Follow' : 'Zaobserwuj',
'Comments' : 'Komentarze',
'Community' : 'Społeczność',
'Hashtags' : 'Hasztagi',
'Sources' : 'Źródła',
//'Subscribe': '',
//'Unsubscribe' : '',
' day' : ' dzień',
Expand All @@ -174,8 +180,13 @@ translate();
'Bookmark' : 'Zapisz',
'Delete coub' : 'Usuń couba',
'Edit info' : 'Edytuj informacje',
'Undo like' : 'Usuń polubienie',
'Undo repost' : 'Usuń reposta',
'Repost' : 'Repostuj',
'Likes' : 'Lubiane',
'Dislike' : 'Nielubię',
'Like' : 'Lubię',
'Flag' : 'Zgłoś',
'Download' : 'Pobierz',
'reposted by' : 'podane dalej przez',
'More...' : 'Więcej...',
Expand All @@ -196,6 +207,7 @@ translate();
'Mosaic view' : 'Widok mozaiki',
'List view' : 'Widok listy',
'Settings' : 'Ustawienia',
'Logout' : 'Wyloguj',
'Share' : 'Udostępnij',
'views' : 'wyświetleń',
' by ' : ' przez ',
Expand Down Expand Up @@ -223,7 +235,7 @@ observer = new MutationObserver(() => {
observer.observe(document.body, {
threshold: 0.5,
childList: true,
subtree: true
subtree: true,
});
// document.onscroll = translate;
/* setInterval(function() {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"name": "__MSG_appName__",
"permissions": [ "webRequest" ],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.56"
"version": "0.57"
}

0 comments on commit 75dca33

Please sign in to comment.