This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Universal Link Copier (GitHub, Notion, and Others) | |
| // @namespace ViolentMonkey Scripts | |
| // @version 1.3 | |
| // @description Copy the link with relevant information from GitHub issues, pull requests, and other pages when nothing is selected and cmd+c is pressed. | |
| // @author You | |
| // @match *://github.com/*/*/* | |
| // @match *://notion.so/* | |
| // @match *://*/* | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable no-color-literals */ | |
| // ==UserScript== | |
| // @name Metabase dev stuff | |
| // @namespace Violentmonkey Scripts | |
| // @version 1.3 | |
| // @description Fills forms and do things | |
| // @author Your Name | |
| // @match *://*/* | |
| // @grant GM_registerMenuCommand | |
| // @grant GM_setValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # find package manager by looking for lockfiles in current and parent directories | |
| function find-pkg-manager() { | |
| local dir="$PWD" | |
| while [ "$dir" != "/" ]; do | |
| if [ -f "$dir/bun.lockb" ]; then | |
| echo "bun|$dir/bun.lockb" | |
| return 0 | |
| elif [ -f "$dir/pnpm-lock.yaml" ]; then | |
| echo "pnpm|$dir/pnpm-lock.yaml" | |
| return 0 |
OlderNewer