Intent share URL Query string for Pinafore

Recieve "overwrite" value and overwrite compose-box

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
usgrnk
Denně instalací
0
Celkem instalací
4
Hodnocení
0 0 0
Verze
0.1.20240122.1
Vytvořeno
01. 02. 2023
Aktualizováno
22. 01. 2024
Size
1,7 KB
Licence
CC0-1.0
Spustit na

This method allows sharing over 100,000 characters to Pinafore with Firefox for desktop.

How to use

Open "https://pinafore.social/?overwrite=URLEncodedTextYouWantShare" in some way.

example:

  • URI scheme for AddToAny firefox addon

    https://pinafore.social/?overwrite=${title}%0D%0A${link}
    
  • Bookmarklet to share title + URL

javascript:(function()%7Bwindow.open('https%3A%2F%2Fpinafore.social%2F%3Foverwrite%3D'%2BencodeURIComponent(document.title%2B'%20'%2Blocation.href))%7D)()%3B
  • Bookmarklet to share title + URL + (description OR og:description OR twitter:description OR nothing)
javascript:(function()%7B(function()%7B%0A%20%20%22use%20strict%22%3B%0A%20%20const%20base_uri%20%3D%20'https%3A%2F%2Fpinafore.social%2F%3Foverwrite%3D'%3B%0A%20%20const%20elm_desc%20%3D%20document.getElementsByName('description').item(0)%3B%0A%20%20const%20elm_og_desc%20%3D%20document.head.querySelector('%5Bproperty%24%3Ddescription%5D%5Bcontent%5D')%3B%0A%20%20const%20elm_tw_desc%20%3D%20document.getElementsByName('twitter%3Adescription').item(0)%3B%0A%20%20const%20desc_content%20%3D%20elm_desc%20%3F%20elm_desc.content%20%3A%20elm_og_desc%20%3F%20elm_og_desc.content%20%3A%20elm_tw_desc%20%3F%20elm_tw_desc.content%20%3A%20''%3B%0A%20%20const%20result%20%3D%20desc_content%20%3F%20'%5Cn%5C%3E%20'%20%2B%20desc_content.trim()%20%3A%20''%3B%0A%20%20window.open(base_uri%2BencodeURIComponent(%60%24%7Bdocument.title%7D%20%24%7Blocation.href%7D%24%7Bresult%7D%5Cn%5Cn%60))%3B%0A%7D)()%7D)()%3B

Notes

https://github.com/nolanlawson/pinafore

Pinafore is unmaintained.

https://github.com/nolanlawson/pinafore/issues/2308

This sounds like a non-standard equivalent of the Web Share API. I think it would be best if Firefox or URL Forwarder supported the standard. Rather than have Pinafore implement a non-standard approach on top of the standard approach, I would prefer to close this issue.