Skip to content

Instantly share code, notes, and snippets.

@john-walks-slow
john-walks-slow / simpread_custom_Dakr&Peace.user.css
Last active February 26, 2024 16:49 — forked from Kenshin/simpread_custom_Dakr&Peace.user.css
简悦用户定制样式合辑 with Stylus
/* ==UserStyle==
@name simpread style: Dark & Peace
@namespace simpread.pro
@version 0.1.0
@description dark mode for eye protection
@author eterlen
==/UserStyle== */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;300;400;500&family=Noto+Sans&family=Noto+Sans+SC:wght@100;300;400;500&family=Noto+Sans+TC:wght@100;300;400;500&family=Noto+Serif&family=Noto+Serif+SC:wght@100;300;400;500&family=Noto+Serif+TC:wght@100;300;400;500&family=PT+Serif:wght@400;700&display=swap");
.simpread-theme-root {
@john-walks-slow
john-walks-slow / softfocus.user.css
Created February 26, 2024 15:29
简悦主题 - 柔焦
/* ==UserStyle==
@name simpread style: 柔焦
@namespace simpread.pro
@version 0.1.0
@description 柔焦 style for simpread
@author JohnnRen
==/UserStyle== */
@-moz-document regexp("http[s]://.*") {
sr-rd-content * {
@john-walks-slow
john-walks-slow / script.user.js
Last active February 26, 2024 17:20
豆瓣:跳转至串流 (Userscript)
// ==UserScript==
// @name 豆瓣:跳转至串流
// @namespace http://tampermonkey.net/
// @version 0.25
// @description 在豆瓣专辑界面添加跳转至 Spotify,QQ音乐,网易云音乐的按钮
// @author You
// @include /^https?:\/\/music\.douban\.com\/subject\/[0-9]+\/[^\/]*$/
// @icon https://www.google.com/s2/favicons?sz=64&domain=douban.com
// @grant none
// @run-at document-idle
@john-walks-slow
john-walks-slow / script.user.js
Last active February 25, 2024 04:59
Spotify 跳转至豆瓣 (Userscript)
// ==UserScript==
// @name Spotify 跳转至豆瓣
// @namespace http://tampermonkey.net/
// @version 0.4
// @description 在 Spotify 的专辑菜单中新增“转至豆瓣”按钮。Quickly navigate to Douban from Spotify.
// @author You
// @match open.spotify.com/*
// @match spotify.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=spotify.com
// @run-at document-idle
@john-walks-slow
john-walks-slow / lnk-ps1.ps1
Created December 1, 2023 14:51
Create an executable shortcut of ps1 script
# $ScriptPath: The path to the ps1 script. It could be either relative or absolute.
# A shortcut will be created in the working directory, named after the ps1 script
param ( [string]$ScriptPath )
if ("" -ne $ScriptPath){
$LnkPath = $ScriptPath.Split("\")[-1].Split(".")[0] + ".lnk"
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($LnkPath)
$Shortcut.TargetPath = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
$Shortcut.WorkingDirectory = $ScriptPath.Split("\")[0..($ScriptPath.Split("\").Length-2)] -join "\"
$Shortcut.Arguments = $ScriptPath
// ==UserScript==
// @name Query String Automator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automation based on query string. Example: https://www.google.com/?uauto={selector:".RNmpXc",action:"this.click()"}
// @author You
// @match *://*/*?uauto=*
// @run-at document-idle
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Better Regex101 Cheatsheet
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show the cheatsheet of RegExr on regex101
// @author You
// @match https://regex101.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=regex101.com
// @grant none
// @run-at document-idle
proxy-groups:
-
name: '🔯 故障转移'
type: url-test
Visual.style("cursor", `
background-color: rgba(127, 225, 254);
pointer-events: none;
height: 1em;
z-index: 999;
`);
Visual.style("marks", `
margin-top: 1em;
background-color: aquamarine;
pointer-events: none;
@john-walks-slow
john-walks-slow / cVim_pref.txt
Last active December 5, 2018 15:19
cVim_pref
unmapAll
iunmapAll
imap <C-j> forwardLine
imap <C-k> backwardLine
imap <C-h> backwardWord
imap <C-l> forwardWord
imap <C-S-l> forwardChar
imap <C-S-h> backwardChar
imap <C-S-j> beginningOfLine
imap <C-S-k> endOfLine