Intent share URL Query string for Pinafore

Recieve "overwrite" value and overwrite compose-box

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.