Skip to content

Instantly share code, notes, and snippets.

View kaylesworth's full-sized avatar

Kevin Aylesworth kaylesworth

View GitHub Profile
const temp = {
seven_days_usage: [
{
kwh: 0.270416,
datetime: "2022-08-25T16:00:00+00:00",
cost: 0.07,
generation: 0,
earned: 0,
},
{
@kaylesworth
kaylesworth / add-github-buttons-to-graphite
Last active March 4, 2024 15:43 — forked from phoebejaffe/add-github-buttons-to-graphite
JS to add Github buttons to Graphite (especially great with Arc Browser Boosts)
function isGraphitePr() {
return (
window.location.hostname === "app.graphite.dev" &&
window.location.pathname.includes("/github/pr/")
);
}
function makeGithubPrUrl() {
const pieces = window.location.pathname.replace("/github/pr/", "").split("/");
return `https://github.com/${pieces[0]}/${pieces[1]}/pull/${
@kaylesworth
kaylesworth / github-copy-stacked-prs.js
Last active September 22, 2026 19:39
GitHub — Copy Stacked PRs as Markdown, its slop edit/copy as you wish
// ==UserScript==
// @name GitHub — Copy Stacked PRs as Markdown
// @namespace kevin.aylesworth
// @version 0.5.2
// @description Adds a Copy button to GitHub's native stacked-PR overlay. Copies as markdown (text/plain) and HTML (text/html) so it pastes cleanly into GitHub, Slack, Linear, Teams, Gmail, and Notion.
// @match https://github.com/*
// @run-at document-idle
// @grant none
// @updateURL https://gist.githubusercontent.com/kaylesworth/2091fabf6e6ac46529efdd9cc77ac228/raw/github-copy-stacked-prs.js
// @downloadURL https://gist.githubusercontent.com/kaylesworth/2091fabf6e6ac46529efdd9cc77ac228/raw/github-copy-stacked-prs.js
@kaylesworth
kaylesworth / github-hide-pr-authors.user.js
Last active September 22, 2026 19:38
GitHub userscript: hide pull requests from chosen authors on repo PR lists. Its slop, edit/copy as you wish
// ==UserScript==
// @name GitHub - Hide PR authors
// @namespace kevin.aylesworth
// @version 1.1.1
// @description Hides pull requests from chosen authors on repo PR lists, unless the URL already filters by author
// @match https://github.com/*
// @run-at document-idle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand