Sign in to follow this  
Followers 0
Arclite86

Firefox: Annoying Pop-Up That Screws Up Scripts

12 posts in this topic

Every time I want to leave a page it give me this pop-up saying: 
 
"This page asks you to confirm that you want to leave - data you have entered may not be saved"
 
 
Than than ask me to confirm this by clicking: "leave page" button
I have tried to search for solutions on Firefox help forums and they say 
its not the fault of Firefox but it is the the webpage that is doing this.
 
Some say it is possible to click the "leave page" button with help of Greacemonkey (javascript based)
I know Greacemonkey very well and I have no problem using it,
but the thing is that I dont know what the information/source of the "leave page" button on the pop-up screen is
I have tried to use the Inspector tool but it doesnt work on pop-up screens
so my question is how can I see the source/info of the pop-up window so I can click this button with help of Greacemonkey.
 

Share this post


Link to post
Share on other sites



The webpage is: http://tweepi.com

If i want to go from http://tweepi.com/tools/follow_by_followers  to -->  http://tweepi.com/tools/flush      

I get this pop-up error 

"This page asks you to confirm that you want to leave - data you have entered may not be saved"

But i heard its not only tweepi but allot other website have the same problem

The website does not allow me to view the page source when the pop-up shows up

but this is the pagesource when the pop-up is not showing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  <head profile="http://gmpg.org/xfn/11">
    <script>
  var _errs=["50db73951bf079f60b00019b"];(function(a,b){a.onerror=function(){_errs.push(arguments)};
    var d=function(){var a=b.createElement("script"),c=b.getElementsByTagName("script")[0];
      a.src="//d15qhc0lu1ghnk.cloudfront.net/beacon.js";a.async=!0;
      c.parentNode.insertBefore(a,c)};a.addEventListener?a.addEventListener("load",d,!1):
      a.attachEvent("onload",d)})(window,document);

  _errs.meta = {};
  _errs.meta.isAuthenticated = true;
</script>        <script type="text/javascript">
  var _kmq = _kmq || [];
  var _kmk = _kmk || 'f24aab1869054e4310e3f4ff44e95beeb731ea41';
  function _kms(u){
    setTimeout(function(){
      var d = document, f = d.getElementsByTagName('script')[0],
      s = d.createElement('script');
      s.type = 'text/javascript'; s.async = true; s.src = u;
      f.parentNode.insertBefore(s, f);
    }, 1);
  }
  _kms('//i.kissmetrics.com/i.js');
  _kms('//doug1izaerwt3.cloudfront.net/' + _kmk + '.1.js');
</script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="X-Ua-Compatible" content="IE=8" /> 
    <meta name="title" content="Flush the Twitter users that do not follow you back" />
<meta name="description" content="Tweepi Twitter Follow Management Utility is a set of Twitter tools to add, follow and unfollow tweeps in bulk" />
<meta name="keywords" content="twitter tools, how to twitter followers, twitter management, twitter bulk, twitter follow unfollow utility, twitter follow tools, twitter, tweppi, twweepi, tweep, tweep follow unfollow" />
<meta name="language" content="en" />
<meta name="robots" content="index, follow" />
    <title>Flush the Twitter users that do not follow you back :: Tweepi</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" media="screen" href="/ExtGWT/css/gxt-all.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/style.css?n=118" />
    <!--[if lte IE 8]>
<style type="text/css">
.ext-el-mask {
  max-height: 3000px;
}
</style>
<![endif]-->

<!--[if lt IE 7]>
<style type="text/css">.premium_sprite, .logo_img { behavior: url('/css/ie6pngfix/iepngfix.php') }</style>
<script type="text/javascript" src="/css/ie6pngfix/iepngfix_tilebg.js"></script>
<![endif]-->

