Skip to content

【其他】在 URL 为 linux.do/raw/<topic_id>/<post_id> 时,不显示扩展设置按钮 #313

@Karlbaey

Description

@Karlbaey

详细描述

discourse 有内置一个 /raw/<topic_id>/<post_id> 页面来获取当前帖子的源代码。

例如对于 https://linux.do/t/topic/5/1 ,它的源代码页面就是 https://linux.do/raw/5/1

我想复制源代码的部分内容,但是会被扩展弹出的设置框阻挡。

Image

我的设想是通过正则表达式匹配 raw 字符串,匹配成功就不显示设置按钮。可以把这个匹配做成一个设置项。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions