File tree Expand file tree Collapse file tree 3 files changed +18
-19
lines changed
Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 1- class Plugin {
2- #ctx;
3-
4- constructor ( ctx ) {
5- this . #ctx = ctx ;
6- }
7-
8- onLoad ( ) {
9- const settingButton = document . querySelector ( '#setting' ) ;
10- if ( ! settingButton ) return ;
11- settingButton . style . display = 'flex' ;
12- logger . info ( "Successfully show Setting Button!" ) ;
13- }
14- }
15-
16- module . exports = Plugin ;
1+ module . exports = function ( ctx ) {
2+ ctx . on ( 'load' , ( ) => {
3+ document . getElementById ( 'setting' ) . style . display = 'flex' ;
4+ logger . info ( 'Successfully show Setting Button!' ) ;
5+ } ) ;
6+ } ;
Original file line number Diff line number Diff line change 11{
2- "name" : " Setting Button " ,
3- "version" : " 1.0.1 " ,
2+ "name" : " setting " ,
3+ "version" : " 1.0.2 " ,
44 "description" : {
55 "zh_tw" : " TREM-Lite Setting Button Plugin"
66 },
7- "author" : [" cstrikeasia" ],
7+ "author" : [" cstrikeasia" , " ExpTech" ],
8+ "auto-enable" : true ,
89 "dependencies" : {
910 "trem" : " >=3.0.0"
1011 },
Original file line number Diff line number Diff line change 1+ {
2+ "timestamp" : 1733090455681 ,
3+ "fileHashes" : {
4+ "index.js" : " 9348689b89875a4934b97c9b4ff1b492301877daf3b3219861b4c502088e2752" ,
5+ "info.json" : " 8d4570b1abdc1b8bb6036f39002c809562dc87e9bb0b0a3f605cf7ff23463d7c"
6+ },
7+ "signature" : " SF7GiNt/+y0Ah6vL9793lW8ri5SJ5wHWumRn1TWEd5SGAYu2bBDRVR229vUrJpapXVpBFEEcr0TSZCnfw5nY9dfWwj1fn6ry+et5Ijmd/r9+m8ipksy+5Pcp/Nlzz9ZXw1s9muhr87KHrBNITyLhWbcpHpND9vw3vIBrz0kdbWbmqKa1IRkZha6fRXJ6Q1ecq8vGp0Qn4Xv5Vxq1FranpmIqHP7aoB4zOSMMfZIvjxab5t7lpvI59f9o5BBOObYwDLCPiImcL/q+Gsz7jqbpbkcCeO2k1wFaStc1J9wdwqgEzYgXJgSOjA7tXwqMRAR9VhuCr/0azuQUiJ+5uUr7BQ=="
8+ }
You can’t perform that action at this time.
0 commit comments