<!--[if IE 888888]>
<style>.submenu li.hover, .submenu li.selected { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->

<!--[if lte IE 8]>
<style>.css3-pie, .btn, .shadow_input, .error_msg, .actions_popup, .safelistitem .safeunsafe, .report_bugs_float { behavior: url('/css/css3-pie/PIE.php'); }</style>
<![endif]-->            <script type="text/javascript">
            // compulsory
            var set_grid_func = "flush";
            var set_is_grid_pp = true;
            var set_is_tweeted_about_us = false;
            var set_is_p = false;
            var set_prem_level = "none";
            var set_max_pp = 20;
            var set_is_klout_preloaded = false;
            var set_klout_check_every = 5;
            var set_klout_max_poll_wait = 30;
            //var set_is_enable_list_tools = ;
            var set_is_enable_follow_history = false;

            var set_url_to_search = "/follow_by_search";
            var set_url_to_buy_premium = "/premium/packages";
            var set_url_to_upgrade_platinum = "/premium/buy/platinum";

            var set_is_qame = true;

            var set_check_amq_every = 7; // in seconds
            var set_produce_amq_every = 10; //in seconds
            var set_max_pending_in_dispatcher = 50; //in actions

            var set_is_klout_ready = false;

            // optional
            var set_per_page = -1;
            var set_url_prefix = ""; // format "/x"

            // debug
            var set_forced_url = "";
        </script>
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/general.js?n=26"></script>
<script type="text/javascript" src="/js/tweepigxt/tweepigxt.nocache.js?n=173"></script>
            <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7899407-6']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>  </head>
  <body>
        <div class="mainmenu-wrapper middle_wrapper center_div center_div_auto">
  <div class="mainmenu">
  <ul>
          <li class="nobullet"><a href="/dashboard">Dashboard</a></li>
        <li class="tweepi_sprite selected">
      <a href="/dashboard">Manage Twitter</a>      <ul id="manage" class="submenu">
        <li class="selected"><a href="/geeky_flush">Flush the unfollowers</a></li>
        <li><a href="/geeky_recip">Reciprocate</a></li>
        <li><a href="/geeky_cleanup">Cleanup People I'm Following</a></li>
        <li><a href="/geeky_cleanup_followers">Cleanup People Following Me</a></li>
      </ul>
    </li>
    <li class="tweepi_sprite">
      <a href="/dashboard">Follow Tweeps</a>      <ul id="follow" class="submenu">
        <li><a href="/follow_by_followers">@user's followers</a></li>
        <li><a href="/follow_by_following">@user's friends</a></li>
        <li><a href="/follow_by_list_content">List members</a></li>
        <li><a href="/follow_by_copy_paste">Copy/paste</a></li>
        <li><a href="/follow_by_search">Tweet search</a></li>
        <li><a href="/follow_by_user_search">User search <span class="prem_tag">NEW</span></a></li>
      </ul>
    </li>

          <li class="tweepi_sprite"><a href="/premium/packages">Premium</a></li>
    
    <li class="tweepi_sprite"><a href="/blog/">Blog</a></li>
    <li class="tweepi_sprite"><a href="/help">Help</a></li>
  </ul>
</div></div>
<div class="head-wrapper head-thinner">
  <div class="noisy-gray head_graylayer"></div>
  <div class="noisy-blue head_bluelayer"></div>
  <div class="whitestrip whitestrip-thinner"></div>

  <div class="head center_div auto_width">
    <div class="noisy-gray head_graylayer"></div>
    <div class="noisy-blue head_bluelayer"></div>
    <div class="whitestrip whitestrip-thinner"></div>

    <div class="logo">
<!--  <a class="hiretip" href="/jobs/">We're hiring!</a>-->
  <a href="/">
          <img class="logo_img" alt="Tweepi Twitter Follow Management" src="/images/logo-trans3.png" height="105" width="240" />      </a>
  <div class="slogan">make sense of your<br />Twitter account</div>
</div>      <div class="login-bar css3-pie">
          Hi
              <span id="loggedinuser"><strong>weightlos+5@hotmail.com </strong>
                      
            &nbsp;|&nbsp;managing<select id="owned_user_list" class="owned_user_list" url="/account/switch">
              <option value="@HoardHarold" >@HoardHarold</option><option value="@DrCharlesTF2" >@DrCharlesTF2</option><option value="@JohnDMontano1" >@JohnDMontano1</option><option value="@dr_lowell" >@dr_lowell</option><option value="@DrgordonS" >@DrgordonS</option><option value="@DHazelti" >@DHazelti</option><option value="@DrDouglasAC1" >@DrDouglasAC1</option><option value="@DrWalterBMo1" >@DrWalterBMo1</option><option value="@DrKevinSRob1" selected="selected" >@DrKevinSRob1</option><option value="@DrGregorioM1" >@DrGregorioM1</option><option value="@DrGaryRFrey1" >@DrGaryRFrey1</option><option value="@dr_beaird" >@dr_beaird</option><option value="@DrJackPSmit1" >@DrJackPSmit1</option><option value="@dr_simmon" >@dr_simmon</option><option value="@DrDanHWalke1" >@DrDanHWalke1</option><option value="@GoweJeffrey" >@GoweJeffrey</option><option value="@MassiWillie" >@MassiWillie</option>              <option value="Add_new">(Add new...)</option>
            </select>
                <span class="type_free">(FREE)</span>        </span>
              

            &nbsp;|&nbsp;

      <a href="/dashboard">my dashboard</a>&nbsp;|&nbsp;
      <a href="/safelist">safelist</a>&nbsp;|&nbsp;
      <a href="/auth/logout">logout</a>      </div>
  </div>
</div>
    <div class="center_div middle_wrapper center_div_auto">
      <div class="content">
        <div id="advert_div" class="adverts">
  <!-- BuySellAds.com Zone Code -->
  <div id="bsap_1251699" class="bsarocks bsap_c9e81a9bf976af7ac301773dbca4e0c7"></div>
  <!-- END BuySellAds.com Zone Code --> 
</div>
                
        <div class="left_top_div_auto">
        <h1>Flush: <span class="smallerh1">you're following <span id="ucount">.....</span> users who are not following you back
        <span class="tooltip inline_block gray">&nbsp;?&nbsp;<span class="tip"> Many users on Twitter feel that if a user does not follow them back, it's somehow insulting. This utility is designed to '<strong>teach those users a lesson by unfollowing them</strong>' with just a few clicks.   Tweepi's Geeky Flush is a simple utility for quickly spotting tweeps that you follow but do not follow you back. </span></span></span></h1>
    </div>

<table class="nofollowedmsg flowertextbtn">
    <tr>
        <td class="flower"><div class="tweepi_sprite blueflower">&nbsp;</div></td>
        <td class="text">
            <span class="quote">&ldquo;</span>
            <span class="textonly">Just used Tweepi's Flush to unfollow <span id="nounfollowed_var">285</span> tweeps who weren't following me back.</span>
            <span class="quote">&rdquo;</span>
        </td>
        <td class="tweetbutton"><a href="#x" onclick="openTweetThisDialog()" class="btn btn_smaller btn_orange inline_block">Tweet This</a></td>
        <td class="note">Note: You can edit the tweet</td>
    </tr>
</table>
<style type="text/css">
/* Chrome v19 bug. See: http://code.google.com/p/chromium/issues/detail?id=124816 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .x-grid3-row td.x-grid3-cell {
        padding-left: 0;
        padding-right: 0;
    }

    .ext-strict .x-grid3-cell-inner, .ext-strict .x-grid3-hd-inner {
      margin-left: 1px;
    }
}
</style>
<script type="text/javascript">
  /**
   * Show a warning if user tries to navigate away and GXT ActionDispatcher still has pending actions.
   * 
   * @param {Event} e
   * @returns {String} The message
   * 
   * @see http://stackoverflow.com/questions/1119289/how-to-show-the-are-you-sure-you-want-to-navigate-away-from-this-page-when-ch
   */
  var confirmOnPageExit = function (e) {
    // If we haven't been passed the event get the window.event
    e = e || window.event;

    var message = 'You still have pending actions (which will be lost)';

    // For IE6-8 and Firefox prior to version 4
    if (e) {
      e.returnValue = message;
    }

    // For Chrome, Safari, IE8+ and Opera 12+
    return message;
  };
  
  // on interval, set/unset onbeforeunload
  setInterval(function() {
    window.onbeforeunload = (isPendingGridActions() && !window.onbeforeunload) ? confirmOnPageExit : undefined;
  }, 500);
</script>
                            
        
                <div id="advert_div3" class="gray_div">
            <div id="bsap_1260841" class="bsarocks bsap_c9e81a9bf976af7ac301773dbca4e0c7"></div>
        </div>
        
        
        <noscript>
            <div class="no_javascript">
                Your web browser must have JavaScript enabled
                in order for Tweepi to display correctly.
            </div>
        </noscript>

        <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

        
        <div id="tweepiGridDiv"></div>

                <div id="advert_div2" class="gray_div">
            <div id="bsap_1259338" class="bsarocks bsap_c9e81a9bf976af7ac301773dbca4e0c7"></div>
        </div>
        
                <div class="grid_notice">
            <p>Note: The sorting feature of the current grid works on by-page basis, and not
            using the entire data set. This is done to ensure the best experience using
            Tweepi based on the current Twitter API limitations.</p>
        </div>
        
                <table class="tweet_about_us_tbl">
            <tr>
                <td class="left">
                    <div class="bubble_text">
                                                    <strong>Did you know</strong> that you can increase your per page limit from 20 users to <strong>40 users a page</strong> for a month if you tell your friends about Tweepi?
                                            </div>
                </td>
                <td class="middle"><div class="tweepi_sprite bubble_arrow"></div></td>
                <td class="right"><a href="#x" onclick="openTweetAboutUsDialog()" class="btn btn_small btn_orange inline_block">&nbsp;Tweet&nbsp;</a></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td class="finenote">Note: You can change the text before tweeting.</td>
            </tr>
        </table>
                  </div>
    </div>
    
          <hr class="no-jumbo-footer" />
        
    <div class="abs_footer center_div">
  <div class="big_stats">
    <span class="bigger">1,031,782</span> users and counting trust Tweepi
    <br/><span class="bigger">828,796,639</span> tweeps un/followed
    <!-- time taken: 1.9073486328125E-5 -->
  </div>
  <div class="tweepi_sprite footer_line inline_block">
    <a href="http://thoughtpick.com/">another thoughtpick</a>  &mdash;
    <a href="/contact-us">contact us</a>  &mdash;
    <a href="/help">help</a>  </div>
</div>    <!-- BuySellAds.com Ad Code -->
<script type="text/javascript">
  $(window).load(function(){
    (function(){
      var bsa = document.createElement('script');
      bsa.type = 'text/javascript';
      bsa.async = true;
      bsa.src = '//s3.buysellads.com/ac/bsa.js';
      (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
    })();
  });
</script>
<!-- END BuySellAds.com Ad Code -->    
<!-- Total time taken for page 0.125s -->  </body>
</html>

Share this post


Link to post
Share on other sites

Have you tried something like this before you attempt to navigate away from the page?

_FFCmd('window.onbeforeunload=undefined;')

Share this post


Link to post
Share on other sites

 

Have you tried something like this before you attempt to navigate away from the page?

_FFCmd('window.onbeforeunload=undefined;')

I have tried it but it didn't work..

Share this post


Link to post
Share on other sites

autoit also give me an error when the pop-up starts

__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1

Share this post


Link to post
Share on other sites

What commands are you issuing to navigate away from the page? Post your code. :ermm:

Share this post


Link to post
Share on other sites

What commands are you issuing to navigate away from the page? Post your code. :ermm:

_FFOpenURL("http://tweepi.com/tools/flush#500") ; no problem
_FFLoadWait()
Sleep(700)

_FFOpenURL("http://tweepi.com/tools/follow_by_followers#0") ; Pop-up gives error
_FFLoadWait()
Sleep(700)

Share this post


Link to post
Share on other sites

FWIW, _FFOpenURL performs a _FFLoadWait by default.

I would try something like this:

_FFOpenURL("http://tweepi.com/tools/flush#500") ; no problem
Sleep(700)

_FFOpenURL("http://tweepi.com/tools/follow_by_followers#0", False) 
_FFDialogWait("confirm", "", "ok") ; may need to change text to something else that matches
_FFLoadWait()

Share this post


Link to post
Share on other sites

 

FWIW, _FFOpenURL performs a _FFLoadWait by default.

I would try something like this:

_FFOpenURL("http://tweepi.com/tools/flush#500") ; no problem
Sleep(700)

_FFOpenURL("http://tweepi.com/tools/follow_by_followers#0", False) 
_FFDialogWait("confirm", "", "ok") ; may need to change text to something else that matches
_FFLoadWait()

this may work if I could fill in the correct text, but how do i know the right text of the _FFdialogwait() 

because I cant use the inspector tool  from firefox on the pop-up

the pop-up is only show the text:

Deze pagina vraagt te bevestigen dat u deze wilt verlaten - gegevens die u hebt ingevoerd worden mogelijk niet opgeslagen (dutch)

This page asks you to confirm that you want to leave - data you have entered may not be saved (translation)

2 buttons:

Pagina verlaten(translation: leaving page)

and

Op de pagina blijven (translation: stay on page)

Share this post


Link to post
Share on other sites

The first parameter is the text that must match for the dialog to be detected. Try:

_FFDialogWait("bevestigen", "", "ok") ; change text as necessary to detect dialog

Share this post


Link to post
Share on other sites

I had a similar problem. I just send {Enter} when closing a tab. If the nag screen does not appear the {Enter} has no effect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0