Skip to content

Commit

Permalink
Add riftvpn intro, and change default proxy address
Browse files Browse the repository at this point in the history
  • Loading branch information
ssBackupaccount committed Feb 15, 2024
1 parent d09e9aa commit 91754c8
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 10 deletions.
12 changes: 12 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,17 @@
},
"support_button": {
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> Donate to us <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
},
"learn_rift_button":{
"message": "Learn More"
},
"rift_intro_message":{
"message": "Unblock Youku is now offering RIFT VPN for your phone, enjoy your favorite TV shows and music anytime, anywhere."
},
"rift_scan_message":{
"message": "Scan the QR code to download Android app: "
},
"rift_qr_title":{
"message": "Want to use it on your phone? "
}
}
12 changes: 12 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,17 @@
},
"support_button": {
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> 向我们捐款 <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
},
"learn_rift_button":{
"message": "了解更多"
},
"rift_intro_message":{
"message": "Unblock Youku 现在为您的手机提供 RIFT VPN,随时随地畅享您喜爱的电视节目和音乐。"
},
"rift_scan_message":{
"message": "扫描二维码下载安卓应用:"
},
"rift_qr_title":{
"message": "想在手机上使用 Unblock Youku?"
}
}
12 changes: 12 additions & 0 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,17 @@
},
"support_button": {
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> 向我們捐款 <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
},
"learn_rift_button": {
"message": "了解更多"
},
"rift_intro_message": {
"message": "Unblock Youku 现在为您的手机提供 RIFT VPN,随时随地畅享您喜爱的电视节目和音乐。"
},
"rift_scan_message": {
"message": "扫描二维码下载安卓应用:"
},
"rift_qr_title": {
"message": "想在手机上使用 Unblock Youku?"
}
}
8 changes: 4 additions & 4 deletions configs/servers.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// _PROXY_PROTOCOL can be HTTP, HTTPS, or SOCKS5
export const DEFAULT_PROXY_PROTOCOL = 'HTTPS';
export const DEFAULT_PROXY_ADDRESS = 'secure.uku.im:8443';
export const BACKUP_PROXY_PROTOCOL = 'HTTPS';
export const BACKUP_PROXY_ADDRESS = 'secure.uku.im:993';
export const DEFAULT_PROXY_PROTOCOL = 'HTTP';
export const DEFAULT_PROXY_ADDRESS = 'secure.unblockpro.app:8080';
export const BACKUP_PROXY_PROTOCOL = 'HTTP';
export const BACKUP_PROXY_ADDRESS = 'secure.unblockpro.app:8080';

// For debugging
// export const DEFAULT_PROXY_PROTOCOL = 'SOCKS5';
Expand Down
6 changes: 3 additions & 3 deletions configs/servers.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test('The proxy addresses must not be localhost', () => {
expect(BACKUP_PROXY_ADDRESS).not.toMatch(/127\.0\.0\.1/i);
});

test('Production must use HTTPS proxy', () => {
expect(DEFAULT_PROXY_PROTOCOL).toBe('HTTPS');
expect(BACKUP_PROXY_PROTOCOL).toBe('HTTPS');
test('Production must use HTTP proxy', () => {
expect(DEFAULT_PROXY_PROTOCOL).toBe('HTTP');
expect(BACKUP_PROXY_PROTOCOL).toBe('HTTP');
});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Unblock Youku",
"version": "4.0.0",
"version": "4.1.0",
"manifest_version": 3,
"minimum_chrome_version": "103.0",
"default_locale": "en",
Expand Down
Binary file added src/img/rift-vpn-qr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@

<body>
<div id="wrapper" class="container-fluid">
<div id="rift_qr">
<div><strong></strong><span class="label label-success">NEW</span></div>
<div class="text-center" style="margin-top:20px;margin-bottom:20px;">
<p id="rift_scan_message"></p>
<img src="img/rift-vpn-qr.png" alt="Rift VPN QR code">
</div>
</div>

<div id="intro" class="text-center"style="margin-top:20px;margin-bottom:20px;">
<p id="rift_intro_message"></p>
<a href="https://riftvpn.ai" target="_blank"><button type="button"
class="btn btn-danger" id="learn_rift_button"></button></a>
</div>
<div id="support">
<div><strong></strong> <span class="label label-success">NEW</span></div>
<div><strong></strong></div>
<div class="text-center">
<p id="support_message"></p>
<a href="https://www.uku.im/index.html" target="_blank" id="support_link"><button type="button"
Expand Down
5 changes: 4 additions & 1 deletion src/popup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import * as Icon from './modules/_icon.mjs';
// Set the translated texts for the options page
(function() {
const getMsg = chrome.i18n.getMessage;

$('div#rift_qr strong').html(getMsg('rift_qr_title'));
$('div#support strong').html(getMsg('support_title'));
$('p#support_message').html(getMsg('support_message'));
$('button#learn_rift_button').html(getMsg('learn_rift_button'));
$('p#rift_intro_message').html(getMsg('rift_intro_message'));
$('p#rift_scan_message').html(getMsg('rift_scan_message'));
$('a#support_link').attr('href', getMsg('donation_url'));
$('button#support_button').html(getMsg('support_button'));

Expand Down

0 comments on commit 91754c8

Please sign in to comment.