File tree Expand file tree Collapse file tree 14 files changed +633
-689
lines changed
Expand file tree Collapse file tree 14 files changed +633
-689
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ const migrations = {
1919 ...pluginOptions ,
2020 } ) ;
2121 }
22+
23+ if ( store . get ( "options.ForceShowLikeButtons" ) ) {
24+ store . delete ( "options.ForceShowLikeButtons" ) ;
25+ store . set ( "options.likeButtons" , 'force' ) ;
26+ }
2227 } ,
2328 ">=1.17.0" : ( store ) => {
2429 setDefaultPluginOptions ( store , "picture-in-picture" ) ;
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ autoUpdater.autoDownload = false;
3434const gotTheLock = app . requestSingleInstanceLock ( ) ;
3535if ( ! gotTheLock ) app . exit ( ) ;
3636
37- app . commandLine . appendSwitch (
38- "js-flags" ,
39- // WebAssembly flags
40- "--experimental-wasm-threads"
41- ) ;
4237app . commandLine . appendSwitch ( "enable-features" , "SharedArrayBuffer" ) ; // Required for downloader
4338app . allowRendererProcessReuse = true ; // https://github.com/electron/electron/issues/18397
4439if ( config . get ( "options.disableHardwareAcceleration" ) ) {
Original file line number Diff line number Diff line change @@ -93,12 +93,33 @@ const mainMenuTemplate = (win) => {
9393 } ,
9494 } ,
9595 {
96- label : "Force show like buttons" ,
97- type : "checkbox" ,
98- checked : config . get ( "options.ForceShowLikeButtons" ) ,
99- click : ( item ) => {
100- config . set ( "options.ForceShowLikeButtons" , item . checked ) ;
101- } ,
96+ label : "Like buttons" ,
97+ submenu : [
98+ {
99+ label : "Default" ,
100+ type : "radio" ,
101+ checked : ! config . get ( "options.likeButtons" ) ,
102+ click : ( ) => {
103+ config . set ( "options.likeButtons" , '' ) ;
104+ } ,
105+ } ,
106+ {
107+ label : "Force show" ,
108+ type : "radio" ,
109+ checked : config . get ( "options.likeButtons" ) === 'force' ,
110+ click : ( ) => {
111+ config . set ( "options.likeButtons" , 'force' ) ;
112+ }
113+ } ,
114+ {
115+ label : "Hide" ,
116+ type : "radio" ,
117+ checked : config . get ( "options.likeButtons" ) === 'hide' ,
118+ click : ( ) => {
119+ config . set ( "options.likeButtons" , 'hide' ) ;
120+ }
121+ } ,
122+ ] ,
102123 } ,
103124 {
104125 label : "Theme" ,
Original file line number Diff line number Diff line change 106106 "npm" : " Please use yarn instead"
107107 },
108108 "dependencies" : {
109- "@cliqz/adblocker-electron" : " ^1.25.2 " ,
109+ "@cliqz/adblocker-electron" : " ^1.26.0 " ,
110110 "@ffmpeg/core" : " ^0.11.0" ,
111111 "@ffmpeg/ffmpeg" : " ^0.11.6" ,
112112 "@foobar404/wave" : " ^2.0.4" ,
115115 "browser-id3-writer" : " ^4.4.0" ,
116116 "butterchurn" : " ^2.6.7" ,
117117 "butterchurn-presets" : " ^2.4.7" ,
118- "chokidar" : " ^3.5.3" ,
119118 "custom-electron-prompt" : " ^1.5.7" ,
120119 "custom-electron-titlebar" : " ^4.1.6" ,
121120 "electron-better-web-request" : " ^1.0.1" ,
135134 "node-fetch" : " ^2.6.8" ,
136135 "simple-youtube-age-restriction-bypass" : " https://gitpkg.now.sh/api/pkg.tgz?url=zerodytrash/Simple-YouTube-Age-Restriction-Bypass&commit=v2.5.4" ,
137136 "vudio" : " ^2.1.1" ,
138- "youtubei.js" : " ^2.9.0" ,
139- "ytdl-core" : " ^4.11.1" ,
137+ "youtubei.js" : " ^3.1.1" ,
140138 "ytpl" : " ^2.3.0"
141139 },
142140 "devDependencies" : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments