File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ function getCookie(name) {
55 if ( parts . length === 2 ) return parts . pop ( ) . split ( ';' ) . shift ( ) ;
66}
77// get cookie
8+
9+ if ( getCookie ( 'ST Features' ) === undefined ) {
10+ document . cookie = `ST Features=${ getCookie ( 'ST Features' ) + 'ST ' } ; expires=Thu, 18 Dec 9999 12:00:00 UTC; path=/` ;
11+ }
12+
813if ( window . location . href === "https://scratch.mit.edu/" ) {
914if ( getCookie ( 'ST Features' ) . includes ( 'scratch-news-recent' ) ) {
1015titles ( )
@@ -247,4 +252,4 @@ document.querySelector('#navigation > div > ul > li.link.right.login-item > div
247252document . querySelector ( '#navigation > div > ul > li.link.right.login-item > div > div' ) . appendChild ( elem )
248253document . querySelector ( '#navigation > div > ul > li.link.right.login-item > div > div > label' ) . appendChild ( el )
249254}
250- }
255+ }
You can’t perform that action at this time.
0 commit comments