in reply to Re^4: Problem using MozRepl and MozRepl::RemoteObject
in thread Problem using MozRepl and MozRepl::RemoteObject

There is no convenient way to set the timeout of MozRepl::Client through WWW::Mechanize::Firefox. The least inconvenient way is to set $ENV{MOZREPL_TIMEOUT} before constructing your instance of WWW::Mechanize::Firefox, I guess. The more inconvenient way involves reaching down to

$mech->repl->repl->client->{telnet}->timeout(60)

This is not pretty, but should allow you to set the timeout.

There is no convenient way with WWW::Mechanize::Firefox to block scripts from loading. Have you looked at an ad blocker?

Replies are listed 'Best First'.
Re^6: Problem using MozRepl and MozRepl::RemoteObject
by Anonymous Monk on Nov 11, 2013 at 23:26 UTC

    Have you looked at an ad blocker?

    I second this notion; some pages have so much dynamic-advertisement-junk-infinite-loop (400MB worth) they're unbrowsable without an ad-blocker

Re^6: Problem using MozRepl and MozRepl::RemoteObject
by cf006 (Initiate) on Nov 11, 2013 at 20:57 UTC
    Thanks Corion

    I see roughly what you mean.
    About your first solution, how do I give the value :
    $ENV{MOZREPL_TIMEOUT} = 60; # ?

    About the second, is it normal to repeat 'repl->' in the command ?
    What is the default setting for timeout ?
    For the latter, what do you mean by 'an ad blocker'?

    cf006
      $ENV{MOZREPL_TIMEOUT}= 60;

      is plain Perl code. Maybe it is time to acquaint yourself with special Perl variables as described in perlvar?

      I also did try my suggestion before posting it, so the repetition of ->repl->repl-> is correct. If you doubt my advice, maybe you want to verify it yourself?

      The timeout default setting is set by MozRepl. I suggest you consult its documentation or source code to find more details.

      If you are unclear about a concept or term, like "ad blocker", maybe using a web resource like Wikipedia or Google helps - Ad filtering is the term Wikipedia suggests to me, and ad blocker will likely also return relevant search terms.