Results 1 to 4 of 4

Thread: How to Bypass Java Script

  1. #1
    Join Date
    Nov 2005
    Posts
    403

    How to Bypass Java Script

    I have great difficulty accessing certain web pages to my work.
    As we are limited with Internet Explorer, with colleagues, use Firefox portable version.
    The problem is that my colleagues work on the internet which is quite impressive! I could see that on most websites, JavaScript is making slow connection (eg pages without animations displayed without problems, others such as Hotmail bring at least 2 minutes to display)!
    How to solve this problem?
    Thank you in advance.
    Don't talk unless you can improve the silence.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599

    Re: How to Bypass Java Script

    if what you mean by bypass is ignore, this is how you would do it.
    Code:
    <script language="javascript" type="text/javascript">
    
    /* if (top.location != location)
    top.location.href = document.location.href; */
    
    </script><script language="javascript" type="text/javascript">
    
    /* if (top.location != location)
    top.location.href = document.location.href; */
    
    </script>
    Or Go into your browser settings and disable JavaScript.

    Or copy the html file and edit out the code in the copy.

  3. #3
    Join Date
    Dec 2007
    Posts
    1,547

    Re: How to Bypass Java Script

    If you have worked with AJAX at all, you know that there is this thing called the Same-Origin policy which makes it nearly impossible to send AJAX requests to 3rd party domains. There are workarounds such as going through a proxy. However, sometimes it’s the only way to go about getting the job done.

    If you have control over both domains, then this may be the ideal solution for you. For example, lets say you have two sites and you need to share data between the sites. Connecting via MySQL could be out of the question. So what do you do now? Create a dynamic javascript include file.

    Code:
    <?php
    //some database stuff here
    echo "myVar = ['info1','info2','info3'];";
    ?>
    See how that outputs a Javascript array? It will come in handy next.

    Code:
    <script src="domain2.com/dynamicscript.php" type="text/javascript"></script>
    <script type="text/javascript">
    for(i=1;i<myVar.length;i++)
    {
        document.write("<p>"+myVar[i]+"</p>");
    }
    </script>
    By including the dynamic.php file as if it were a javascript file, you have imported the data from the other domain without having to use ajax. You can use this to pass any amount of javascript you need. I’m sure if you’re clever you will figure out how to make this into a “mock AJAX” system.

  4. #4
    Join Date
    Sep 2005
    Posts
    1,476

    Re: How to Bypass Java Script

    If you are a regular web surfer you must have encountered annoying webpages disabling right-click menu, moving and resizing windows, hiding status bar and having all sorts of fancy scrolling status bar texts, However, Firefox provides users an easy way to stop these common javascript annoyances.


    Just Follow the simple steps below to enhance you web-browsing experience:

    • In Firefox, Goto Tools -> Options.
    • Click Advanced button right next to the Enable Javascript chekbox (See image below).
    • Uncheck all options as shown below.




    • Click OK to exit.

Similar Threads

  1. How to bypass the open file security warning in vb script
    By Quasim in forum Software Development
    Replies: 5
    Last Post: 05-07-2011, 07:27 PM
  2. Is there any future for java script?
    By Gag$nesh in forum Software Development
    Replies: 4
    Last Post: 28-05-2011, 07:58 PM
  3. Executing java program via a script
    By Jensen Ackles in forum Software Development
    Replies: 5
    Last Post: 29-03-2010, 12:47 PM
  4. Impement Anti-Adblock script (AAS) or ad blocker bypass
    By io78 in forum Software Development
    Replies: 3
    Last Post: 07-11-2009, 08:26 PM
  5. can someone look at this script? JAVA
    By Daren in forum Software Development
    Replies: 2
    Last Post: 07-03-2009, 08:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,236,713.44427 seconds with 16 queries