File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,27 @@ function getCookie(name) {
55 if ( parts . length === 2 ) return parts . pop ( ) . split ( ';' ) . shift ( ) ;
66 }
77// get cookie
8+ if ( getCookie ( 'ST Features' ) . includes ( 'open-new-tab' ) ) {
9+ waitforit ( )
10+ function waitforit ( ) {
11+ if ( document . querySelector ( '#view > div > div.inner > div:nth-child(2) > div.flex-row.project-notes' ) === null ) {
12+ window . setTimeout ( waitforit , 100 )
13+ } else {
14+ var openlink = document . querySelectorAll ( 'a' )
15+ openlink . forEach ( function ( link ) {
16+ if ( link . parentNode . parentNode === document . querySelector ( '#navigation > div > ul' ) ) {
17+ } else {
18+ link . target = '_blank'
19+ link . rel = 'noopener noreferrer'
20+ }
21+ } )
22+ }
23+ }
24+ }
825// april fool's day (start)
926const d = new Date ( ) ;
1027console . log ( d . getDate ( ) )
11- if ( d . getDate ( ) === 1 ) {
28+ if ( d . getDate ( ) === 31 ) {
1229checkapril ( ) ;
1330function checkapril ( ) {
1431 if ( document . querySelector ( '#view > div > div.inner > div:nth-child(2) > div.guiPlayer > div > div:nth-child(1) > div > div > div.controls_controls-container_2xinB > img.stop-all_stop-all_1Y8P9' ) === null ) {
You can’t perform that action at this time.
0 commit comments