Intent share URL Query string for Pinafore

Recieve "overwrite" value and overwrite compose-box

Author
yzrsng
Daily installs
0
Total installs
4
Ratings
0 0 0
Version
0.1.20240122.1
Created
2023-02-01
Updated
2024-01-22
Size
1.69 KB
License
CC0-1.0
Applies to

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.