Results 1 to 3 of 3
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Extract Links from Current Page (Fx1.5)

    <P ID="edit" class=small>(Edited by jscher2000 on 06-Apr-06 14:55. Changed to ZIP attachment.)</P>This is a revised version of a bookmarklet posted on the Mozillazine Forums. It creates a new document that contains the <a> type links from the current page. It improves on the Page Info>Links tab (from which you can copy the URLs) by including the descriptive text and a clickable link that can be directly saved as an HTML document.

    Curiously, it doesn't seem to work correctly in IE6 for Windows XP SP2. The links window remains blank, but if you View>Source, the HTML is there. I don't understand this, but... I've given up on it. For now, it will be our little secret on this board. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    To install:
    1. <LI>Bookmarks > Manaage Bookmarks
      <LI>Click where you want the new bookmark
      <LI>File>New bookmark or use the New bookmark button
      <LI>Give it any name you like, such as Grab Links
      <LI>Paste the contents of the attached .txt file into the Location line. If you use Notepad, turn off Word Wrap to make sure you get the entire line pasted.
      <LI>Click OK, return to a web page, and test it out.
    Please let me know if it throws any script errors or otherwise malfunctions..
    Attached Files Attached Files

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Extract Links from Current Page (Fx1.5)

    The attached file contains the original version, plus two that are a bit more complicated and slower to run on pages with a lot of links. But the results are cooler. <img src=/S/cool.gif border=0 alt=cool width=15 height=15>
    Attached Files Attached Files

  3. #3
    Bronze Lounger
    Join Date
    Feb 2001
    Posts
    1,424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Extract Links from Current Page (Fx1.5)

    I gave the first code in <post:=569,138>post 569,138</post:> a try and had good results with it. I first had to allow Firefox to show Popups but after I did that and clicked "Grab" again, it opened a second tab with all the links from the page that I had opened for the experiment. No problems! I'm not sure what I will use this for but it is an interesting thing to be able to do! <img src=/S/yep.gif border=0 alt=yep width=15 height=15> Now to experiment with the next set of scripts you have written............ <img src=/S/grin.gif border=0 alt=grin width=15 height=15>


    "Peace begins with a smile. "-- Mother Teresa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •