Discourse关联链接器

| | | |\n|— | — | —|\n|:information_source: | 摘要 | 将链接替换为联盟链接|\n|: eyeglasses: | 预览 | Discourse-affiliate-linker - Plugins and Themes - Literate Computing Dashboard |\n|:hammer_and_wrench: | 代码库 | https://github.com/literatecomputing/discourse-affiliate-linker|\n|:question: | 安装指南 | 如何安装主题或主题组件|\n|:open_book: | 首次使用 Discourse 主题? | Discourse 主题使用入门指南|\n\n\u003c!-- 填写“repoName”和“repoURL”以启用自动安装按钮 –\u003e\n\n\n安装此主题组件\n\n\n\u003c!-- 用一两句话描述此主题/组件 –\u003e\n\n将指向 digitalocean.com 等内容的 URL 替换为您的推荐链接。请参阅实际效果:https://dashboard.literatecomputing.com/t/discourse-affiliate-linker/950\n\n\u003c!-- 添加截图(如果适用) –\u003e\n\n

\n\n\n\u003c!-- 添加更多详细信息并解释设置(如果适用) –\u003e\n\n我为 [PAID] Theme or plugin to transform links made to specific URLs / domains 编写了一个主题组件,然后意识到它可以有通用用途。\n\n我使用此主题组件来重写 https://dashboard.literatecomputing.com/ 上的 Digital Ocean、bunny.net 等内容的链接。

12 个赞

你好!

喜欢它。是否可以使用一些正则表达式或通用字符?

想将类似以下的链接:

https://www.philibertnet.com/fr/alderac/143636-undergrove-729220010384.html

转换为:

https://www.philibertnet.com/fr/alderac/143636-undergrove-729220010384.html#ae52

那么该域上的任何网址都会附加 #ae52?不,现在还不可能。如果您有预算或想提交 PR,请告诉我。