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 Enhanced Pull Request Overview | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2026-04-04 | |
| // @description GitHub should have added this years ago | |
| // @author mxt-mischa, PaulvdDool | |
| // @match https://github.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant GM_addStyle | |
| // @license MIT |
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
| // when variant changes | |
| this.updateBundleVariant( variant ); | |
| // add at bottom of JS file | |
| function updateBundleVariant( variant ) { | |
| // remove old line item properties from DOM | |
| [ ...document.querySelectorAll( '.bundles_lineItemProperty' ) ].forEach( lineItemProperty => { | |
| lineItemProperty.parentNode.removeChild( lineItemProperty ); | |
| } ); |