Menu

Javascript

Help
2006-10-02
2013-04-08
  • Nobody/Anonymous

    Javascript doesn't seem to work.

     
    • edman007

      edman007 - 2006-10-02

      by default javascript is completely disabled, this is because many sites use javascript to generate URLs that this script cannot parse and make them point to the correct place, i have found the results are somewhat better when javascript is disabled because it will force a site to believe that you have javascript disabled and hopefully generate HTML that is more friendly to the web-mirror script

      of course there are always those sites that just don't work without javascript, if you would like to try out javascript you can, just comment out these two lines

      $remove_tags['script'] = 0;//can remove javascript that does not work correct with this script
      $remove_tags['noscript'] = -1;//enables the text in the noscript

      thy should look like this

      //$remove_tags['script'] = 0;//can remove javascript that does not work correct with this script
      //$remove_tags['noscript'] = -1;//enables the text in the noscript

      but be warned, it will most likely break more compatibility then it fixes

       
    • Nobody/Anonymous

      Hey, thanks.  I'll try that.

      Also, I try to access some virtual realms with this script, and it doesn't work to well.

      Do you know why that would be happening?

      -Greg

       
      • edman007

        edman007 - 2006-10-02

        well i'm not too sure what you mean by that, you mean like the stuff thats password protected through HTTP? if so i will look into that and try and get it into the next release, i have a few site that i'm trying to make more compatible right now, but its a little tough to find time when your taking 18 credits and work 30 hours a week :\

        so i will attempt to get this working ASAP, but i'm very short on time so it may take a while

         
    • Nobody/Anonymous

      Haha, I know exactally what your talking about!  I'd use my PHP skills to help, but I'm in college as well and working on another site.

      Also, concerning the javascript issue.  For the future release check all the link tags for "javascript:whatever".  I think it could be done with a simple strinstr or strpos, but I havn't looked at your code enough to actually know if that would work or not :)

      -- Greg

       
    • edman007

      edman007 - 2006-10-03

      ah, i will try and check for the javascript:whatever in there, most of the actual work is done in regex so it should be fairly simple to modify that funconality, or i may decide to just make a modification of the function that works on the url and return something interisting instead

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.