• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Sort Bookmarks by date on OperaGX?

    Opera GX
    1
    1
    298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lonewolfcode
      Lonewolfcode last edited by

      Sort Bookmarks by date on OperaGX?

      Is this possible? I currently append the following script to the end of the exported bookmark html file, but this should be a feature...

      <h1>Sorted</h1>
      <div class="right3"></div>
      <p>
      <script>
          let addDate = document.querySelectorAll('[ADD_DATE]')
          Array.from(addDate).sort((a,b)=>{       
              a = new Date(parseInt(a.attributes.add_date.nodeValue)).valueOf()
              b = new Date(parseInt(b.attributes.add_date.nodeValue)).valueOf()
              return a-b;
          }).forEach(el => {
              document.querySelector('.right3').appendChild(el)
          })
      </script>
      <style>
          a{
            	display: block;
              margin-top: 1em;
              margin-bottom: 1em;
              margin-left: 0;
              margin-right: 0;
          }
      </style>
      
      Reply Quote 0
        1 Reply Last reply
      • Locked by  leocg leocg 
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-