Skip to content

Commit 91754c8

Browse files
Add riftvpn intro, and change default proxy address
1 parent d09e9aa commit 91754c8

File tree

9 files changed

+62
-10
lines changed

9 files changed

+62
-10
lines changed

_locales/en/messages.json

+12
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,17 @@
5252
},
5353
"support_button": {
5454
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> Donate to us <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
55+
},
56+
"learn_rift_button":{
57+
"message": "Learn More"
58+
},
59+
"rift_intro_message":{
60+
"message": "Unblock Youku is now offering RIFT VPN for your phone, enjoy your favorite TV shows and music anytime, anywhere."
61+
},
62+
"rift_scan_message":{
63+
"message": "Scan the QR code to download Android app: "
64+
},
65+
"rift_qr_title":{
66+
"message": "Want to use it on your phone? "
5567
}
5668
}

_locales/zh_CN/messages.json

+12
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,17 @@
5252
},
5353
"support_button": {
5454
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> 向我们捐款 <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
55+
},
56+
"learn_rift_button":{
57+
"message": "了解更多"
58+
},
59+
"rift_intro_message":{
60+
"message": "Unblock Youku 现在为您的手机提供 RIFT VPN,随时随地畅享您喜爱的电视节目和音乐。"
61+
},
62+
"rift_scan_message":{
63+
"message": "扫描二维码下载安卓应用:"
64+
},
65+
"rift_qr_title":{
66+
"message": "想在手机上使用 Unblock Youku?"
5567
}
5668
}

_locales/zh_TW/messages.json

+12
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,17 @@
5252
},
5353
"support_button": {
5454
"message": "<i class=\"fa fa-heart\" aria-hidden=\"true\"></i> 向我們捐款 <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>"
55+
},
56+
"learn_rift_button": {
57+
"message": "了解更多"
58+
},
59+
"rift_intro_message": {
60+
"message": "Unblock Youku 现在为您的手机提供 RIFT VPN,随时随地畅享您喜爱的电视节目和音乐。"
61+
},
62+
"rift_scan_message": {
63+
"message": "扫描二维码下载安卓应用:"
64+
},
65+
"rift_qr_title": {
66+
"message": "想在手机上使用 Unblock Youku?"
5567
}
5668
}

configs/servers.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// _PROXY_PROTOCOL can be HTTP, HTTPS, or SOCKS5
2-
export const DEFAULT_PROXY_PROTOCOL = 'HTTPS';
3-
export const DEFAULT_PROXY_ADDRESS = 'secure.uku.im:8443';
4-
export const BACKUP_PROXY_PROTOCOL = 'HTTPS';
5-
export const BACKUP_PROXY_ADDRESS = 'secure.uku.im:993';
2+
export const DEFAULT_PROXY_PROTOCOL = 'HTTP';
3+
export const DEFAULT_PROXY_ADDRESS = 'secure.unblockpro.app:8080';
4+
export const BACKUP_PROXY_PROTOCOL = 'HTTP';
5+
export const BACKUP_PROXY_ADDRESS = 'secure.unblockpro.app:8080';
66

77
// For debugging
88
// export const DEFAULT_PROXY_PROTOCOL = 'SOCKS5';

configs/servers.test.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('The proxy addresses must not be localhost', () => {
99
expect(BACKUP_PROXY_ADDRESS).not.toMatch(/127\.0\.0\.1/i);
1010
});
1111

12-
test('Production must use HTTPS proxy', () => {
13-
expect(DEFAULT_PROXY_PROTOCOL).toBe('HTTPS');
14-
expect(BACKUP_PROXY_PROTOCOL).toBe('HTTPS');
12+
test('Production must use HTTP proxy', () => {
13+
expect(DEFAULT_PROXY_PROTOCOL).toBe('HTTP');
14+
expect(BACKUP_PROXY_PROTOCOL).toBe('HTTP');
1515
});

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Unblock Youku",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"manifest_version": 3,
55
"minimum_chrome_version": "103.0",
66
"default_locale": "en",

src/img/rift-vpn-qr.png

32.5 KB
Loading

src/popup.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,21 @@
1515

1616
<body>
1717
<div id="wrapper" class="container-fluid">
18+
<div id="rift_qr">
19+
<div><strong></strong><span class="label label-success">NEW</span></div>
20+
<div class="text-center" style="margin-top:20px;margin-bottom:20px;">
21+
<p id="rift_scan_message"></p>
22+
<img src="img/rift-vpn-qr.png" alt="Rift VPN QR code">
23+
</div>
24+
</div>
25+
26+
<div id="intro" class="text-center"style="margin-top:20px;margin-bottom:20px;">
27+
<p id="rift_intro_message"></p>
28+
<a href="https://riftvpn.ai" target="_blank"><button type="button"
29+
class="btn btn-danger" id="learn_rift_button"></button></a>
30+
</div>
1831
<div id="support">
19-
<div><strong></strong> <span class="label label-success">NEW</span></div>
32+
<div><strong></strong></div>
2033
<div class="text-center">
2134
<p id="support_message"></p>
2235
<a href="https://www.uku.im/index.html" target="_blank" id="support_link"><button type="button"

src/popup.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ import * as Icon from './modules/_icon.mjs';
88
// Set the translated texts for the options page
99
(function() {
1010
const getMsg = chrome.i18n.getMessage;
11-
11+
$('div#rift_qr strong').html(getMsg('rift_qr_title'));
1212
$('div#support strong').html(getMsg('support_title'));
1313
$('p#support_message').html(getMsg('support_message'));
14+
$('button#learn_rift_button').html(getMsg('learn_rift_button'));
15+
$('p#rift_intro_message').html(getMsg('rift_intro_message'));
16+
$('p#rift_scan_message').html(getMsg('rift_scan_message'));
1417
$('a#support_link').attr('href', getMsg('donation_url'));
1518
$('button#support_button').html(getMsg('support_button'));
1619

0 commit comments

Comments
 (0)