How to copy the download url to clipboard in firefox?












6















When I click a download button, I get a popup-dialog like this:



enter image description here



If the file is large, I want to download it by wget -c URL.

Right-clicking download button to select Copy Link Location doesn't work.

How to copy the download link to clipboard?










share|improve this question























  • Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

    – Paul
    May 21 '12 at 5:18
















6















When I click a download button, I get a popup-dialog like this:



enter image description here



If the file is large, I want to download it by wget -c URL.

Right-clicking download button to select Copy Link Location doesn't work.

How to copy the download link to clipboard?










share|improve this question























  • Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

    – Paul
    May 21 '12 at 5:18














6












6








6


1






When I click a download button, I get a popup-dialog like this:



enter image description here



If the file is large, I want to download it by wget -c URL.

Right-clicking download button to select Copy Link Location doesn't work.

How to copy the download link to clipboard?










share|improve this question














When I click a download button, I get a popup-dialog like this:



enter image description here



If the file is large, I want to download it by wget -c URL.

Right-clicking download button to select Copy Link Location doesn't work.

How to copy the download link to clipboard?







firefox download download-manager






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 21 '12 at 4:55









kevkev

7,37964260




7,37964260













  • Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

    – Paul
    May 21 '12 at 5:18



















  • Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

    – Paul
    May 21 '12 at 5:18

















Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

– Paul
May 21 '12 at 5:18





Good question. In many cases, you can cancel the download and you'll be at "if you have trouble with the download, use this direct link". Then you can copy the link and use it for wget. In many cases this is not an option. Lets see.

– Paul
May 21 '12 at 5:18










3 Answers
3






active

oldest

votes


















5














It depends on how the download is set up.



With certain downloads, the download is initiated with a form GET/POST. So if you look at the final download button's form action, you'll see the download URL.



In other cases, the download is initiated by a redirect (e.g. a PRG or a JavaScript redirect that receives the download URL via an XHR request), in which case, you can use Firefox's Tamper Data add-on to find the download URL in the HTTP traffic, or you can just right-click on the download in Firefox's download manager and Copy Download Link.



But there are some sites that use a single-use URL, or a cookie containing a single-use token, that prevent multiple download attempts, so capturing the download URL via the HTTP request is useless. In such cases, you need to look at the page source to see where you can capture the download URL before the download is initiated. Often, you can find the download URL and/or security token in the page's JS. Otherwise, it's typically found in the response from an AJAX service that the JS requests. Or, you may have to analyze the JS source and watch specific variables to capture all the download request components without actually triggering the download.






