shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo
https://shaarli.readthedocs.io/
Other
3.36k stars 290 forks source link

I made a very simple "open all links in tabs" button, would it be interesting as a pull request or should it be a plugin? #1821

Open RemyFV opened 2 years ago

RemyFV commented 2 years ago
<script type="text/javascript">
            function openAllLinks() {
                var allLinks = document.querySelectorAll("div.link-outer a.link-title");
                for(var i=0;i<allLinks.length;i++)
                {
                    var currentLink = allLinks[i];
                    window.open(currentLink.href);
                };
            }
        </script>
<a class="button-floating ripple" onclick="openAllLinks()" style="bottom:15% !important">
            <i class="icon-new-window mdi mdi-tag-multiple"></i>
 </a>

I duplicated the "add new shaare" button for this, it seemed the best way to do it UX-wise.

I use it for opening daily tagged bookmarks quickly instead of having to click on each one, I know the code is ugly but it works (as long as you give the site permission to open multiple links).

would it be interesting as a pull request or should it be a plugin?

nodiscc commented 2 years ago

It should probably be a plugin