how to reverse the sort order of tabs in firefox?












2














I need to print (to PDF) a large number (about 80) of tabs all at once, but in a specific order. The problem is that the tabs all got opened in the reverse order of what I want. Dragging them around one at a time is just too painful to contemplate, so I'm looking for a way to just reverse the order of all currently opened tabs. I have them already saved to their own folder so I can easily reopen them, but need to reverse their ordering.



I found some old and outdated plugins that claimed to allow for this years ago, but nothing that looked like it would work in FireFox today. Any suggestions on where to look?










share|improve this question





























    2














    I need to print (to PDF) a large number (about 80) of tabs all at once, but in a specific order. The problem is that the tabs all got opened in the reverse order of what I want. Dragging them around one at a time is just too painful to contemplate, so I'm looking for a way to just reverse the order of all currently opened tabs. I have them already saved to their own folder so I can easily reopen them, but need to reverse their ordering.



    I found some old and outdated plugins that claimed to allow for this years ago, but nothing that looked like it would work in FireFox today. Any suggestions on where to look?










    share|improve this question



























      2












      2








      2


      1





      I need to print (to PDF) a large number (about 80) of tabs all at once, but in a specific order. The problem is that the tabs all got opened in the reverse order of what I want. Dragging them around one at a time is just too painful to contemplate, so I'm looking for a way to just reverse the order of all currently opened tabs. I have them already saved to their own folder so I can easily reopen them, but need to reverse their ordering.



      I found some old and outdated plugins that claimed to allow for this years ago, but nothing that looked like it would work in FireFox today. Any suggestions on where to look?










      share|improve this question















      I need to print (to PDF) a large number (about 80) of tabs all at once, but in a specific order. The problem is that the tabs all got opened in the reverse order of what I want. Dragging them around one at a time is just too painful to contemplate, so I'm looking for a way to just reverse the order of all currently opened tabs. I have them already saved to their own folder so I can easily reopen them, but need to reverse their ordering.



      I found some old and outdated plugins that claimed to allow for this years ago, but nothing that looked like it would work in FireFox today. Any suggestions on where to look?







      firefox sorting browser-tabs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 18 '16 at 21:16









      Hennes

      58.8k792141




      58.8k792141










      asked Mar 8 '14 at 23:36









      Jonathan van Clute

      212416




      212416






















          3 Answers
          3






          active

          oldest

          votes


















          3














          Here is one way to reverse the sort order of Firefox tabs:




          1. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home

          2. Copy the resulting string and paste it in new file, say, tabs.txt


          3. Insert newline at the end of tabs.txt



            $ echo >> tabs.txt



          4. Reverse the URLs order



            $ cat tabs.txt | tr '|' 'n' | tac | tr 'n' '|' > final.txt


          5. Copy the contents of final.txt and paste it in Custom URLs field in Preferences > Home


          6. Close all the currently opened tabs


          7. In a new fresh tab click on Home button and you're done!







          share|improve this answer

















          • 1




            That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
            – Jonathan van Clute
            Aug 21 at 2:29



















          1














          Maybe bookmarking all the tabs, and then reordering them in the bookmark folder. They should open in the order they are in the bookmark folder.






          share|improve this answer





















          • yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
            – Jonathan van Clute
            Mar 9 '14 at 0:15










          • I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
            – sww1235
            Mar 9 '14 at 0:22










          • Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
            – Jonathan van Clute
            Mar 9 '14 at 0:31



















          0














          Based on @rootkea answer above, but slightly different. His answer won't work in windows since windows doesn't have cat command (I cannot write a comment so I chose write a complete answer). Reversing those urls can be done inside a browser with javascript.




          1. Go to FF console: press Ctrl + Shift + K or use context menu -> Inspect Element and select tab Console.


          2. Paste this code there and press enter (don't close console for now)



            let ta = document.body.appendChild(document.createElement('textarea'));



            Textarea appears stretched 100% horizontally at the bottom of the current page (if you do it right on this superuser's page). Textarea is needed for convenient work with special characters in a string with urls.



            It is possible to add some styling if you don't see the element. Enter this code to console



            ta.style.border = '4px solid red';



          3. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home


          4. Copy the resulting string and paste it to textarea element, created before


          5. Paste this code to console and press enter



            ta.value = ta.value.split('|').reverse().join('|');



          6. Copy new string from textarea and paste it in Custom URLs field in Preferences > Home


          7. Close all the currently opened tabs


          8. In a new fresh tab click on Home button and you're done!







          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%2f726498%2fhow-to-reverse-the-sort-order-of-tabs-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









            3














            Here is one way to reverse the sort order of Firefox tabs:




            1. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home

            2. Copy the resulting string and paste it in new file, say, tabs.txt


            3. Insert newline at the end of tabs.txt



              $ echo >> tabs.txt



            4. Reverse the URLs order



              $ cat tabs.txt | tr '|' 'n' | tac | tr 'n' '|' > final.txt


            5. Copy the contents of final.txt and paste it in Custom URLs field in Preferences > Home


            6. Close all the currently opened tabs


            7. In a new fresh tab click on Home button and you're done!







            share|improve this answer

















            • 1




              That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
              – Jonathan van Clute
              Aug 21 at 2:29
















            3














            Here is one way to reverse the sort order of Firefox tabs:




            1. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home

            2. Copy the resulting string and paste it in new file, say, tabs.txt


            3. Insert newline at the end of tabs.txt



              $ echo >> tabs.txt



            4. Reverse the URLs order



              $ cat tabs.txt | tr '|' 'n' | tac | tr 'n' '|' > final.txt


            5. Copy the contents of final.txt and paste it in Custom URLs field in Preferences > Home


            6. Close all the currently opened tabs


            7. In a new fresh tab click on Home button and you're done!







            share|improve this answer

















            • 1




              That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
              – Jonathan van Clute
              Aug 21 at 2:29














            3












            3








            3






            Here is one way to reverse the sort order of Firefox tabs:




            1. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home

            2. Copy the resulting string and paste it in new file, say, tabs.txt


            3. Insert newline at the end of tabs.txt



              $ echo >> tabs.txt



            4. Reverse the URLs order



              $ cat tabs.txt | tr '|' 'n' | tac | tr 'n' '|' > final.txt


            5. Copy the contents of final.txt and paste it in Custom URLs field in Preferences > Home


            6. Close all the currently opened tabs


            7. In a new fresh tab click on Home button and you're done!







            share|improve this answer












            Here is one way to reverse the sort order of Firefox tabs:




            1. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home

            2. Copy the resulting string and paste it in new file, say, tabs.txt


            3. Insert newline at the end of tabs.txt



              $ echo >> tabs.txt



            4. Reverse the URLs order



              $ cat tabs.txt | tr '|' 'n' | tac | tr 'n' '|' > final.txt


            5. Copy the contents of final.txt and paste it in Custom URLs field in Preferences > Home


            6. Close all the currently opened tabs


            7. In a new fresh tab click on Home button and you're done!








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 20 at 20:31









            rootkea

            1316




            1316








            • 1




              That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
              – Jonathan van Clute
              Aug 21 at 2:29














            • 1




              That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
              – Jonathan van Clute
              Aug 21 at 2:29








            1




            1




            That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
            – Jonathan van Clute
            Aug 21 at 2:29




            That’s a pretty clever and interesting solution… To be honest I moved on from this along time ago, and I don’t even remember what my eventual solution to what I needed became. But this seems like it probably would have done the job, although I’m not much for text manipulation from the command line personally. If I ever find myself needing to do this again, I will definitely have to try this out.
            – Jonathan van Clute
            Aug 21 at 2:29













            1














            Maybe bookmarking all the tabs, and then reordering them in the bookmark folder. They should open in the order they are in the bookmark folder.






            share|improve this answer





















            • yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
              – Jonathan van Clute
              Mar 9 '14 at 0:15










            • I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
              – sww1235
              Mar 9 '14 at 0:22










            • Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
              – Jonathan van Clute
              Mar 9 '14 at 0:31
















            1














            Maybe bookmarking all the tabs, and then reordering them in the bookmark folder. They should open in the order they are in the bookmark folder.






            share|improve this answer





















            • yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
              – Jonathan van Clute
              Mar 9 '14 at 0:15










            • I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
              – sww1235
              Mar 9 '14 at 0:22










            • Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
              – Jonathan van Clute
              Mar 9 '14 at 0:31














            1












            1








            1






            Maybe bookmarking all the tabs, and then reordering them in the bookmark folder. They should open in the order they are in the bookmark folder.






            share|improve this answer












            Maybe bookmarking all the tabs, and then reordering them in the bookmark folder. They should open in the order they are in the bookmark folder.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 9 '14 at 0:09









            sww1235

            888




            888












            • yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
              – Jonathan van Clute
              Mar 9 '14 at 0:15










            • I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
              – sww1235
              Mar 9 '14 at 0:22










            • Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
              – Jonathan van Clute
              Mar 9 '14 at 0:31


















            • yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
              – Jonathan van Clute
              Mar 9 '14 at 0:15










            • I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
              – sww1235
              Mar 9 '14 at 0:22










            • Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
              – Jonathan van Clute
              Mar 9 '14 at 0:31
















            yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
            – Jonathan van Clute
            Mar 9 '14 at 0:15




            yeah the problem is there is no "reverse order" for bookmarks either. It's looking more and more like the only viable option is a manual reorder. =(
            – Jonathan van Clute
            Mar 9 '14 at 0:15












            I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
            – sww1235
            Mar 9 '14 at 0:22




            I was thinking it would easier to manually manipulate them in teh bookmark folder than as tabs
            – sww1235
            Mar 9 '14 at 0:22












            Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
            – Jonathan van Clute
            Mar 9 '14 at 0:31




            Interestingly, I've found the opposite to be true, since I don't seem able to drag & drop bookmarks to change their order, but I can drag tabs around as needed. The closest to a solution I've come so far is: 1) Go into the bookmark editing window and under the Sort menu, is Sort By Added... select that 2) Now that I'm close to the correct order, go and rearrange the tabs manually in the browser window, and 3) save all bookmarks to a new folder in case something happens and I lose the window. Quite manual but, it's working.
            – Jonathan van Clute
            Mar 9 '14 at 0:31











            0














            Based on @rootkea answer above, but slightly different. His answer won't work in windows since windows doesn't have cat command (I cannot write a comment so I chose write a complete answer). Reversing those urls can be done inside a browser with javascript.




            1. Go to FF console: press Ctrl + Shift + K or use context menu -> Inspect Element and select tab Console.


            2. Paste this code there and press enter (don't close console for now)



              let ta = document.body.appendChild(document.createElement('textarea'));



              Textarea appears stretched 100% horizontally at the bottom of the current page (if you do it right on this superuser's page). Textarea is needed for convenient work with special characters in a string with urls.



              It is possible to add some styling if you don't see the element. Enter this code to console



              ta.style.border = '4px solid red';



            3. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home


            4. Copy the resulting string and paste it to textarea element, created before


            5. Paste this code to console and press enter



              ta.value = ta.value.split('|').reverse().join('|');



            6. Copy new string from textarea and paste it in Custom URLs field in Preferences > Home


            7. Close all the currently opened tabs


            8. In a new fresh tab click on Home button and you're done!







            share|improve this answer


























              0














              Based on @rootkea answer above, but slightly different. His answer won't work in windows since windows doesn't have cat command (I cannot write a comment so I chose write a complete answer). Reversing those urls can be done inside a browser with javascript.




              1. Go to FF console: press Ctrl + Shift + K or use context menu -> Inspect Element and select tab Console.


              2. Paste this code there and press enter (don't close console for now)



                let ta = document.body.appendChild(document.createElement('textarea'));



                Textarea appears stretched 100% horizontally at the bottom of the current page (if you do it right on this superuser's page). Textarea is needed for convenient work with special characters in a string with urls.



                It is possible to add some styling if you don't see the element. Enter this code to console



                ta.style.border = '4px solid red';



              3. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home


              4. Copy the resulting string and paste it to textarea element, created before


              5. Paste this code to console and press enter



                ta.value = ta.value.split('|').reverse().join('|');



              6. Copy new string from textarea and paste it in Custom URLs field in Preferences > Home


              7. Close all the currently opened tabs


              8. In a new fresh tab click on Home button and you're done!







              share|improve this answer
























                0












                0








                0






                Based on @rootkea answer above, but slightly different. His answer won't work in windows since windows doesn't have cat command (I cannot write a comment so I chose write a complete answer). Reversing those urls can be done inside a browser with javascript.




                1. Go to FF console: press Ctrl + Shift + K or use context menu -> Inspect Element and select tab Console.


                2. Paste this code there and press enter (don't close console for now)



                  let ta = document.body.appendChild(document.createElement('textarea'));



                  Textarea appears stretched 100% horizontally at the bottom of the current page (if you do it right on this superuser's page). Textarea is needed for convenient work with special characters in a string with urls.



                  It is possible to add some styling if you don't see the element. Enter this code to console



                  ta.style.border = '4px solid red';



                3. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home


                4. Copy the resulting string and paste it to textarea element, created before


                5. Paste this code to console and press enter



                  ta.value = ta.value.split('|').reverse().join('|');



                6. Copy new string from textarea and paste it in Custom URLs field in Preferences > Home


                7. Close all the currently opened tabs


                8. In a new fresh tab click on Home button and you're done!







                share|improve this answer












                Based on @rootkea answer above, but slightly different. His answer won't work in windows since windows doesn't have cat command (I cannot write a comment so I chose write a complete answer). Reversing those urls can be done inside a browser with javascript.




                1. Go to FF console: press Ctrl + Shift + K or use context menu -> Inspect Element and select tab Console.


                2. Paste this code there and press enter (don't close console for now)



                  let ta = document.body.appendChild(document.createElement('textarea'));



                  Textarea appears stretched 100% horizontally at the bottom of the current page (if you do it right on this superuser's page). Textarea is needed for convenient work with special characters in a string with urls.



                  It is possible to add some styling if you don't see the element. Enter this code to console



                  ta.style.border = '4px solid red';



                3. Set Firefox's homepage to currently opened tabs by selecting Use Current Pages in Preferences > Home


                4. Copy the resulting string and paste it to textarea element, created before


                5. Paste this code to console and press enter



                  ta.value = ta.value.split('|').reverse().join('|');



                6. Copy new string from textarea and paste it in Custom URLs field in Preferences > Home


                7. Close all the currently opened tabs


                8. In a new fresh tab click on Home button and you're done!








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 16 at 7:50









                Timur

                11




                11






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f726498%2fhow-to-reverse-the-sort-order-of-tabs-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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix