ekb news1.co.il 'Mador Pirsum' skipper

By simon! Last update Sep 30, 2008 — Installed 213 times.

Script Summary: NEWS1 original page (redirects & ad section skipper)



This nifty script brought to you by the king ekbworldwide - http://ekbworldwide.blogspot.com/
See this discussion for further information.


[1] news1.co.il/Rss/
[2]news1.co.il/BringHtmlDoc.aspx?docid=22024&subjectId=3
[3] news1.co.il/PageLoad.aspx?adid=3817&pageUrl=Archive/003-D-22024-00.html?tag=15-03-49
[4] news1.co.il/Archive/003-D-22024-00.html?tag=15-03-49
[5] news1.co.il/Archive/003-D-22024-00.html


post-15476
var t1 = new RegExp(/\/PageLoad\.aspx\?adid=\d+\&pageUrl\=/);
var t2 = new RegExp(/\?tag=.*$/);

if (t1.test(location.href)) {
	tmp = location.href.replace(t1, "/");
	location.href = tmp;
}

if (t2.test(location.href)) {
	tmp = location.href.replace(t2, "/");
	location.href = tmp;
}
post-15530
var t1 = new RegExp(/\PageLoad\.aspx\?adid=\d+\&pageUrl\=/);
var t2 = new RegExp(/\?tag=.*$/);

if (t1.test(location.href)) {
	tmp = location.href.replace(t1, "");
	location.href = tmp;
}

if (t2.test(location.href)) {
	tmp = location.href.replace(t2, "");
	location.href = tmp;
}
post-15552
var t1 = new RegExp(/\PageLoad\.aspx\?adid=\d+\&pageUrl\=/);
var t2 = new RegExp(/\?tag=.*$/);

if (t1.test(location.href) + t2.test(location.href)) {
	tmp = location.href.replace(t2, "");
	location.href = tmp;	
	
	if (t1.test(location.href)) {
		tmp = location.href.replace(t1, "");
		location.href = tmp;
		
		if (t2.test(location.href)) {
			tmp = location.href.replace(t2, "");
			location.href = tmp;
		}
	}
}
post-15554 -- Current
if (location.search.indexOf("tag=")!=-1) location.search="";
if (location.pathname=="/PageLoad.aspx") location.pathname=/pageUrl=(.*?)(?:\?|$)/.exec(location.search)[1];
post-15568
if (/\PageLoad\.aspx\?adid=\d+\&pageUrl\=/.test(location.href))
  document.location.replace(location.href.replace(/\PageLoad\.aspx\?adid=\d+\&pageUrl\=/, "").replace(/\?tag=.*$/, ""))
else if (/\?tag=.*$/.test(location.href))
  document.location.replace(location.href.replace(/\?tag=.*$/, ""))
post-15571 -- ! IS WORKING !
var lhref = location.href;
var pageload = /\/PageLoad\.aspx\?adid=\d+\&pageUrl=/;
var tag = /\?tag=.*/;

if (pageload.test(lhref) || tag.test(lhref)) {
location.href = lhref.replace(pageload,'/').replace(tag,'');
}