能让sidki把这个JS效果做掉么

sidki config set的配置、使用,新手入门首选

Moderator: phoenix

Post Reply
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

能让sidki把这个JS效果做掉么

Post by ddbb »

http://www.cnproxy.com/popkillertest/test18.html

这个sidki没拦住......

我不知道这个应该不应该拦住 不过我觉得这个应该和time差不多.....既然time都做成左下角的了 这个应该也能做到左下角吧 需要的时候再点左下角放开.............
User avatar
phoenix
Site Admin
Posts: 529
Joined: Dec 29 2007, 16:27

Re: 能让sidki把这个JS效果做掉么

Post by phoenix »

sidki wrote: This page is calling two popups.

The first one technically isn't a popup but a simulated click on a legit <a href> link. Hence, this isn't a job for the popup blocking code. IE is apparently limiting such use of link.click(). Firefox doesn't support it at all.

The second one is a real popup (window.open'ed, again by simulated click). It also gets blocked in Opera (you should here a sound, if activated).

Anyway, i think it's worth a try to intercept onload event handlers doing this. It needs to be tested, since .click() *might* also be used by harmless functions.

Old code in proxjs-full.js:

Code: Select all

      var ldIn = /^\n*function SymOnLoad|^[^;]*((popu(p|nder)|track)\w*|print ?\()|\.location(\.href)? ?=[^=]|Math\.random|float *[^:]|expires ?=/i;
New:

Code: Select all

      var ldIn = /^\n*function SymOnLoad|^[^;]*(?:popu(?:p|nder)|track)\w*|location(?:\.href)? ?=(?!=)|Math\.random|float(?! *:)|expires ?=|(?:\.click|print) ?\(/i;
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 能让sidki把这个JS效果做掉么

Post by ddbb »

:oops:

试了一下......好像没什么效果...........

不过反正只有这个页面有..........无所谓了.........
User avatar
phoenix
Site Admin
Posts: 529
Joined: Dec 29 2007, 16:27

Re: 能让sidki把这个JS效果做掉么

Post by phoenix »

改了 proxjs-full.js 后,清空 opera 的缓存,然后重启 opera 。
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 能让sidki把这个JS效果做掉么

Post by ddbb »

刚才去那边仔细看了你和sidki的讨论.....然后看了他的TEST过程.....我注意到你发出来的

Code: Select all

<Match: <a>...: Replace blank/new     6.08.13 (multi) [pr sd] (d.1 l.3) >
<a id="link1" href="badpopup.html"  target="_blank" style="color:#BFBDBD;">
</Match>
和他的

Code: Select all

<a id="link1" href="badpopup.html"  target="_blank" style="color:#BFBDBD;"></a>
<a id="link2" href="javascript:openBadPopUp()" style="color:#BFBDBD;"></a></div>
于是我在这个方向查了一下.....果然....target="_blank" 的时候就没问题 target="_top" 的时候就有问题...

估计是因为bank在新窗口 所以就会被挡住........而top在本页面.....就不会不被当做popup了....

仔细想想.....在本窗口的话 确实不应该算是popup......

只是没搞清楚他是在哪里关掉的Replace blank/new在这个页面的过滤.......他好像没提到这个.........
User avatar
phoenix
Site Admin
Posts: 529
Joined: Dec 29 2007, 16:27

Re: 能让sidki把这个JS效果做掉么

Post by phoenix »

<a>...: Replace blank/new 这条规则会将 _blank 属性修改为 _top ,sidki 并没有关掉这条规则在这个页面的过滤。

最后的结论是当修改完 proxjs-full.js ,清空 opera 的缓存后,要重启 opera 才会使修改生效。sidki 提到 opera 和 chrome 都需要重启浏览器这一步,而 ie 和 firefox 则无此问题。
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 能让sidki把这个JS效果做掉么

Post by ddbb »

都已经这么多天了.....我电脑都重启了好几次了.....而且我每次关opera的时候都是选的清缓存的........

啊......你提到了IE....刚才去试了一下 IE确实是没问题的.......而且看了一下IE的页面代码 也是target="_top"的.....

也就是这一句在opera下有问题 在IE下没问题...

这个应该是和浏览器有关的.......

我比较奇怪的只是 修改的既然只有一个JS.....应该是和过滤没有关系的 该过滤哪的还会过滤哪.....那为什么sidki看到的src会是

Code: Select all

<a id="link1" href="badpopup.html"  target="_blank" style="color:#BFBDBD;"></a>
因为这里面的 _blank 应该会被过滤掉的.......
User avatar
phoenix
Site Admin
Posts: 529
Joined: Dec 29 2007, 16:27

Re: 能让sidki把这个JS效果做掉么

Post by phoenix »

他说的是过滤前的代码。

我这里修改 proxjs-full.js 后是起作用的。你加载 sidki_oob.ptron 再试试?
Post Reply