This file contains 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 GitHub open npm from import | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Opens the npm package by Ctrl/Cmd+click on import statement | |
// @author Kiliman | |
// @match https://github.com/* | |
// @icon https://www.google.com/s2/favicons?domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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 GitHub open npm from import | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Opens the npm package by Ctrl/Cmd+click on import statement | |
// @author Kiliman | |
// @match https://github.com/* | |
// @icon https://www.google.com/s2/favicons?domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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 GitHub Open project fields | |
// @version 1.0.0 | |
// @match https://github.com/*/issues/ | |
// @match https://github.com/*/pull/ | |
// @run-at document-end | |
// ==/UserScript== | |
function open() { | |
for (const button of document.querySelectorAll('collapsible-sidebar-widget:not([open]) [aria-label^="See more fields"]')) { |
This file contains 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
# Install gh-cli https://cli.github.com | |
# cd to the repo folder | |
# Replace "ci.yml" with the workflow name you want to delete | |
# Run this to delete them all (500 runs at a time) | |
gh run list --json databaseId -q '.[].databaseId' -w ci.yml --limit 500 | | |
xargs -IID -P 15 gh api \ | |
"repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ | |
-X DELETE |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8" /> | |
<script src="devtools_page.js"></script> |
This file contains 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
// Respond to CS | |
const startTime = Date.now() | |
const delay = 13000; | |
chrome.runtime.onMessage.addListener( (message, sender, respond) => { | |
setTimeout(respond, delay, Math.round((Date.now() - startTime + delay) / 1000)); | |
return true | |
}) | |
// Overlapping fetch requests | |
console.log('will req'); |
This file contains 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
Promise.reject(1).catch(err => { | |
if (err instanceof Error) { | |
throw err; // Exception | |
} | |
// Rejection | |
}).catch(exitProcess) |
Created bookmarklet with http://ted.mielczarek.org/code/mozilla/bookmarklet.html
NewerOlder