Skip to content

Instantly share code, notes, and snippets.

@scarf005
Last active April 28, 2025 15:26
Show Gist options
  • Save scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8 to your computer and use it in GitHub Desktop.
Save scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8 to your computer and use it in GitHub Desktop.
because how will you do drive-by BN contribution otherwise?
// ==UserScript==
// @name autofill BN PR template
// @namespace https://github.com/scarf005
// @description drive-by BN contribution
// @author scarf
// @version 1.0.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
//
// @homepageURL https://gist.github.com/scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8
// @supportURL https://gist.github.com/scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8
// @downloadURL https://gist.github.com/scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8/raw/autofill-BN-template.user.js
//
// @match https://github.com/cataclysmbnteam/Cataclysm-BN/compare/main*
// @grant none
// ==/UserScript==
{
'use strict'
const editor = document.querySelector("#pull_request_body")
editor.innerHTML = editor.innerHTML
.replaceAll(/<!--.*?-->/gs, "")
.replaceAll(/^(\s*-?\s*)(\[ \])/gm, "$1[x]")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment