Post Reply 
[S] Videos at IMDb
Apr. 16, 2011, 07:09 PM (This post was last modified: Apr. 16, 2011 07:10 PM by JJoe.)
Post: #2
RE: Videos at IMDb
Quote:Why does the order here matter?

The Proxomitron does not search the list for all matches. It stops looking after the first match is found. So for

Code:
## allow imdb photo/video links to work
i.media-imdb.com/            $SET(0=a_jslink.)
static.ak.fbcdn.net/            $SET(0=a_jslink.)
www.imdb.com/            $SET(0=a_jslink.)

## allow imdb trailers to play
i.media-imdb.com/         $SET(0=a_js.)
www.imdb.com/         $SET(0=i_noscr:2.)
i.media-imdb.com/            $SET(0=a_adscr.)

"i.media-imdb.com/ $SET(0=a_js.)" was not found because "i.media-imdb.com/ $SET(0=a_jslink.)" was found first. The video did not play because "i.media-imdb.com/ $SET(0=a_js.)" was not found.

List matches need to be unique.

Exceptions-U Wrote:# URL expression syntax:
# Exactly one page: http://www.mysite.com/mydir/mypage.html
# One hostname: http://www.mysite.com/
# The whole domain: ([^/]++.|)mysite.com/
# All subdomains: [^/]++.mysite.com/
# All primary subdomains: [^.]+.mysite.com/
# All primary subdomains except "www": [^.]+.mysite.com/&(^www.)
#
# Each URL expression must match only once!
# Incorrect:
# [^.]+.yahoo.com/ $SET(0=a_rdlink.)
# login.yahoo.com/config/ $SET(0=a_redir.)
#
# Correct:
# [^.]+.yahoo.com/&(^login.yahoo.com/config/) $SET(0=a_rdlink.)
# login.yahoo.com/config/ $SET(0=a_redir.)
#
# You can apply multiple exception keywords to the same entry by
# concatenating them, each keyword followed by a dot:
# http://www.dummysoftware.com/ $SET(0=a_js.a_ads.)

Quote:I should add that the video, inexplicably, did play once without the new exception.

I'll guess, a 'good' copy of a file in the browser's cache was used to render the page. The browser can complicate things.

I think I've narrowed it down to "Remove: Ad Functions II - Code 10.08.08 [jd sd] (d.3 l.3)" in http://i.media-imdb.com/images/SFb4b030a632105db0cc5322dd6c9320be/js/cc/ads.js

Try

Code:
## imdb trailers
i.media-imdb.com/images/[^/]+/js/cc/ads.js $SET(0=a_adfn2.)

## allow imdb photo/video links to work
www.imdb.com/             $SET(0=a_jslink.)
static.ak.fbcdn.net/            $SET(0=a_jslink.)

Does it work as desired?
These trailers are coming from doubleclick, btw.

Quote:It's frustrating to say the least.
Quote:I've been staring at the log and the dbug page for hours

It would have been ok to ask sooner. I don't think you knew enough.

Quote:I thought using the dbug page and looking for matched code was the proper method,

It can be but you probably didn't do something like this http://i.media-imdb.com/images/SFb4b030a632105db0cc5322dd6c9320be/js/cc/ads.js?prx-command=dbug..

Quote:Is there a step by step method for discovering the cause of issues like these where the goal is to minimize the limits placed on the filter?

I went to http://www.imdb.com/title/tt0246578/ , clicked the button that took me to http://www.imdb.com/video/screenplay/vi1067647257/ , and found that the video did not load.
Added "i.media-imdb.com/ $SET(0=a_js.)" and eventually video loaded. It appeared to be a problem with an external script from i.media-imdb.com/
Commented out i.media-imdb.com/ entry.
Opened the set's menu and clicked on "show 33 scripts".
"Scripts in http://www.imdb.com/video/screenplay/vi1067647257/" opened.
The second external script shown was http://i.media-imdb.com/images/SFb4b030a632105db0cc5322dd6c9320be/js/cc/ads.js.
dbugging "ads.js" lead me to "Remove: Ad Functions II - Code 10.08.08 [jd sd] (d.3 l.3)"
Added i.media-imdb.com/images/[^/]+/js/cc/ads.js $SET(0=a_adfn2.) to Exceptions-U
Cleared browser's cache
Watched trailer

Your browser may allow a trick that may make things easier. When you suspect a problem with external scripts, clear the browser's cache, enable "HTML Debug info" via the Proxomitron's log window, and then click "show ?? scripts" in the set's menu. The "Scripts in" window may show dbug for all the external scripts.

Also, the browser's Error Console may help and there are things like Firebug.

HTH


Attached File(s)
.jpg  ScriptsInDbug.jpg (Size: 206.55 KB / Downloads: 841)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[S] Videos at IMDb - zoltan - Apr. 16, 2011, 06:40 AM
RE: Videos at IMDb - JJoe - Apr. 16, 2011 07:09 PM
RE: Videos at IMDb - zoltan - Apr. 17, 2011, 07:40 AM
RE: Videos at IMDb - JJoe - Apr. 18, 2011, 02:40 AM
RE: Videos at IMDb - zoltan - Apr. 18, 2011, 06:02 AM
RE: Videos at IMDb - JJoe - Apr. 18, 2011, 03:12 PM
RE: Videos at IMDb - zoltan - Apr. 19, 2011, 10:45 PM
RE: [S] Videos at IMDb - zoltan - Jun. 24, 2011, 03:53 AM
RE: [S] Videos at IMDb - JJoe - Jun. 25, 2011, 03:19 AM
RE: [S] Videos at IMDb - zoltan - Jun. 28, 2011, 07:24 AM
RE: [S] Videos at IMDb - JJoe - Jun. 30, 2011, 04:32 AM
RE: [S] Videos at IMDb - zoltan - Jul. 04, 2011, 01:32 AM
RE: [S] Videos at IMDb - JJoe - Jul. 04, 2011, 03:38 AM
RE: [S] Videos at IMDb - zoltan - Jul. 04, 2011, 07:57 AM
RE: [S] Videos at IMDb - JJoe - Jul. 04, 2011, 02:30 PM
RE: [S] Videos at IMDb - zoltan - Jul. 07, 2011, 06:00 AM
RE: [S] Videos at IMDb - JJoe - Jul. 08, 2011, 01:44 AM
RE: [S] Videos at IMDb - JJoe - Jun. 29, 2011, 04:35 AM
RE: [S] Videos at IMDb - zoltan - Jul. 08, 2011, 09:16 PM
RE: [S] Videos at IMDb - JJoe - Jul. 09, 2011, 12:19 AM
RE: [S] Videos at IMDb - zoltan - Jul. 09, 2011, 06:53 AM
RE: [S] Videos at IMDb - JJoe - Jul. 09, 2011, 02:13 PM

Forum Jump: