Post Reply 
coding default button click
Oct. 09, 2006, 07:08 PM
Post: #1
coding default button click
many sites use a type of intermission page, before you get into the page you want, to display ads or to make selections of subscriptions (ads again) and one must click on some type of button at the bottom or an icon with the "no thanks" to get to the desired destination

good example of this is http://www.asiamail.com where I use a couple throwaway email accounts and when checking email, the ad page comes up before inbox shows

what's a possible way to deal with this in proxo?
Add Thank You Quote this message in a reply
Oct. 09, 2006, 09:25 PM
Post: #2
RE: coding default button click
Could you post the source of the page with the ad?

If it's just a link you click, read the URL into \1 and then add onLoad="window.location.href='\1'" to the <body> tag.

�{=(~�::[Shea]::��~)=}�
How 'bout you sideburns, you want some of this milk?
This fading text is pretty cool, eh? I bet you wish you had some.
Add Thank You Quote this message in a reply
Oct. 10, 2006, 01:37 AM
Post: #3
RE: coding default button click
<html>
<head>


<!--// Start Injected Proxomitron Filters -->

<!-- Saved From: http://mail01.asiamail.com/scripts/commo...er%3DINBOX @ 04:34:46 -->

<script type="text/javascript">
var ProxError = 1 ;
var ProxMouse = 1 ;
var ProxStatus = 1 ;
var ProxPopup = 1 ;
var ProxAlert = 1 ;
var ProxAllowRequested = 1 ;
var ProxWindow = 1 ;
var ProxPopupNotify = 1 ;
var ProxPopUpControl = 1 ;
var ProxOnload = 0 ;
var ProxOnloadButton = 0 ;
var ProxAllowAlerts = 1 ;
</script>

<link href="http://Local.ptron/JD_HTML/CSS/menu.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" SRC="http://local.ptron/JD_HTML/JavaScript/menu.js"></script>

<link href="http://local.ptron/JD_HTML/Css/prox-links.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://local.ptron/JD_HTML/JavaScript/JD_Start.js"></script>

<!--// End Proxomitron Section -->


<!-- common adtag js begin -->
<script src="/templates/common/us/adtag.js"></script>
<!-- common adtag js end -->

<!-- banner ads external js begin -->
<span class="Prox" id="p-js" style="display:none"><center>&bull; Ad Script: List=Ad Domains Match=ads</center></span>

<!-- banner ads external js end -->

<script language="javascript" type="text/javascript">
if (self.location.href != top.location.href) {
top.location.href = self.location.href;
}
var isIE = document.all?true:false;

var adShown = false;

if (document.btnothanks) {
imageon = new Image();
imageon.src = 'http://img1.us4.outblaze.com/asiamail.com/bt_nothanks.gif';
}

function change() {if (document.btnothanks) document.btnothanks.src=imageon.src;}

function timeAd() {
adShown = false;
timerID = setTimeout("allowLink()",4000)
}
function allowLink(){
adShown = true;
document.btnothanks.src = 'http://img1.us4.outblaze.com/asiamail.com/bt_nothanks.gif';
//if (isIE) { document.all.skipAd.style.color="#ff0000"; }
}
function seenAd() {if (adShown == true) self.location.href="http://mail01.asiamail.com/scripts/common/home.main?nu=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX&.intr=1";}
timeAd();
</script>

