魂签,一款用于自动签到的Chrome插件
这里存放由我创建或改进的魂签 (Soulsign) 脚本
- 从这里复制你想要的脚本 Raw URL
- 打开魂签「任务管理」
- 点击「添加脚本」按钮
- 粘贴 URL 并点击「保存」按钮
| import ssl | |
| from typing import List | |
| from urllib.parse import urlparse | |
| from xml.etree import ElementTree as ET | |
| import feedparser | |
| import requests | |
| from bs4 import BeautifulSoup, ResultSet | |
| ssl._create_default_https_context = ssl._create_unverified_context |
| /* FLEETING NOTES */ | |
| span.page-reference[data-ref="fleeting note"] | |
| { background: var(--ls-primary-background-color); | |
| background-size: 100%; | |
| color: var(--ls-primary-text-color); | |
| padding: 2px 5px 2px 5px; | |
| font-size: 13px; | |
| line-height: 1em; | |
| font-weight: 500; |
| /* vertical style of sidebar in custom.css */ | |
| .sidebar-item.content { | |
| min-width: 33vw; | |
| overflow-y: scroll; | |
| } | |
| .sidebar-item-list.scrollbar-spacing { | |
| display: flex; | |
| flex-direction: row; | |
| padding-bottom: 0; |
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # What is this? | |
| # This script is for logseq webapp users that want to switch to the local version. | |
| # It will download all images that are linked inside your graph and store them in the local "/assets/" folder. | |
| # Remarks | |
| # 1. Only supports Markdown files (for now) |
| /* | |
| /* Theme custom css start | |
| /* https://raw.githack.com/dracula/logseq/master/custom.css | |
| */ | |
| @import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"); | |
| :root { | |
| --background: #282a36; | |
| --light-background: #343746; |
| javascript:(function() { | |
| function copyToClipboard(text) { | |
| if (window.clipboardData && window.clipboardData.setData) { | |
| /*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
| return clipboardData.setData("Text", text); | |
| } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
| var textarea = document.createElement("textarea"); | |
| textarea.textContent = text; |
| #!/bin/sh | |
| set -e | |
| # 查杀/恢复 CleanMyMac 的流氓后台 HealthMonitor | |
| # | |
| # - 执行脚本后,原 HealthMonitor.app 会被备份并被空目录替代,然后杀掉后台进程(你直接杀是杀不净的)。此时 CleanMyMac 主应用也不能运行。 | |
| # - 再次执行脚本,则将备份的文件恢复回去,CleanMyMac 则可以正常使用。 | |
| # | |
| # NOTE: 如果不是 Setapp 版本,进程名可能不同,需要自行修改下面变量: |
| #!/bin/bash | |
| # for: bulk merge bilibili UWP download file *.flv | |
| # by: blog.502.li | |
| # date: 2019-01-12 | |
| # 将该脚放到 UWP 客户端下载缓存主目录下执行,安装 ffmpeg、jq | |
| set -xu | |
| download_dir=$(pwd) | |
| mp4_dir=${download_dir}/mp4 | |
| mkdir -p ${mp4_dir} |