"<img>... Remove: Webbugs" breaks script
|
Oct. 11, 2010, 02:19 AM
Post: #1
|
|||
|
|||
"<img>... Remove: Webbugs" breaks script
Test page: http://my.yahoo.com/
Symptoms: "previous" and "next" controls under photos in "TODAY" box don't work. Error Console Code: Error: missing ; before statement Match and replace Code: <Match: <img>... Remove: Webbugs 09.05.28 [sd] (d.1) > Adding l.yimg.com/a/combo?my/js/core_0.1.359.js$SET(0=a_bug.) to user list clears up problem. Sets tested: SIDKI 2009-02-13 (UPDATE 06-06), SIDKI 2009-05-24 ALPHA 4, SIDKI 2010-09-19 BETA Browser: Firefox3 |
|||
Oct. 11, 2010, 05:21 PM
(This post was last modified: Oct. 11, 2010 05:34 PM by sidki3003.)
Post: #2
|
|||
|
|||
RE: "<img>... Remove: Webbugs" breaks script
Yeah. That happens if the quotes that delimit strings change in an expression.
Example: okay: Code: var C="<img src="+A.src+" width='1' height='1' alt='' border='0' />"; broken: Code: var C="<img src="+A.src+' width="1" height="1" alt="" border="0" />'; I have already documented it as open issue. Another script using this code is l.yimg.com/a/lib/my/js/core_<JS-VERSION>.js, where webbugs get bypassed already. (Possibly the same script, since "combo" is merely concatenating scripts.) I have now changed: Code: l.yimg.com/a/combo\?*/metrics $SET(0=a_adjsex.) ...to: Code: l.yimg.com/a/(combo\?*/metrics$SET(0=a_adjsex.a_bug.)|$SET(0=a_bug.)) edit: That "Loading... " thingy at the bottom loads, if you click the Flash toggle. |
|||
« Next Oldest | Next Newest »
|