luop90 / scriptno

Automatically exported from code.google.com/p/scriptno
0 stars 0 forks source link

Script Sometimes cause Tudou.com unable to play the video #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since tudou directly load its video stream(in f4v) from an IP address(Which is 
different from youtube who use a sub domain like ***cache**.youtube.com)

some "OBJECT" seems to be incorrectly blocked, unless ScriptNo is totally shut 
down in chrome's extension manager. It didn't work if only click the disable 
button in the scriptno.

Chrome's Developer tool recorded such data on the hyperlink of

http://www.tudou.com/programs/view/rJXikb9hjak/

1,
Request URL:http://127.0.0.1:9701/crossdomain.xml
Request Headersview source
Referer:http://js.tudouui.com/bin/player_online/TudouVideoPlayer_Homer_230.swf
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like 
Gecko) Chrome/17.0.963.56 Safari/535.11

(TudouVideoPlayer_Homer_230.swf submitted a request for a crossdomain 
permission file from local host, which is blocked. I don't actually know how or 
why does the flash player created such a local server )

2,
Request 
URL:http://218.26.235.97/f4v/12/107634012.h264_1.f4v?11000&key=e769c320bc6589dc9
676e64f424417c5492ea5&playtype=1&tk=143483485673647155430411917&brt=2&bc=10&nt=0
&du=902980&ispid=244&rc=200&inf=1&si=11000&id=tudou&itemid=70263881&fi=121118546
&sz=32514780&posky=R42hyOzAqxkaQ37GK5jX16mddk2lv&plybgn=1
Request Method:GET
Status Code:403 Forbidden
Request Headersview source
Accept:*/*
Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
DNT:1
Host:218.26.235.97
Referer:http://js.tudouui.com/bin/player_online/TudouVideoPlayer_Homer_230.swf
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.0) AppleWebKit/535.1 (KHTML, 
like Gecko) Chrome/14.0.835.94 Safari/535.1

Original issue reported on code.google.com by cereb...@gmail.com on 20 Feb 2012 at 1:17

GoogleCodeExporter commented 9 years ago
unclick
Forbid Cross-Domain XML

unclick
Disable and Remove:
 <OBJECT>

or add 127.0.0.1 to whitelist make no use.

All the test is processed with Adblock Plus enabled(using the Chinese filter, 
or just Chinalist Lazy instead), since it has no conflict with scriptno or 
Tudou's player:

With Adblock plus disabled, ad returns, however the video is still unable to 
play due to the same reason.

Original comment by cereb...@gmail.com on 20 Feb 2012 at 1:26

GoogleCodeExporter commented 9 years ago
Please don't make things so difficult. ScriptNo is very simple to use. The 
following setting is for reference.
Install ScriptNo and keep settings as default, then add the following domains 
to whitelist:
tudou.com
js.tudouui.com

Then tudou.com should play well.
Btw, the way to use scriptno is when site is not showing normal, just left 
click on the icon of ScriptNo, and choose "Allow" for some js in the "Blocked 
Resources" area.
Well, only when translation of software is done would ScriptNo really be easy 
to use for everyone. 汉化很必须啊。

Original comment by aaronche...@gmail.com on 27 Feb 2012 at 10:14

GoogleCodeExporter commented 9 years ago
The bug might be probably caused by the duplicated using of the 
webrequest/contentsetting API with other extensions(adblock plus, vanilla 
cookie manager), which make it hard to repeat---now it works fine after being 
re-installed. 

Original comment by cereb...@gmail.com on 27 Feb 2012 at 4:59