tomorrow092

tomorrow092

V2EX 第 646800 号会员,加入于 2023-09-03 15:06:31 +08:00
tomorrow092 最近回复了
14 天前
回复了 luck2023 创建的主题 投资 昨天美股又亏了 20 万,怎么办?
美股涨的时候不也很爽吗?
首先 我觉得要先回顾一下 这几年 爷爷是怎么生活的? 有没有人照顾. 如果子女都不照顾,活得太累,那么可能老人家也不一定想活.
其次 一家出个 1 万左右 ,按照报销比例 总费用大概 8 万上下, 能治疗个差不多吧. 一万应该都还能出的起吧
支持!
@NewYear #7
我现在写了个热字符串脚本
/**
 * 使用 Default 语法发图片 Imgur ,域名为 i.imgur.com,且带有格式后缀
 */
:*:v2defaultimg:: {
    genV2_DefaultImg()
}
:*:v2img:: {
    genV2_DefaultImg()
}
genV2_DefaultImg() {
    ; Trim clipboard content
    tempClipboard := Trim(A_Clipboard)

    ; Check if clipboard is empty or not a URL
    if (tempClipboard = "" || !RegExMatch(tempClipboard, "^https?://")) {
        commonShowNotify("info", "剪贴板为空或者不是 url", 6)

        return
    }
    commonShowNotify("info", "![替代文字](图片链接).", 6)
    ; Process each line in the clipboard
    urls := StrSplit(tempClipboard, "`n", "`r")
    for url in urls {
        trimUrl := Trim(url)
        if (trimUrl != "") {
            ; 检查 URL 是否以 https://imgur.com/ 开头
            if (InStr(trimUrl, "https://imgur.com/", CaseSensitive := false) == 1) {
                ; 对于 imgur 图片链接,转换为 i.imgur.com 并添加 .png 后缀
                imgurId := SubStr(trimUrl, StrLen("https://imgur.com/") + 1)
                defaultImgUrl := "https://i.imgur.com/" . imgurId . ".png"
                SendText(defaultImgUrl)
            } else {
                ; 对于其他链接,直接使用标准 Markdown 链接格式
                SendText(trimUrl)
            }

            SendEvent "{End}{Enter}"
        }
    }

}
@NewYear #2 这个 BBcode 里面有 i.imgur + 文件扩展名的完整格式. 不过 imgurl 好像对扩展名不敏感, 随便写个扩展名就都能显示.

@NewYear #1
@NewYear 你看下
单个图片 URL ,直接拼后缀可以,但要猜测后缀名。


后缀名随便写,写错了也没关系. imgurl 是不关心后缀名的.

i.imgur 链接直接指向图像,而 imgur.com 链接指向 imgur 页面,该页面还显示图片、带宽和其他图片。
任何 imgur 链接都可以替换为 i.imgur ,您将看到没有其他信息的图片。
别躺这个浑水了, 建议考虑其他出路吧.
有没有考虑过考公?
恭喜恭喜!

好奇, 结婚前 你俩在一起同居过没?
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2647 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 12:20 · PVG 20:20 · LAX 05:20 · JFK 08:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.