File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Commit_Whitespace
99// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Whitespace/Github_Commit_Whitespace.user.js
1010// @include https://github.com/*
11- // @version 1
11+ // @version 1.1
1212// @grant none
1313// ==/UserScript==
1414
1818
1919 function addButton ( ) {
2020 var e ;
21- if ( ! / \/ c o m m i t \/ / . test ( location . href ) || ! ( e = document . querySelector ( ".explain" ) ) ) return ;
21+ if ( ! ( / \/ c o m m i t \/ / . test ( location . href ) || / \/ c o m p a r e \/ / . test ( location . href ) ) ||
22+ ! ( e = document . querySelector ( ".explain" ) ) ) return ;
2223
2324 var r = e . querySelector ( ".GithubCommitWhitespaceButton" ) ;
2425 if ( r ) r . parentElement . removeChild ( r ) ;
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ Adds button to hide whitespaces from commit.
1919
2020### Version History
2121
22- < dl >
23- <dt>1.0</dt>
24- <dd>Initial version</dd>
25- </ dl >
22+ * 1.1
23+ * Added to compare page;
24+ * 1.0
25+ * Initial version;
2626
2727### TODO
2828
You can’t perform that action at this time.
0 commit comments