sebsauvage / Shaarli

The personal, minimalist, super-fast, no-database delicious clone.
http://sebsauvage.net/wiki/doku.php?id=php:shaarli
Other
679 stars 397 forks source link

Don't open the popup with bookmarklet #64

Closed nicosomb closed 6 years ago

nicosomb commented 11 years ago

Hello sebsauvage ! Is there any way to not open the popup when I use the bookmarklet ?

I want that a link is automatically added to my shaarli without confirmation in the popup.

Nicolas

sebsauvage commented 11 years ago

This is a good idea. Let's call it "TL;DR" bookmarklet. It will records the URL in Shaarli in private mode without confirmation. I will possibly ass visual feedback (maybe in current page).

nicosomb commented 11 years ago

Great. In fact, I want to use Shaarli like a Read-it-later system : all my private links are my "read it later" links.

sebsauvage commented 11 years ago

Technical note (for me): As there will be no form validation from the user and posting will be done with a GET request, the bookmarklet must contain a token unique to the Shaarli installation to prevent spamming of the Shaarli using XSRF.

tontof commented 11 years ago

Just because it's in nicosomb's article, why not adding to https://github.com/sebsauvage/Shaarli/issues/33 the possibility to add tags in GET query ? For this TL;DR bookmarklet, it will be possible to add a specific tag and it will be easier to find article to read later.