<style type="text/css">
body {margin:0;background-color:#2f4fdf;}
.skipAdCss {color: gold; text-decoration: none; font-family: Verdana; font-size:9pt; font-weight: bold}
.ptext {color: #ffffff; text-decoration: none; font-family: Verdana; font-size:9pt;}
.plink {color: #000000; text-decoration: none; font-family: Verdana; font-size:9pt; font-weight: bold}
</style>
</head>
<BODY>
<center>
<table cellpadding="10" cellspacing="0" border="0" bgcolor="#2F4FDF" width="100%">
<tr>
<td width="100%" align="center"><IMG BORDER="0" SRC="http://img1.us4.outblaze.com/asiamail.com/AsiaMail.jpg"></td>
</tr>
</table>

<table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff" width="100%"><tr><td align="center">
<table cellpadding="0" cellspacing="0" border="0"><tr><td onclick="adShown=true;seenAd();">

<center>
<p>
<br>
<center><b><font face="Verdana"><font size="+2">AsiaMail Premium Services</font>
<p>
<a href="http://mail01.asiamail.com/scripts/common/home.main?showme=buyservice&.intr=1"><img src="http://img1.us4.outblaze.com/asiamail.com/Web_Sms.gif" border="0">[/url]
<a href="http://mail01.asiamail.com/scripts/common/home.main?showme=buyservice&.intr=1"><img src="http://img1.us4.outblaze.com/asiamail.com/SMS2Email.gif" border="0">[/url]
<br>
<a href="http://mail01.asiamail.com/scripts/common/home.main?showme=buyservice&.intr=1"><img src="http://img1.us4.outblaze.com/asiamail.com/POP3_Access.gif" border="0">[/url]
<a href="http://mail01.asiamail.com/scripts/common/home.main?showme=buyservice&.intr=1"><img src="http://img1.us4.outblaze.com/asiamail.com/MailSpace.gif" border="0">[/url]
<a href="http://mail01.asiamail.com/scripts/common/home.main?showme=buyservice&.intr=1"><img src="http://img1.us4.outblaze.com/asiamail.com/E-mail_Forwarding.gif" border="0">[/url]
<p>
<font size="+1">Help support your AsiaMail site!

<br>
Subscribe to AsiaMail Premium Services.</font></b>
<p>
</center>


</td></tr></table>
</td></tr></table>

<table cellpadding="5" cellspacing="0" border="0" bgcolor="#2F4FDF" width="100%">
<tr>
<td width="100%" align="center">
<a href="jseenAd()"><img src="http://img1.us4.outblaze.com/asiamail.com/bt_nothanks_disabled.gif" border="0" name="btnothanks">[/url]
</td>
</tr>
</table>

<!-- ad Starts -->
<p>
<tr><td colspan="2" align="center">
<!-- banner ads error page begin -->
<script>sac_banner( "/site=ao-asiamail/adsize=300x250/area=interstitial" );</script>
<!-- banner ads error page end -->
</td></tr>
</p>
<!-- ad ends -->

</center>




<!--// Below Injected by Proxomitron -->

<div id="ProxMenuMain" onmouseover="jShowIcon()"> <img src="http://local.ptron/clear.gif" width=16 height=16 alt="" border=0> </div> <div id="ProxIcon" onmouseout="jHideIcon()" style="display:none"> <a href="jvoid()" title="Open Proxomitron Menu" onclick="jShowMenu()"><img src="http://local.ptron/JD_HTML/Prox.gif" border=0 width=17 height=17 alt="">[/url] </div> <div id="ProxMenuSub" style="display:none"> <a class="menbar-header" href="jHideMenu()">Close Menu[/url] <a class="menbar-item" target="_blank" href="http://Cmd.bypass..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Bypass All Filters[/url] <a class="menbar-item" href="http://Cmd.bweb..http://mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Bypass Web Filters[/url] <a class="menbar-item" target="_blank" href="http://Cmd.bin..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Bypass Header Filters (in)[/url] <a class="menbar-item" target="_blank" href="http://Cmd.bout..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Bypass Header Filters (out)[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" target="_blank" href="http://Cmd.src..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">View Source[/url] <a class="menbar-item" target="_blank" href="http://Cmd.src..bypass..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">View Source (Bypassed)[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" target="_blank" href="http://Cmd.dbug..mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">DBUG Page[/url] <a class="menbar-item" target="_blank" href="http://add.to.blockfile/CookieList/mail01.asiamail.com/http://mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Add Page to..[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" href="jtkills()">Toggle Kills[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" href="jtranslate()">Translate Page[/url] <a class="menbar-item" href="jshrtlink()">Create Short Link[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" href="http://Cmd.load//JD_Basic.cfg?mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Load Basic Config[/url] <a class="menbar-item" href="http://Cmd.load//Default.cfg?mail01.asiamail.com/scripts/common/intr.main?done=%2Fscripts%2Fmail%2Fmailbox.mail%3Fread%3Dyes%26login%3Dmycat%3Asomething.com%26folder%3DINBOX">Load Default Config[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" target="_blank" href="http://local.ptron/.pinfo/urls/">Recent URL's[/url] <a class="menbar-item" target="_blank" href="http://local.ptron/.pinfo/lists/">Current Blocklists[/url] <div class="sep">&nbsp;</div> <a class="menbar-item" target="_blank" href="http://Cmd.file:///C|/Program%20Files/Proxomitron%20Naoko-4/JD_Help/filters.htm">View Help Files[/url] <div class="sep">&nbsp;</div> <a class="menbar-header" href="jHideMenu()" onmouseout="jHideMenu()" >Close Menu[/url] </div>
<span id="ProxDisplay"></span>

<script type="text/javascript" src="http://local.ptron/JD_HTML/JavaScript/JD_End.js" DEFER></script>

<!--// End Proxomitron Section -->

</body>
</html>
Add Thank You Quote this message in a reply
Oct. 10, 2006, 02:25 PM
Post: #4
RE: coding default button click
susa,

I'm not sure I'd even mess with this page. I'd go back to the previous page that requests this one, and look at the code. (That's probably your login page, right?) The simple method would be to find the URL in the appropriate link, and then make a filter to matches on that link, and replaces it with your desired page. For anything but a login page, this method works well.

Sadly, the very idea of logging in is that some kind of authentication has to take place. However it's done, the ad page you're seeing is being called from a backend server, and not directly from any HTML code you can see. Thus, you'll probably be best off by making a header filter to execute a redirect. When the suspect page starts loading, Proxo should identify it, and immediately issue a redirect call to the browser. "Ad page" never finishes loading, and time is saved. Not to mention your sanity. Smile!

Proxo ships with a couple of example filters that do this, start by looking at them to see how it's done.

HTH


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Oct. 10, 2006, 10:42 PM
Post: #5
RE: coding default button click
Match: <body
Replace: <body onLoad="adShown=true;seenAd();"

Should work perfectly.

�{=(~�::[Shea]::��~)=}�
How 'bout you sideburns, you want some of this milk?
This fading text is pretty cool, eh? I bet you wish you had some.
Add Thank You Quote this message in a reply
Oct. 12, 2006, 06:18 PM
Post: #6
RE: coding default button click
Quote:Match: <body
Replace: <body LoadOff="adShown=true;seenAd();"

Should work perfectly.

Another good method. Have to admit, I hadn't thought of that one, but it's now in my little arsenal of tricks. Wink

(Of course, one has to juggle the body tag filters that turn onLoad into LoadOff - see what my filter did when I quoted Shea!)

Thanks, Shea! Cheers


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: