File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name GitHub Diff Filename
3- // @version 1.1.3
3+ // @version 1.1.4
44// @description A userscript that highlights filename & permission alterations
55// @license MIT
66// @author Rob Garrison
4646 if ( link ) {
4747 const [ oldFile , newFile ] = ( link . title || "" ) . split ( regex ) ;
4848 link . innerHTML = `
49- <span class="ghdfn text-red ">${ oldFile } </span> ${ arrow }
50- <span class="ghdfn text-green ">${ newFile } </span>` ;
49+ <span class="ghdfn color- text-danger ">${ oldFile } </span> ${ arrow }
50+ <span class="ghdfn color- text-success ">${ newFile } </span>` ;
5151 }
5252 }
5353
6060 wrapParts ( {
6161 start : middle + 2 ,
6262 end : txt . length ,
63- name : "ghdfn text-green " ,
63+ name : "ghdfn color- text-success " ,
6464 node
6565 } ) ;
6666 }
6969 wrapParts ( {
7070 start : 0 ,
7171 end : middle - 1 ,
72- name : "ghdfn text-red " ,
72+ name : "ghdfn color- text-danger " ,
7373 node
7474 } ) ;
7575 }
You can’t perform that action at this time.
0 commit comments