-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDarkExt.json
More file actions
696 lines (696 loc) · 14 KB
/
Copy pathDarkExt.json
File metadata and controls
696 lines (696 loc) · 14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
{
// 4-character identifer that uniquely identifies your extension.
// Can be letters, numbers, or punctuation, but must be 4 ASCII characters.
"Identifier": "WCLP",
"Dependencies": "",
"UK English": {
"About": {
"Name": "WebClippy",
"Author": "Mustafa Hamad (Linky)",
"Copyright": "Copyright \u00A9 2025-2026 by Mustafa Hamad",
"Comment": "\"WebClippy\" - A Clipboard HTML5 extension, providing secure read/write access to plain text data with async request handling, paste event capture, success/failure conditions, and full compliance with browser security restrictions. (Ext v1.0.1 (3))",
"Help": "Help/WebClippy/README.md",
"URL": "https://x.com/JUSTlink7"
},
"ActionMenu": [
/*[ 0, "Action Example" ],
"---",
[ "Sub Menu",
[ 1, "Second Action Example" ]
]*/
"---",
[
"Clipboard Operations",
[ 0, "Write Text" ],
[ 1, "Read Text" ],
"---",
[ 2, "Clear Clipboard" ]
],
"---",
[
"Paste Capture",
[ 3, "Enable Paste Capture" ],
[ 4, "Disable Paste Capture" ]
],
"---",
[
"Armed Operations",
[ 5, "Arm Next Click -> Read" ],
[ 6, "Arm Next Click -> Write" ]
],
"---",
[
"Permissions",
[ 7, "Query Read Permission" ],
[ 8, "Query Write Permission" ],
[ 9, "Warm-Up Read Permission" ]
],
"---",
[
"Utilities",
//[ 10, "Reset Errors" ],
[ 11, "Set Operation Timeout" ]
],
"---"
],
"ConditionMenu": [
/*[ 0, "Are two numbers equal?" ]*/
"---",
[
"Clipboard Events",
[ 0, "On Read Success" ],
[ 1, "On Read Failed" ],
"---",
[ 2, "On Write Success" ],
[ 3, "On Write Failed" ],
"---",
[ 4, "On Timeout" ],
"---",
[ 5, "On Paste" ]
],
"---",
[
"Permission Events",
[ 6, "On Read Permission Result" ],
[ 7, "On Write Permission Result" ]
],
"---",
[
"Armed Events",
[ 8, "On Armed Gesture Fired" ]
],
"---",
[
"Checks",
[ 9, "Is API Supported?" ],
[ 10, "Has User Activation?" ],
[ 11, "Has Focus?" ],
[ 12, "Is Visible?" ]
],
"---"
],
"ExpressionMenu": [
/*[ 0, "Add two numbers" ],
[ 1, "Hello world" ]*/
"---",
[
"Clipboard Data",
[ 0, "Clipboard Text" ],
[ 1, "Paste Text" ],
"---",
[
"[TAG] Pending Operation",
[ 14, "Pending Operation" ],
[ 15, "Pending Operation Code" ],
"---",
[
"[TAG] Operations",
[
"[TAG] Operation Codes",
[ 36, "None" ],
"---",
[ 37, "Read" ],
[ 38, "Write" ]
],
"---",
[
"[TAG] Operation Names",
[ 38, "None" ],
"---",
[ 39, "Read" ],
[ 40, "Write" ]
]
]
]
],
"---",
[
"Error Handling",
//[ 2, "Has Error" ],
[ 3, "Last Error" ],
[ 4, "Last Error Message" ],
[ 5, "Last Error Code" ],
"---",
[
"[TAG] Errors",
[
"[TAG] Error Codes",
[ 16, "OK" ],
[ 17, "Not Allowed" ],
[ 18, "Not Found" ],
[ 19, "Security" ],
[ 20, "Type" ],
"---",
[ 21, "Unknown" ]
],
"---",
[
"[TAG] Error Names",
[ 22, "OK" ],
[ 23, "Not Allowed" ],
[ 24, "No tFound" ],
[ 25, "Security" ],
[ 26, "Type" ],
"---",
[ 27, "Unknown" ]
]
]
],
"---",
[
"Permission States",
[ 6, "Read Permission State" ],
[ 7, "Read Permission Code" ],
"---",
[ 8, "Write Permission State" ],
[ 9, "Write Permission Code" ],
"---",
[
"[TAG] Permissions",
[
"[TAG] Permission Codes",
[ 28, "Granted" ],
[ 29, "Prompt" ],
[ 30, "Denied" ],
"---",
[ 31, "Unsupported" ]
],
"---",
[
"[TAG] Permission Names",
[ 32, "Granted" ],
[ 33, "Prompt" ],
[ 34, "Denied" ],
"---",
[ 35, "Unsupported" ]
]
]
],
"---",
[
"Checks",
[ 10, "Is Supported" ],
[ 11, "Has User Activation" ],
[ 12, "Has Focus" ],
[ 13, "Is Visible" ]
],
"---"
],
"Actions": [
/*{
"Title": "Action Example with parameter %0",
"Parameters": [
[ "Integer", "Example Parameter" ]
]
},
{
"Title": "Second Action Example"
}*/
// 0 - Write Text
{
"Title": "Write Text %0",
"Parameters": [
[ "Text", "Text to write to clipboard" ]
]
},
// 1 - Read Text
{
"Title": "Read Text"
},
// 2 - Clear Clipboard
{
"Title": "Clear Clipboard"
},
// 3 - Enable Paste Capture
{
"Title": "Enable Paste Capture (Element ID: %0, Capture on Doc: %1)",
"Parameters": [
[ "Text", "Element ID (Can be left as Empty if Capture on Document)" ],
[ "Integer", "Capture on Document (0/1)" ]
]
},
// 4 - Disable Paste Capture
{
"Title": "Disable Paste Capture"
},
// 5 - Arm Next Click Read
{
"Title": "Arm Next Click -> Read"
},
// 6 - Arm Next Click Write
{
"Title": "Arm Next Click -> Write %0",
"Parameters": [
[ "Text", "Text to write" ]
]
},
// 7 - Query Read Permission
{
"Title": "Query Read Permission"
},
// 8 - Query Write Permission
{
"Title": "Query Write Permission"
},
// 9 - Warm-Up Read Permission
{
"Title": "Warm-Up Read Permission"
},
// 10 - Reset Errors
{
"Title": "Reset Errors"
},
// 11 - Set Operation Timeout
{
"Title": "Set Operation Timeout to %0",
"Parameters": [
[ "Time", "Operation Timeout" ]
]
}
],
"Conditions": [
/*{
"Title": "%o : Are %0 and %1 equal?",
"Triggered": false,
"Parameters": [
[ "Integer", "First number" ],
[ "Integer", "Second number" ]
]
}*/
// 0 - On Read Success
{
"Title": "%o : On Read Success",
"Triggered": true
},
// 1 - On Read Failed
{
"Title": "%o : On Read Failed",
"Triggered": true
},
// 2 - On Write Success
{
"Title": "%o : On Write Success",
"Triggered": true
},
// 3 - On Write Failed
{
"Title": "%o : On Write Failed",
"Triggered": true
},
// 4 - On Timeout
{
"Title": "%o : On Timeout",
"Triggered": true
},
// 5 - On Paste
{
"Title": "%o : On Paste",
"Triggered": true
},
// 6 - On Read Permission Result
{
"Title": "%o : On Read Permission Result",
"Triggered": true
},
// 7 - On Write Permission Result
{
"Title": "%o : On Write Permission Result",
"Triggered": true
},
// 8 - On Armed Gesture Fired
{
"Title": "%o : On Armed Gesture Fired",
"Triggered": true
},
// 9 - Is API Supported?
{
"Title": "%o : Is API Supported?",
"Triggered": false
},
// 10 - Has User Activation?
{
"Title": "%o : Has User Activation?",
"Triggered": false
},
// 11 - Has Focus?
{
"Title": "%o : Has Focus?",
"Triggered": false
},
// 12 - Is Visible?
{
"Title": "%o : Is Visible?",
"Triggered": false
}
],
"Expressions": [
/*{
"Title": "Add(",
"Returns": "Integer",
"Parameters": [
[ "Integer", "First number" ],
[ "Integer", "Second number" ]
]
},
{
"Title": "HelloWorld$(",
"Returns": "Text"
}*/
// 0 - ClipboardText
{
"Title": "ClipboardText$(",
"Returns": "Text"
},
// 1 - PasteText
{
"Title": "PasteText$(",
"Returns": "Text"
},
// 2 - HasError
{
"Title": "HasError(",
"Returns": "Integer"
},
// 3 - LastError
{
"Title": "LastError$(",
"Returns": "Text"
},
// 4 - LastErrorMessage
{
"Title": "LastErrorMessage$(",
"Returns": "Text"
},
// 5 - LastErrorCode
{
"Title": "LastErrorCode(",
"Returns": "Integer"
},
// 6 - PermissionReadState
{
"Title": "PermissionReadState$(",
"Returns": "Text"
},
// 7 - PermissionReadStateCode
{
"Title": "PermissionReadStateCode(",
"Returns": "Integer"
},
// 8 - PermissionWriteState
{
"Title": "PermissionWriteState$(",
"Returns": "Text"
},
// 9 - PermissionWriteStateCode
{
"Title": "PermissionWriteStateCode(",
"Returns": "Integer"
},
// 10 - IsSupported
{
"Title": "IsSupported(",
"Returns": "Integer"
},
// 11 - HasUserActivation
{
"Title": "HasUserActivation(",
"Returns": "Integer"
},
// 12 - HasFocus
{
"Title": "HasFocus(",
"Returns": "Integer"
},
// 13 - IsVisible
{
"Title": "IsVisible(",
"Returns": "Integer"
},
// 14 - PendingOp
{
"Title": "PendingOp$(",
"Returns": "Text"
},
// 15 - PendingOpCode
{
"Title": "PendingOpCode(",
"Returns": "Integer"
},
// 16 - TAG_ErrOK
{
"Title": "TAG_ErrOK(",
"Returns": "Integer"
},
// 17 - TAG_ErrNotAllowed
{
"Title": "TAG_ErrNotAllowed(",
"Returns": "Integer"
},
// 18 - TAG_ErrNotFound
{
"Title": "TAG_ErrNotFound(",
"Returns": "Integer"
},
// 19 - TAG_ErrSecurity
{
"Title": "TAG_ErrSecurity(",
"Returns": "Integer"
},
// 20 - TAG_ErrType
{
"Title": "TAG_ErrType(",
"Returns": "Integer"
},
// 21 - TAG_ErrUnknown
{
"Title": "TAG_ErrUnknown(",
"Returns": "Integer"
},
// 22 - TAG_ErrNameOK
{
"Title": "TAG_ErrNameOK$(",
"Returns": "Text"
},
// 23 - TAG_ErrNameNotAllowed
{
"Title": "TAG_ErrNameNotAllowed$(",
"Returns": "Text"
},
// 24 - TAG_ErrNameNotFound
{
"Title": "TAG_ErrNameNotFound$(",
"Returns": "Text"
},
// 25 - TAG_ErrNameSecurity
{
"Title": "TAG_ErrNameSecurity$(",
"Returns": "Text"
},
// 26 - TAG_ErrNameType
{
"Title": "TAG_ErrNameType$(",
"Returns": "Text"
},
// 27 - TAG_ErrNameUnknown
{
"Title": "TAG_ErrNameUnknown$(",
"Returns": "Text"
},
// 28 - TAG_PermGranted
{
"Title": "TAG_PermGranted(",
"Returns": "Integer"
},
// 29 - TAG_PermPrompt
{
"Title": "TAG_PermPrompt(",
"Returns": "Integer"
},
// 30 - TAG_PermDenied
{
"Title": "TAG_PermDenied(",
"Returns": "Integer"
},
// 31 - TAG_PermUnsupported
{
"Title": "TAG_PermUnsupported(",
"Returns": "Integer"
},
// 32 - TAG_PermNameGranted
{
"Title": "TAG_PermNameGranted$(",
"Returns": "Text"
},
// 33 - TAG_PermNamePrompt
{
"Title": "TAG_PermNamePrompt$(",
"Returns": "Text"
},
// 34 - TAG_PermNameDenied
{
"Title": "TAG_PermNameDenied$(",
"Returns": "Text"
},
// 35 - TAG_PermNameUnsupported
{
"Title": "TAG_PermNameUnsupported$(",
"Returns": "Text"
},
// 36 - TAG_OpNone
{
"Title": "TAG_OpNone(",
"Returns": "Integer"
},
// 37 - TAG_OpRead
{
"Title": "TAG_OpRead(",
"Returns": "Integer"
},
// 38 - TAG_OpWrite
{
"Title": "TAG_OpWrite(",
"Returns": "Integer"
},
// 39 - TAG_OpNameNone
{
"Title": "TAG_OpNameNone$(",
"Returns": "Text"
},
// 40 - TAG_OpNameWrite
{
"Title": "TAG_OpNameRead$(",
"Returns": "Text"
},
// 41 - TAG_OpNameWrite
{
"Title": "TAG_OpNameWrite$(",
"Returns": "Text"
}
],
"Properties": [
/*{
"Title": "Folder of props",
"Info": "Folder information",
"Type": "Folder"
},
{
"Title": "Checkbox within folder",
"Info": "Should be bold text.",
"Type": "Checkbox",
"DefaultState": true, // or false
"Bold": true
},
{
"Type": "FolderEnd"
},
{
"Title": "Static text 1",
"Info": "Blank text",
"Type": "Text",
"DefaultState": "Static text, default state. Or default text."
},
{
"Title": "Static text 2",
"Info": "Blank text, bold",
"Type": "Text",
"DefaultState": "Bolded static text",
"Bold": true
},
{
"Title": "Editable 3",
"Info": "Shouldn't be bold.",
"Type": "Edit button",
"DefaultState": "Button text"
},
{
"Title": "Editable 4",
"Info": "Fusion ignores the bold setting.",
"Type": "Edit button",
"DefaultState": "Bolded button text",
"Bold": true
},
{
"Title": "Editable 5",
"Info": "Still set to bold, and bold is ignored.",
"DefaultState": "Default text",
"Type": "Editbox String",
"Bold": true
},
{
"Title": "Editable 6",
"Info": "Force uppercase on the input text.",
"Type": "Editbox String",
"DefaultState": "Default text, made uppercase",
"Case": "Upper"
},
{
"Title": "Editable 7",
"Info": "This one should be limited to 25 characters.",
"Type": "Editbox String",
"DefaultState": "Default text, made lowercase",
"Case": "Lower",
"MaxLength": 25
},
{
"Title": "Editable 8",
"Info": "Number limited between 20 and 25",
"Type": "Editbox Number",
"DefaultState": 21,
"Minimum": 20,
"Maximum": 25
}*/
{
"Title": "General",
"Info": "General configuration for clipboard behavior.",
"Type": "Group"
},
{
"Title": "Require User Gesture",
"Info": "If ON, Read/Write should only be attempted inside a user gesture.",
"Type": "Checkbox",
"DefaultState": true
},
{
"Title": "Operation Timeout (MS)",
"Info": "Timeout for read/write attempts in milliseconds.",
"Type": "Edit spin",
"DefaultState": 5000,
"Minimum": 1,
"Maximum": 2147483647
},
/*{
"Title": "Legacy Copy Fallback",
"Info": "Use execCommand copy fallback.",
"Type": "Checkbox",
"DefaultState": false
},*/
{
"Title": "Advanced",
"Info": "Advanced options.",
"Type": "Group"
},
{
"Title": "Debug Mode",
"Info": "Log errors and warnings for debugging. Please don't forget to UNCHECK before Final Build!",
"Type": "Checkbox",
"DefaultState": false
},
/*{
"Title": "Paste Capture Scope",
"Info": "Document or ElementById scope for paste capture.",
"Type": "Combo Box",
"Items": [
"Document",
"Element by ID"
],
"DefaultState": "Document"
},*/
{
"Title": "Block When Unfocused/Hidden",
"Info": "Block clipboard operations if app is unfocused or hidden.",
"Type": "Checkbox",
"DefaultState": true
}
]
}
}