Global support of es2023 since:
- Chrome v97 (January 4, 2022)
- Edge v97 (December 1, 2021)
- Safari v15.4 (March 14, 2022)
- Safari on iOS v15.4 (March 14, 2022)
- Opera v83 (January 19, 2022)
- Firefox v104 (June 23, 2022)
| /* ============================================================ | |
| Yuque-style Minimal Typography for Obsidian (macOS) | |
| Author intent: Chinese-first readability, calm rhythm, | |
| long writing friendly, default theme safe. | |
| ============================================================ */ | |
| /* ----------------------------- | |
| 1. Core variables | |
| ----------------------------- */ | |
| :root { |
| # ============================================= | |
| # Git Worktree 快速管理助手 | |
| # 用法: | |
| # ga <branch-name> # 在平行目录创建新 worktree + 新分支,并自动 cd 进去 | |
| # gd # 删除当前 worktree 和对应分支(带确认) | |
| # | |
| # 依赖: | |
| # - gum[](https://github.com/charmbracelet/gum) 用于美观的确认对话框 | |
| # - mise (可选,如果你用 mise 管理工具版本) | |
| # ============================================= |
| /*** | |
| * Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本 | |
| * URL: https://gist.github.com/dahaha-365/0b8beb613f8d1ee656fe1f21e1a07959 | |
| */ | |
| /** | |
| * 整个脚本的总开关,在Mihomo Party使用的话,请保持为true | |
| * true = 启用 | |
| * false = 禁用 | |
| */ |
| // 1. 打开 Arc 浏览器访问 Twitter 网站; | |
| // 2. 左侧面板右下角点击 New Boost - Inject - A specific website(确认应用范围是 twitter.com) | |
| // 3. 请空默认代码,粘贴本页面代码即可。 | |
| // 效果测试地址: https://twitter.com/ciguleva/status/1637233764656107520?s=20 | |
| const tweetSelector = 'article[data-testid="tweet"]'; | |
| const tweetTextSelector = 'div[data-testid="tweetText"]'; | |
| const tweetPhotoSelector = 'div[data-testid^="tweetPhoto"]'; | |
| const appendAltText = (tweet, altText) => { |
| /* Using a JavaScript proxy for a super low code REST client */ | |
| // via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
| // also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
| // also see https://github.com/fastify/manifetch | |
| // also see https://github.com/flash-oss/allserver | |
| // and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
| const createApi = (url) => { | |
| return new Proxy({}, { | |
| get(target, key) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>FILEHEADER</key> | |
| <string> | |
| // Copyright © ___YEAR___ ___ORGANIZATIONNAME___. | |
| // All Rights Reserved. | |
| </string> | |
| <key>ORGANIZATIONNAME</key> |
| // cSpell:word commitlint typecheck | |
| pre-commit: | |
| parallel: true | |
| commands: | |
| type-check: | |
| glob: '*.{ts,tsx}' | |
| run: yarn typecheck | |
| lint: | |
| glob: '*.{js,ts,jsx,tsx}' |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleShortVersionString</key> | |
| <string>1.0</string> | |
| <key>CFBundleIdentifier</key> | |
| <string>com.YourName.YourAppName</string> | |
| <key>CFBundleVersion</key> | |
| <string>1</string> |