pake-cli 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/cli.js +729 -729
- package/package.json +27 -27
- package/src-tauri/Cargo.lock +102 -48
- package/src-tauri/Cargo.toml +4 -4
- package/src-tauri/pake.json +1 -1
- package/src-tauri/src/app/window.rs +7 -1
- package/src-tauri/src/inject/event.js +1 -5
- package/src-tauri/src/inject/style.js +122 -95
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
window.addEventListener('DOMContentLoaded', _event => {
|
|
2
|
-
|
|
2
|
+
// Customize and transform existing functions
|
|
3
|
+
const contentCSS = `
|
|
3
4
|
#page #footer-wrapper,
|
|
4
5
|
.drawing-board .toolbar .toolbar-action,
|
|
5
6
|
.c-swiper-container,
|
|
@@ -33,29 +34,14 @@ window.addEventListener('DOMContentLoaded', _event => {
|
|
|
33
34
|
opacity: 1;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
#layout > ytmusic-nav-bar{
|
|
37
|
-
padding: 6px 16px 0 72px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
37
|
html::-webkit-scrollbar {
|
|
41
38
|
display: none !important;
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
#__next header.HeaderBar_header__jn5ju{
|
|
45
|
-
padding-top: 16px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
41
|
#__next .ChatPageSidebar_menuFooter__E1KTY,#__next > div.PageWithSidebarLayout_centeringDiv___L9br > div > aside > div > menu > section:nth-child(6) {
|
|
49
42
|
display: none;
|
|
50
43
|
}
|
|
51
44
|
|
|
52
|
-
#page .main_header, .cb-layout-basic--navbar,
|
|
53
|
-
#app .splitpanes.splitpanes--horizontal.no-splitter header,
|
|
54
|
-
.fui-FluentProvider .fui-Button[data-testid="HomeButton"],
|
|
55
|
-
#__next > div.PageWithSidebarLayout_centeringDiv___L9br > aside .ChatPageSidebar_logo__9PIXq {
|
|
56
|
-
padding-top: 20px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
45
|
#__next > div.overflow-hidden.w-full.h-full .min-h-\\[20px\\].items-start.gap-4.whitespace-pre-wrap.break-words {
|
|
60
46
|
word-break: break-all;
|
|
61
47
|
}
|
|
@@ -88,61 +74,24 @@ window.addEventListener('DOMContentLoaded', _event => {
|
|
|
88
74
|
display: none;
|
|
89
75
|
}
|
|
90
76
|
|
|
91
|
-
#__next .overflow-hidden>.overflow-x-hidden .scrollbar-trigger > nav {
|
|
92
|
-
padding-top: 30px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
77
|
#__next .absolute .px-3.pt-2.pb-3.text-center {
|
|
96
78
|
visibility: hidden;
|
|
97
79
|
padding-bottom: 4px;
|
|
98
80
|
}
|
|
99
81
|
|
|
100
|
-
#__next
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
#tabs-sidebar--tabpanel-0 > div.tw-flex.tw-items-center.tw-mb-\\[12px\\].tw-mt-\\[14px\\].tw-px-4 {
|
|
105
|
-
padding-top: 15px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
#tabs-sidebar--tabpanel-1 > div > div.tw-p-\\[16px\\].tw-flex.tw-flex-col.tw-gap-1\\.5{
|
|
109
|
-
padding-top: 30px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
#tabs-sidebar--tabpanel-2 > div > h2 {
|
|
113
|
-
padding-top: 20px;
|
|
114
|
-
height: 70px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.lark > .dashboard-sidebar, .lark > .dashboard-sidebar > .sidebar-user-info , .lark > .dashboard-sidebar .index-module_wrapper_F-Wbq{
|
|
118
|
-
padding-top:15px;
|
|
82
|
+
#__next .h-full.w-full .text-center.text-xs.text-gray-600>span {
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
height: 15px;
|
|
119
85
|
}
|
|
120
86
|
|
|
121
|
-
.
|
|
122
|
-
|
|
87
|
+
#__next > div.overflow-hidden.w-full.h-full.relative.flex > div.dark.hidden.flex-shrink-0.bg-gray-900.md\\:flex.md\\:w-\\[260px\\].md\\:flex-col > div > div > nav {
|
|
88
|
+
width: 100%;
|
|
123
89
|
}
|
|
124
90
|
|
|
125
91
|
.panel.give_me .nav_view {
|
|
126
92
|
top: 164px !important;
|
|
127
93
|
}
|
|
128
94
|
|
|
129
|
-
.columns .column #header,
|
|
130
|
-
.main > div > div.panel.give_me > div.header {
|
|
131
|
-
padding-top: 30px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
ytd-masthead>#container.style-scope.ytd-masthead {
|
|
135
|
-
padding-top: 12px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
#background.ytd-masthead {
|
|
139
|
-
height: 68px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.wrap.h1body-exist.max-container > div.menu-tocs > div.menu-btn{
|
|
143
|
-
top: 28px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
95
|
#Wrapper{
|
|
147
96
|
background-color: #F8F8F8 !important;
|
|
148
97
|
background-image:none !important;
|
|
@@ -152,20 +101,14 @@ window.addEventListener('DOMContentLoaded', _event => {
|
|
|
152
101
|
border-bottom: none;
|
|
153
102
|
}
|
|
154
103
|
|
|
155
|
-
.container
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.geist-page nav.dashboard_nav__PRmJv,
|
|
160
|
-
#app > div.layout > div.header-container.showSearchBoxOrHeaderFixed > header > a {
|
|
161
|
-
padding-top:10px;
|
|
104
|
+
#global > div.header-container.showSearchBoxOrHeaderFixed > header > div.right > div > div.dropdown-nav{
|
|
105
|
+
display: none;
|
|
162
106
|
}
|
|
163
107
|
|
|
164
|
-
.
|
|
165
|
-
|
|
108
|
+
#__next > div.AnnouncementWrapper_container__Z51yh > div > aside > div > div > menu > section:nth-child(4) > section, #__next > div.AnnouncementWrapper_container__Z51yh > div > aside > div > div > menu > section:nth-child(4){
|
|
109
|
+
display: none;
|
|
166
110
|
}
|
|
167
111
|
|
|
168
|
-
|
|
169
112
|
#react-root [data-testid="placementTracking"] article,
|
|
170
113
|
#react-root a[href*="quick_promote_web"],
|
|
171
114
|
#react-root [data-testid="AppTabBar_Explore_Link"],
|
|
@@ -321,42 +264,113 @@ window.addEventListener('DOMContentLoaded', _event => {
|
|
|
321
264
|
}
|
|
322
265
|
}
|
|
323
266
|
|
|
324
|
-
@media (min-width:1024px){
|
|
325
|
-
#__next .text-base.lg\\:max-w-xl, #__next form.stretch.lg\\:max-w-2xl,
|
|
326
|
-
#__next > .w-full.h-full .lg\\:max-w-\\[38rem\\] {
|
|
327
|
-
max-width: 44rem;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
267
|
@media (min-width:1280px){
|
|
332
268
|
#__next .text-base.xl\\:max-w-3xl, #__next form.stretch.xl\\:max-w-3xl {
|
|
333
269
|
max-width: 48rem;
|
|
334
270
|
}
|
|
335
271
|
}
|
|
336
272
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
273
|
+
#__next .prose ol li p {
|
|
274
|
+
margin: 0;
|
|
275
|
+
display: inline;
|
|
276
|
+
}
|
|
277
|
+
`;
|
|
278
|
+
const contentStyleElement = document.createElement('style');
|
|
279
|
+
contentStyleElement.innerHTML = contentCSS;
|
|
280
|
+
document.head.appendChild(contentStyleElement);
|
|
341
281
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
282
|
+
// Top spacing adapts to head-hiding scenarios
|
|
283
|
+
const topPaddingCSS = `
|
|
284
|
+
#layout > ytmusic-nav-bar{
|
|
285
|
+
padding-top: 20px;
|
|
286
|
+
}
|
|
345
287
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
288
|
+
.columns .column #header,
|
|
289
|
+
.main > div > div.panel.give_me > div.header {
|
|
290
|
+
padding-top: 30px;
|
|
349
291
|
}
|
|
350
292
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
padding-bottom: 98px;
|
|
354
|
-
}
|
|
293
|
+
ytd-masthead>#container.style-scope.ytd-masthead {
|
|
294
|
+
padding-top: 12px;
|
|
355
295
|
}
|
|
356
296
|
|
|
357
|
-
#__next .
|
|
358
|
-
|
|
359
|
-
|
|
297
|
+
#__next header.HeaderBar_header__jn5ju{
|
|
298
|
+
padding-top: 16px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.geist-page nav.dashboard_nav__PRmJv,
|
|
302
|
+
#app > div.layout > div.header-container.showSearchBoxOrHeaderFixed > header > a {
|
|
303
|
+
padding-top:10px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.geist-page .submenu button{
|
|
307
|
+
margin-top:24px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.container-with-note #home, .container-with-note #switcher{
|
|
311
|
+
top: 30px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
#__next .overflow-hidden>.overflow-x-hidden .scrollbar-trigger > nav {
|
|
315
|
+
padding-top: 30px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
#__next > div.relative.z-0.flex.h-full.w-full.overflow-hidden > div.relative.flex.h-full.max-w-full.flex-1.flex-col.overflow-hidden > main > div.flex.h-full.flex-col > div.flex-1.overflow-hidden > div > div.absolute.left-0.right-0 > div > div.flex.items-center.gap-2 > button{
|
|
319
|
+
margin-left: 60px;
|
|
320
|
+
margin-right: -10px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
#__next>div>div>.flex.h-screen.w-full.flex-col.items-center {
|
|
324
|
+
padding-top: 20px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
#__next .sticky.left-0.right-0.top-0.z-20.bg-black{
|
|
328
|
+
padding-top: 0px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
#header-area > div > .css-gtiexd > div:nth-child(1) > div, #header-area .logoIcon .user-info{
|
|
332
|
+
padding-top: 20px;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
#__next > div.AnnouncementWrapper_container__Z51yh > div > aside.SidebarLayout_sidebar__SXeDJ.SidebarLayout_left__k163a > div > div > header{
|
|
336
|
+
padding-left: 84px;
|
|
337
|
+
padding-top: 10px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
#page .main_header, .cb-layout-basic--navbar,
|
|
341
|
+
#app .splitpanes.splitpanes--horizontal.no-splitter header,
|
|
342
|
+
.fui-FluentProvider .fui-Button[data-testid="HomeButton"],
|
|
343
|
+
#__next > div.PageWithSidebarLayout_centeringDiv___L9br > aside .ChatPageSidebar_logo__9PIXq {
|
|
344
|
+
padding-top: 20px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
#tabs-sidebar--tabpanel-0 > div.tw-flex.tw-items-center.tw-mb-\\[12px\\].tw-mt-\\[14px\\].tw-px-4 {
|
|
348
|
+
padding-top: 15px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
#tabs-sidebar--tabpanel-1 > div > div.tw-p-\\[16px\\].tw-flex.tw-flex-col.tw-gap-1\\.5{
|
|
352
|
+
padding-top: 30px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
#tabs-sidebar--tabpanel-2 > div > h2 {
|
|
356
|
+
padding-top: 20px;
|
|
357
|
+
height: 70px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.lark > .dashboard-sidebar, .lark > .dashboard-sidebar > .sidebar-user-info , .lark > .dashboard-sidebar .index-module_wrapper_F-Wbq{
|
|
361
|
+
padding-top:15px;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.lark > .main-wrapper [data-testid="aside"] {
|
|
365
|
+
top: 15px;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
#background.ytd-masthead {
|
|
369
|
+
height: 68px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.wrap.h1body-exist.max-container > div.menu-tocs > div.menu-btn{
|
|
373
|
+
top: 28px;
|
|
360
374
|
}
|
|
361
375
|
|
|
362
376
|
#pack-top-dom:active {
|
|
@@ -376,8 +390,21 @@ window.addEventListener('DOMContentLoaded', _event => {
|
|
|
376
390
|
-webkit-user-select: none;
|
|
377
391
|
z-index: 90000;
|
|
378
392
|
}
|
|
393
|
+
|
|
394
|
+
@media (max-width:767px){
|
|
395
|
+
#__next .overflow-hidden.w-full .max-w-full>.sticky.top-0 {
|
|
396
|
+
padding-top: 20px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
#__next > div.overflow-hidden.w-full.h-full main.relative.h-full.w-full.flex-1 > .flex-1.overflow-hidden .h-32.md\\:h-48.flex-shrink-0{
|
|
400
|
+
height: 0px;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
379
403
|
`;
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
|
|
404
|
+
const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
|
|
405
|
+
if (window.pakeWindowTitleTransparent && isMac) {
|
|
406
|
+
const topPaddingStyleElement = document.createElement('style');
|
|
407
|
+
topPaddingStyleElement.innerHTML = topPaddingCSS;
|
|
408
|
+
document.head.appendChild(topPaddingStyleElement);
|
|
409
|
+
}
|
|
383
410
|
});
|