File tree 8 files changed +22
-2
lines changed
8 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ export default function () {
6
6
const favicon = document . getElementById ( "favicon" ) ;
7
7
if ( favicon ) favicon . href = chrome . runtime . getURL ( "/images/icon-blue.png" ) ;
8
8
}
9
+ const now = Date . now ( ) / 1000 ;
10
+ if ( now < 1743595200 && now > 1743422400 && [ "settings" , "popup" ] . includes ( location . pathname . split ( "/" ) [ 2 ] ) ) {
11
+ // March 31, 2025 12:00:00 GMT to April 2, 2025 12:00:00 GMT
12
+ document . documentElement . style . setProperty ( "--brand-orange" , "#6c503c" ) ;
13
+ // https://www.deviantart.com/fabooguy/art/Dirt-Ground-Texture-Tileable-2048x2048-441212191
14
+ document . documentElement . style . setProperty ( "--dirt-background" , "url('../../images/dirt.jpg')" ) ;
15
+ }
9
16
const lightThemeLink = document . createElement ( "link" ) ;
10
17
lightThemeLink . setAttribute ( "rel" , "stylesheet" ) ;
11
18
lightThemeLink . setAttribute ( "href" , chrome . runtime . getURL ( "/webpages/styles/colors-light.css" ) ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ const vue = new Vue({
25
25
} ,
26
26
methods : {
27
27
msg ( message , ...params ) {
28
+ const now = Date . now ( ) / 1000 ;
29
+ if ( message === "extensionName" && now < 1743595200 && now > 1743422400 ) return "Scratch Potatoes 🥔" ;
28
30
return chrome . i18n . getMessage ( message , ...params ) ;
29
31
} ,
30
32
direction ( ) {
Original file line number Diff line number Diff line change 19
19
# header {
20
20
display : flex;
21
21
height : 60px ;
22
+ background-image : var (--dirt-background , none);
22
23
}
23
24
.header-button {
24
25
cursor : pointer;
Original file line number Diff line number Diff line change @@ -54,7 +54,11 @@ export default [
54
54
} ,
55
55
{
56
56
id : "recommended" ,
57
- name : chrome . i18n . getMessage ( "recommended" ) ,
57
+ name : ( ( ) => {
58
+ const now = Date . now ( ) / 1000 ;
59
+ if ( now < 1743595200 && now > 1743422400 ) return "Potato Board 🥔" ;
60
+ return chrome . i18n . getMessage ( "recommended" ) ;
61
+ } ) ( ) ,
58
62
addonIds : [ ] ,
59
63
expanded : true ,
60
64
iframeShow : false ,
Original file line number Diff line number Diff line change 176
176
draggable ="false "
177
177
/>
178
178
< img src ="../../images/icon-transparent.svg " class ="logo " alt ="Logo " draggable ="false " />
179
- < h1 v-cloak > {{ msg("settings") }}</ h1 >
179
+ < h1 v-cloak > {{ msg("settings") }}{{ aprilFoolsPotato }} </ h1 >
180
180
</ div >
181
181
< div v-cloak class ="search-box " :class ="{smallMode: smallMode === true} ">
182
182
< input type ="text " id ="searchBox " :placeholder ="searchMsg " v-model ="searchInputReal " autofocus />
Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ let fuse;
114
114
changelog : `https://scratchaddons.com/${ localeSlash } changelog?${ utm } ` ,
115
115
} ;
116
116
} ) ( ) ,
117
+ aprilFoolsPotato : ( ( ) => {
118
+ const now = Date . now ( ) / 1000 ;
119
+ if ( now < 1743595200 && now > 1743422400 ) return " 🥔" ;
120
+ else return "" ;
121
+ } ) ( ) ,
117
122
} ;
118
123
} ,
119
124
computed : {
Original file line number Diff line number Diff line change 26
26
user-select : none;
27
27
position : relative;
28
28
z-index : 10 ;
29
+ background-image : var (--dirt-background , none);
29
30
}
30
31
31
32
.navbar-start {
You can’t perform that action at this time.
0 commit comments