Skip to content

Commit

Permalink
continue working on youtube issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Mar 3, 2020
1 parent c365a9a commit b41384e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ const siteSpecificReplace = {
'www.youtube.com': {
'b."get_video_info"': `"${httpprefix}://${serverName}:${port}/https/www.youtube.com/get_video_info"`,
'c<a.C.length': `c<a.C.length&&a.C[c].style`, // fixed the exception.
'Ls.Ns.a.+?;': 'true};', // remove url check in base.js
// 'a.C.c..style.display=0==b': `a.C[c].style&&a.C[c].style.display=0==b`,
// '/manifest.json': `/https/www.youtube.com/manifest.json`,
// '("url":")/([-a-z0-9]+?)': `$1/https/www.youtube.com/$2`,
// ';this...logo.hidden=!0;': ';',
// '&&this...': '&&this.$&&this.$.',
' .......*?"Captions URL".': ' true', // Ms(Os(a, jfa, null), a, b, "Captions URL")
'throw Error."Untrusted URL.+?;': ';',
// '&&[a-zA-Z.]+?.Error."Player URL validator detects invalid url.*?;': `&&a=true;`,
'"//"(.this\..\...\...."/api/stats/qoe")': `"//${serverName}:${port}/"$1`,
//;b=g.$g("//"+this.o.ab.Ff+"/api/stats/qoe",a);
},
'search.yahoo.com': {
'"./ra./click"': `"\\/https\\/search.yahoo.com\\/ra\\/click"`,
Expand Down
3 changes: 2 additions & 1 deletion test/siteproxylocal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,6 @@ test('youtube url check issue', async () => {
})
// console.log(`${JSON.stringify(response.headers)}`)
console.log(`${response.data}`)
expect(response.data.indexOf(`Ls(Ns(a.`)).toBe(-1)
expect(response.data.indexOf(`"Captions URL"`)).toBe(-1)
expect(response.data.indexOf(`("//${serverName}:${port}/"+this.`)).not.toBe(-1)
}, 30000);

0 comments on commit b41384e

Please sign in to comment.