K-Meleon

KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Download List Generator

Submitted by: Johnny Sim-Bravenboer

internal://097e051215bf6cbc5560a8cbaf4c218b.jpeg



Notes:

Updated the macro to work with K-Meleon version 1.02!!

Download List Generator is a K-Meleon addon-program that can create an incremental download list and save this list to a file. The created download list file then can be imported into most popular download managers.

The program is useful when wanting to download a large number of files from a website but not all links to the files are being displayed on the website, instead only the first and last link are being displayed. This program will create the missing links for you.

Since the program can also be used from the command line, it is possible so "send" an URL to the program from K-Meleon.

You can download the Download List Generator (Windows 2K/XP .NET v1.1) here.

You can download the Download List Generator (Windows 9x) here.

Special note on program versions:

Please note that the Win 9x version will run in all versions of Windows.
(The one for Win 2K/XP just looks a little nicer)

Special note for downloading any of these programs:

Changed host for the files, also download managers are now supported :-)

Updates:

09-27-05 DLG v1.4.0.1:

  • Updated the help file.


In Macros:

# Send URL to Download List Generator

send_URL_to_dlg{
    menu = "Send URL to Download List Generator";
    exec("C:\\Program Files\\DownListGenerator\\DownListGenerator.exe ".$LinkURL);
}


# Send Selected Text to Download List Generator

send_selected_to_dlg{
    menu = "Send to Download List Generator"
    exec("C:\\Program Files\\DownListGenerator\\DownListGenerator.exe ".$SelectedText);
}


# Send Page URL to Download List Generator

URLInDLG{
    menu = "Send Page URL to Download List Generator"
    $oldclip=getclipboard(); setclipboard(); 
    id(ID_SELECT_URL); id(ID_EDIT_COPY); $theurl=getclipboard();
    $theurl==""? $theurl=$URL:""; 
    &ResetURL; setclipboard($oldclip);
    exec("C:\\Program Files\\DownListGenerator\\DownListGenerator.exe ".$theurl);
}


# Send Image URL to Download List Generator

ImageURLInDLG{
    menu = "Send Image URL to Download List Generator"
    $old=getclipboard(); 
    exec("C:\\Program Files\\DownListGenerator\\DownListGenerator.exe ".$IMAGEURL);
    &ResetURL; setclipboard($old);
}


In Menus:

Link{
    %ifplugin layers
    layers(OpenLink,Open In Ne&w Layer)
    layers(OpenLinkBg,Open In Bac&kground Layer)
    -
    %endif
    Open In &New Window=ID_OPEN_LINK_IN_NEW_WINDOW
    Open In Back&ground Window=ID_OPEN_LINK_IN_BACKGROUND
    -
    bookmarks(AddLink,Add Link To &Bookmarks)
    favorites(AddLink,Add Link To Fa&vorites)
    hotlist(AddLink,Add Link To H&otlist)
    &Save Link Target As...=ID_SAVE_LINK_AS
    %ifplugin macros
    :Op&en Link Target With
    macros(send_URL_to_dlg)
    %endif
    -
    LinkSelection
    -
    macros(LinkInfo,Link &Properties)
}

Selected Te&xt{
    :&Translate From
    -
    macros(OpenText,&Open As URL)
    macros(send_selected_to_dlg)
    macros(EmailText,Sen&d By Mail...)
    -
    !Engines
}

I&mage{
    &View Image=ID_VIEW_IMAGE
    macros(ZoomInImage,Zoom I&n)
    macros(ZoomOutImage,Zoom Ou&t)
    -
    &Save Image As...=ID_SAVE_IMAGE_AS
    macros(EmailImageURL,Sen&d Image As Link...)
    -
    C&opy Image=ID_COPY_IMAGE_CONTENT
    &Copy Image URL=ID_COPY_IMAGE_LOCATION
    %ifplugin macros
    macros(ImageURLInDLG)
    -
    macros(ImageInfo,Image &Properties)
    macros(ImageCache,Cache &Information)
    %endif
} Page &Properties{ macros(ListLinks,Li&nks) macros(ListLinkedImages,Link&ed Images) macros(ListImages,Im&ages) macros(URLInDLG) So&urce Code\tCtrl+U=ID_VIEW_SOURCE Cache &Information\tCtrl+I=ID_VIEW_PAGE_INFO }


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.