Intent share URL Query string for Pinafore

Recieve "overwrite" value and overwrite compose-box

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
usgrnk
今日安裝
0
安裝總數
4
評價
0 0 0
版本
0.1.20240122.1
建立日期
2023-02-01
更新日期
2024-01-22
尺寸
1.7 KB
授權條款
CC0-1.0
腳本執行於

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.