Skip to content

Commit

Permalink
added youtube support on index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Mar 7, 2020
1 parent 8c6d1fa commit 6a52fec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@
<br />
<div class="descriptionSeg">3.由于从本代理发出的Google请求过多, google会自动限制搜索流量; 如果google不能用,请使用bing和yahoo搜索引擎. </div>
<br />
<div class="descriptionSeg">4.请降低youtube视频的分辨率,因为免费服务器每月的流量非常非常有限, 超过的话其他人都无法使用了 </div>
<br />
<div class="descriptionSeg">5.请登录telegram,加群@siteproxy,以便在本代理失效后及时获取更新</div>
<form class="lead-title">
<p>指定网址:<input class="lead-title" type="text" id="address" value="https://www.google.com">
<input id="addrAccess" class="lead-title button1" type="button" onclick="onsubmit" value="访问网站"/>
</p>
<input class="lead-title button1" type="button" onclick="window.location.href='/https/www.google.com'" value="Google搜索"/>
<input class="lead-title button1" type="button" onclick="window.location.href='/https/www.youtube.com'" value="Youtube(仅支持firefox浏览器)"/>
<input class="lead-title button1" type="button" onclick="window.location.href='/https/www.bing.com/?mkt=en-us'" value="Bing搜索"/>
<input class="lead-title button1" type="button" onclick="window.location.href='/https/search.yahoo.com/'" value="Yahoo搜索"/>
<input class="lead-title button1" type="button" onclick="window.location.href='/https/zh.wikipedia.org'" value="维基百科"/>
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const siteSpecificReplace = {
'"/service_ajax"': `"/https/www.youtube.com/service_ajax"`,
// '(this\..\.logo\.hidden.*?[,;])': ``,
// '(&&this\..\.content\.insertBefore.*?;)': `;`, // && this.$.content.insertBefore(this.$.guide, this.$["page-manager"]);
'[&]{2}this\.connectedCallback[(][)][)]:': `):`, // &&this.connectedCallback()):
},
'search.yahoo.com': {
'"./ra./click"': `"\\/https\\/search.yahoo.com\\/ra\\/click"`,
Expand Down
1 change: 1 addition & 0 deletions test/siteproxylocal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ test('youtube desktop_polymer_v2.js issue', async () => {
expect(response.data.indexOf(`iconChanged_:function(a,b,c){},`)).not.toBe(-1)
expect(response.data.indexOf(`g+("/youtubei/"`)).toBe(-1)
expect(response.data.indexOf(`"/service_ajax"`)).toBe(-1)
expect(response.data.indexOf(`&&this.connectedCallback()):`)).toBe(-1)
}, 30000);


Expand Down

0 comments on commit 6a52fec

Please sign in to comment.