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 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 |
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
| const temp = { | |
| seven_days_usage: [ | |
| { | |
| kwh: 0.270416, | |
| datetime: "2022-08-25T16:00:00+00:00", | |
| cost: 0.07, | |
| generation: 0, | |
| earned: 0, | |
| }, | |
| { |