Intent share URL Query string for Pinafore

recieve "text" and overwrite compose-box

Mint 2023.02.01.. Lásd a legutóbbi verzió

Fejlesztő
yzrsng
Értékelések
0 0 0
Verzió
0.1.20230201.2
Létrehozva
2023.02.01.
Frissítve
2023.02.01.
Size
1 KB
Licensz
CC0-1.0
Érvényes

How to use

Please use any bookmarklet to open "https://pinafore.social/?text="

example:

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%3Ftext%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%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.