share|improve this answer































    3














    You can install Firefox's FlashGot addon. It will add extra option to this popup-dialog. And you even can customize it - go to FlashGot Options dialog and press "Add" button to add custom "Download Manager", which actually can be any script file to do whatever you want.



    Examples:



    Windows: select bat-file with single-line command echo %1|clip in it to copy download url to clipboard.



    GNU/Linux: this script would do the trick:



    #!/bin/bash
    echo "$@" | xclip -selection clipboard





    share|improve this answer


























    • Not compatible with Firefox Quantum :/

      – AXO
      Sep 15 '18 at 3:28



















    0














    The "Download Dialog Tweak" firefox addon does the job and if it's not in AMO anymore, it can be found here : https://github.com/muzuiget/download_dialog_tweak/releases






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f426877%2fhow-to-copy-the-download-url-to-clipboard-in-firefox%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      It depends on how the download is set up.



      With certain downloads, the download is initiated with a form GET/POST. So if you look at the final download button's form action, you'll see the download URL.



      In other cases, the download is initiated by a redirect (e.g. a PRG or a JavaScript redirect that receives the download URL via an XHR request), in which case, you can use Firefox's Tamper Data add-on to find the download URL in the HTTP traffic, or you can just right-click on the download in Firefox's download manager and Copy Download Link.



      But there are some sites that use a single-use URL, or a cookie containing a single-use token, that prevent multiple download attempts, so capturing the download URL via the HTTP request is useless. In such cases, you need to look at the page source to see where you can capture the download URL before the download is initiated. Often, you can find the download URL and/or security token in the page's JS. Otherwise, it's typically found in the response from an AJAX service that the JS requests. Or, you may have to analyze the JS source and watch specific variables to capture all the download request components without actually triggering the download.






      share|improve this answer




























        5














        It depends on how the download is set up.



        With certain downloads, the download is initiated with a form GET/POST. So if you look at the final download button's form action, you'll see the download URL.



        In other cases, the download is initiated by a redirect (e.g. a PRG or a JavaScript redirect that receives the download URL via an XHR request), in which case, you can use Firefox's Tamper Data add-on to find the download URL in the HTTP traffic, or you can just right-click on the download in Firefox's download manager and Copy Download Link.



        But there are some sites that use a single-use URL, or a cookie containing a single-use token, that prevent multiple download attempts, so capturing the download URL via the HTTP request is useless. In such cases, you need to look at the page source to see where you can capture the download URL before the download is initiated. Often, you can find the download URL and/or security token in the page's JS. Otherwise, it's typically found in the response from an AJAX service that the JS requests. Or, you may have to analyze the JS source and watch specific variables to capture all the download request components without actually triggering the download.






        share|improve this answer


























          5












          5








          5







          It depends on how the download is set up.



          With certain downloads, the download is initiated with a form GET/POST. So if you look at the final download button's form action, you'll see the download URL.



          In other cases, the download is initiated by a redirect (e.g. a PRG or a JavaScript redirect that receives the download URL via an XHR request), in which case, you can use Firefox's Tamper Data add-on to find the download URL in the HTTP traffic, or you can just right-click on the download in Firefox's download manager and Copy Download Link.



          But there are some sites that use a single-use URL, or a cookie containing a single-use token, that prevent multiple download attempts, so capturing the download URL via the HTTP request is useless. In such cases, you need to look at the page source to see where you can capture the download URL before the download is initiated. Often, you can find the download URL and/or security token in the page's JS. Otherwise, it's typically found in the response from an AJAX service that the JS requests. Or, you may have to analyze the JS source and watch specific variables to capture all the download request components without actually triggering the download.






          share|improve this answer













          It depends on how the download is set up.



          With certain downloads, the download is initiated with a form GET/POST. So if you look at the final download button's form action, you'll see the download URL.



          In other cases, the download is initiated by a redirect (e.g. a PRG or a JavaScript redirect that receives the download URL via an XHR request), in which case, you can use Firefox's Tamper Data add-on to find the download URL in the HTTP traffic, or you can just right-click on the download in Firefox's download manager and Copy Download Link.



          But there are some sites that use a single-use URL, or a cookie containing a single-use token, that prevent multiple download attempts, so capturing the download URL via the HTTP request is useless. In such cases, you need to look at the page source to see where you can capture the download URL before the download is initiated. Often, you can find the download URL and/or security token in the page's JS. Otherwise, it's typically found in the response from an AJAX service that the JS requests. Or, you may have to analyze the JS source and watch specific variables to capture all the download request components without actually triggering the download.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 21 '12 at 6:12









          Lèse majestéLèse majesté

          3,02911423




          3,02911423

























              3














              You can install Firefox's FlashGot addon. It will add extra option to this popup-dialog. And you even can customize it - go to FlashGot Options dialog and press "Add" button to add custom "Download Manager", which actually can be any script file to do whatever you want.



              Examples:



              Windows: select bat-file with single-line command echo %1|clip in it to copy download url to clipboard.



              GNU/Linux: this script would do the trick:



              #!/bin/bash
              echo "$@" | xclip -selection clipboard





              share|improve this answer


























              • Not compatible with Firefox Quantum :/

                – AXO
                Sep 15 '18 at 3:28
















              3














              You can install Firefox's FlashGot addon. It will add extra option to this popup-dialog. And you even can customize it - go to FlashGot Options dialog and press "Add" button to add custom "Download Manager", which actually can be any script file to do whatever you want.



              Examples:



              Windows: select bat-file with single-line command echo %1|clip in it to copy download url to clipboard.



              GNU/Linux: this script would do the trick:



              #!/bin/bash
              echo "$@" | xclip -selection clipboard





              share|improve this answer


























              • Not compatible with Firefox Quantum :/

                – AXO
                Sep 15 '18 at 3:28














              3












              3








              3







              You can install Firefox's FlashGot addon. It will add extra option to this popup-dialog. And you even can customize it - go to FlashGot Options dialog and press "Add" button to add custom "Download Manager", which actually can be any script file to do whatever you want.



              Examples:



              Windows: select bat-file with single-line command echo %1|clip in it to copy download url to clipboard.



              GNU/Linux: this script would do the trick:



              #!/bin/bash
              echo "$@" | xclip -selection clipboard





              share|improve this answer















              You can install Firefox's FlashGot addon. It will add extra option to this popup-dialog. And you even can customize it - go to FlashGot Options dialog and press "Add" button to add custom "Download Manager", which actually can be any script file to do whatever you want.



              Examples:



              Windows: select bat-file with single-line command echo %1|clip in it to copy download url to clipboard.



              GNU/Linux: this script would do the trick:



              #!/bin/bash
              echo "$@" | xclip -selection clipboard






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Oct 11 '18 at 21:32









              sphakka

              374




              374










              answered Jul 2 '15 at 21:07









              tavtav

              1311




              1311













              • Not compatible with Firefox Quantum :/

                – AXO
                Sep 15 '18 at 3:28



















              • Not compatible with Firefox Quantum :/

                – AXO
                Sep 15 '18 at 3:28

















              Not compatible with Firefox Quantum :/

              – AXO
              Sep 15 '18 at 3:28





              Not compatible with Firefox Quantum :/

              – AXO
              Sep 15 '18 at 3:28











              0














              The "Download Dialog Tweak" firefox addon does the job and if it's not in AMO anymore, it can be found here : https://github.com/muzuiget/download_dialog_tweak/releases






              share|improve this answer




























                0














                The "Download Dialog Tweak" firefox addon does the job and if it's not in AMO anymore, it can be found here : https://github.com/muzuiget/download_dialog_tweak/releases






                share|improve this answer


























                  0












                  0








                  0







                  The "Download Dialog Tweak" firefox addon does the job and if it's not in AMO anymore, it can be found here : https://github.com/muzuiget/download_dialog_tweak/releases






                  share|improve this answer













                  The "Download Dialog Tweak" firefox addon does the job and if it's not in AMO anymore, it can be found here : https://github.com/muzuiget/download_dialog_tweak/releases







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 8 at 0:00









                  SebMaSebMa

                  346312




                  346312






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f426877%2fhow-to-copy-the-download-url-to-clipboard-in-firefox%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Сан-Квентин

                      Алькесар

                      Josef Freinademetz