-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnew.js
978 lines (913 loc) · 50.5 KB
/
new.js
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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
(function() {
class ButtonElement {
constructor(element, name) {
this.e = document.createElement(element);
this.e.id = name;
}
setOnClickHandler(onClickHandler) {
this.e.onclick = onClickHandler;
}
}
function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
var isDragging = false; // Track if the element is being dragged
if (document.getElementById(elmnt.id + "header")) {
document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
} else {
elmnt.onmousedown = dragMouseDown;
}
function disableClick() {
elmnt.removeEventListener("click", preventClick);
}
function enableClick() {
elmnt.addEventListener("click", preventClick);
}
function preventClick(e) {
e.preventDefault();
e.stopPropagation();
}
function dragMouseDown(e) {
e = e || window.event;
if (e.target.tagName === "INPUT") {
// If the clicked element is an input box, don't initiate dragging
return;
}
e.preventDefault();
isDragging = true;
disableClick(); // Disable click during dragging
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
document.onmousemove = elementDrag;
}
function elementDrag(e) {
if (!isDragging) {
return;
}
e = e || window.event;
e.preventDefault();
// Calculate the new position of the element
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// Calculate the maximum and minimum allowed X and Y positions
const maxX = window.innerWidth - elmnt.offsetWidth;
const maxY = window.innerHeight - elmnt.offsetHeight;
const minX = 0;
const minY = 0;
// Apply constraints to the new position
const newX = Math.max(minX, Math.min(elmnt.offsetLeft - pos1, maxX));
const newY = Math.max(minY, Math.min(elmnt.offsetTop - pos2, maxY));
elmnt.style.top = newY + "px";
elmnt.style.left = newX + "px";
}
function closeDragElement() {
isDragging = false;
enableClick(); // Re-enable click after dragging is completed
document.onmouseup = null;
document.onmousemove = null;
}
}
const mainframe = new ButtonElement("div", "mainframe");
const topbar = new ButtonElement("div", "topBar");
const topContainer = new ButtonElement("div", "topContainer");
const gameframe = new ButtonElement("div", "gameframe");
const minbar = new ButtonElement("div", "minbar");
const close = new ButtonElement("button", "close");
const min = new ButtonElement("button", "min");
const open = new ButtonElement("button", "open");
const h1 = new ButtonElement("h1", "h1");
const text = new ButtonElement("p", "text");
const img = new ButtonElement("img", "");
mainframe.e.appendChild(topContainer.e);
mainframe.e.appendChild(h1.e);
mainframe.e.appendChild(text.e);
topContainer.e.appendChild(topbar.e);
topbar.e.appendChild(close.e);
topbar.e.appendChild(min.e);
topbar.e.appendChild(open.e);
img.e.src = "data:image/jpeg;base64,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";
h1.e.textContent = "Luminesence"
text.e.textContent = "An advanced hack client"
const buttons = [];
const buttonContent = [
"Change Tabname",
"Flood History",
"Change Theme",
"Darkmode Page",
"Notepad",
"Games",
"Local Storage Viewer",
"Autoclicker",
"Popup Browser",
"Lumi Console",
];
while (buttons.length < 10) {
const buttonName = `button_${buttons.length + 1}`;
const newButton = new ButtonElement("button", buttonName);
newButton.e.innerText = buttonContent[buttons.length];
newButton.e.className = "btn";
buttons.push(newButton);
}
for (const button of buttons) {
mainframe.e.appendChild(button.e);
}
const buttonClickHandlers = {
0: () => {
text.e.textContent = 'Activated tab cloak';
document.title = prompt("Name of tab:");
},
1: () => {
text.e.textContent = "Activating history flood.";
javascript:var num=prompt('How Times Do You Want This Page To Show Up In your History?');done=false;x=window.location.href;for (var i=1; i<=num; i++){history.pushState(0, 0, i==num?x:i.toString());if(i==num){done=true}}if(done===true){alert('Flooding Successful!\n '+window.location.href+' \nIs Now In Your History '+num+(num==1?' time.':' Times.'))}
},
2: () => {
text.e.textContent = "Toggling theme.";
const themeMap = {
dark: 'dark',
light: 'light',
solar: 'solar'
};
const theme = localStorage.getItem('theme')
|| (tmp = Object.keys(themeMap)[0],
localStorage.setItem('theme', tmp),
tmp);
const bodyClass = document.getElementById("mainframe").classList;
bodyClass.add(theme);
function toggleTheme() {
const current = localStorage.getItem('theme');
const next = themeMap[current];
bodyClass.replace(current, next);
localStorage.setItem('theme', next);
}
toggleTheme();
},
3: () => {
javascript:(function(){var newSS, styles='* { background: black !important; color: #C0C0C0 !important; line-height:1.7em !important} :link, :link * { color: #0099FF !important } :visited, :visited * { color: #6666CC !important }'; if(document.createStyleSheet) { document.createStyleSheet("javascript:'"+styles+"'"); } else { newSS=document.createElement('link'); newSS.rel='stylesheet'; newSS.href='data:text/css,'+escape(styles); document.getElementsByTagName("head")[0].appendChild(newSS); } })();
},
4: () => {
text.e.textContent = "Opened notepad.";
const notepad = new ButtonElement("div", "notepad");
notepad.e.classList.add("notepad-container");
const notepadContainer = new ButtonElement("div", "notepadContainer");
notepad.e.appendChild(notepadContainer.e);
const textarea = new ButtonElement("textarea", "textarea");
textarea.e.classList.add("notepad-textarea");
notepadContainer.e.appendChild(textarea.e);
const buttonContainer = new ButtonElement("div", "buttonContainer");
buttonContainer.e.classList.add("notepad-button-container");
notepadContainer.e.appendChild(buttonContainer.e);
const storedValue = localStorage.getItem("notepadValue");
if (storedValue) {
textarea.e.value = storedValue;
}
const run = new ButtonElement("button", "run");
run.e.classList.add("notepad-button", "notepad-run");
run.e.innerText = "Run";
buttonContainer.e.appendChild(run.e);
run.e.addEventListener("click", () => {
try {
eval(textarea.e.value);
} catch (error) {
alert(`Error: ${ error.message }`);
}
})
const cl = new ButtonElement("button", "cl");
cl.e.classList.add("notepad-button");
cl.e.innerText = "Close";
buttonContainer.e.appendChild(cl.e);
cl.e.addEventListener("click", () => {
localStorage.setItem("notepadValue", textarea.e.value);
notepad.e.remove();
})
document.body.appendChild(notepad.e);
},
5: () => {
const gameContent = [
"Snake",
"Pinball",
"2048",
"The House",
"The Wall",
"Astroids",
];
const gameOnclick = [
function() {javascript:Q=64;m=b=Q*Q;a=[P=l=u=d=p=S=w=0];u=89;f=(h=j=t=(b+Q)/2)-1;(B=(D=document).body).appendChild(x=D.createElement('p'));(X=x.style).position='fixed';X.left=X.top=0;X.background='#FFF';x.innerHTML='<p></p><canvas>';v=(s=x.childNodes)[0];(s=s[1]).width=s.height=5*Q;c=s.getContext('2d'); onkeydown=onblur=F=function(e,g){g?a[f]?(w+=m,f=Math.random(l+=8)*(R=Q-2)*R|(u=0),F(f+=Q+1+2*(f/R|0),g)):F(f):0>e?(l?--l:(y=t,t=a[t]-2,F(y)),S+=(w*=0.8)/4,m=999/(u++ +10),a[h+=[-1,-Q,1,Q][d=p]]?B.removeChild(x,alert('Game Over')):(F(h),F(e,j=h),v.innerHTML=P?(setTimeout(F,50,e,0),S|0):'Press P')):-e?(y=(a[e]=e<Q|e>=Q*Q-Q|!(e%Q)|e%Q==Q-1|2*(e==h))+(e==f),e==h&&(a[j]=2+h),c.fillStyle='hsl('+99*!a[e]+','+2*m+'%,'+50*y+'%)',c.fillRect(e%Q*5,5*(e/Q|0),5,5)):isNaN(y=e.keyCode-37)|43==y?(P=y&&!P)&&F(-1): p=!P|y&-4|!(y^2^d)?p:y;return!1};for(;--b;F(b));void F(-1);},
function() {javascript:(function(){var js=document.body.appendChild(document.createElement("script"));js.onerror=function(){alert("Sorry, the script could not be loaded.")};js.src="https://rawgit.com/Krazete/bookmarklets/master/lupire.js"})();},
function() {javascript:(t=>{var s=document.createElement(t);s.type='text/java'+t;s.src='https://sheeptester.github.io/javascripts/2048.js';document.body.appendChild(s);})('script');},
function() {javascript:var s=document.createElement('script');s.type='text/javascript';s.src='https://sheeptester.github.io/thingkingland/bookmarklets/theHouse.js';document.body.appendChild(s);},
function() {javascript:t=document.title;document.title="Loading...";r=new XMLHttpRequest();r.onload=function(e){eval(e.currentTarget.responseText)};r.open("GET","https://plainsightcollection.github.io/web/wallball/ldr.js",true);r.send();undefined;},
function() {javascript:var s=document.createElement('script');s.type='text/javascript';s.onerror=function(e){alert('Failed to load the script. The site\'s Content Security Policy might be blocking it. Feel free to try again.');};document.body.appendChild(s);s.src='https://blog.roysolberg.com/js/dom2.min.js';void(0);},
];
if (document.getElementById("gameframe")) {
text.e.textContent = "Closed Games.";
while (gameframe.e.childNodes.length > 0) {
gameframe.e.removeChild(gameframe.e.lastChild);
}
gameframe.e.remove();
return;
} else {
text.e.textContent = "Opened Games.";
mainframe.e.appendChild(gameframe.e);
const games = [];
for (let i = 0; i < 6; i++) {
const gameName = `game_${i + 1}`;
const newGame = new ButtonElement("button", gameName);
newGame.e.innerText = gameContent[i];
newGame.e.className = "btn";
if (gameOnclick[i]) {
newGame.e.addEventListener("click", gameOnclick[i]);
}
games.push(newGame);
}
for (const game of games) {
gameframe.e.appendChild(game.e);
}
}
},
6: () => {
javascript:(function(){function l(a,b){b=a.target,a.preventDefault();var d=b.getAttribute("data-k");switch(b.className){case"lc":h.removeItem(d),k();break;case"lv":b.parentNode.innerHTML="<pre>"+h[d]+"</pre>";break;case"lca":h.clear(),k();break;case"sc":i.removeItem(d),k();break;case"sv":b.parentNode.innerHTML="<pre>"+i[d]+"</pre>";break;case"sca":i.clear(),k();break;case"x":c.style.display="none"}}function k(){e=j+"<tr><th colspan=3><h1>localStorage inspector</h1><th><a href=# class=x>close</a><tr><th>storage key<th>size<th><th><a href=# class=lca>clear all</a>",e+=h.length?"":"<tr><td>No Data";for(d=0;d<h.length;d++)g=h.key(d),e+=("<tr><td>$<td>"+h[g].length+"<td><a href=# data-k=\"$\" class=lv>view</a><td><a href=# data-k=\"$\" class=lc>clear</a>").replace(/\$/g,g);e+="<tr><th colspan=3><h1>sessionStorage</h1><tr><th>storage key<th>size<th><th><a href=# class=sca>clear all</a>",e+=i.length?"":"<tr><td>No Data";for(d=0;d<i.length;d++)g=i.key(d),e+=("<tr><td>$<td>"+i[g].length+"<td><a href=# data-k=\"$\" class=sv>view</a><td><a href=# data-k=\"$\" class=sc>clear</a>").replace(/\$/g,g);c.innerHTML=e}var a=document,b="localStorageList",c=a.getElementById(b),d,e,f,g,h=window.localStorage,i=window.sessionStorage,j="<style>$ th, $ td {padding:0 1em;text-align:left;}$ th{font-weight:bold}$ pre{max-width:400px;max-height:300px;overflow:auto;white-space:pre-wrap;}$ h1{font:16px/32px sans-serif;}</style>".replace(/\$/g,"#"+b);c||(c=a.createElement("table"),a.body.appendChild(c),c.addEventListener("click",l,!1)),c.setAttribute("id",b),c.setAttribute("style","position:fixed;top:20px;right:20px;padding:20px;background:#fff;font:12px/20px monospace;z-index:99999;max-height:100%;overflow:auto;border-radius:10px;border:2px solid #000"),c.style.display="block",k()})()
},
7: () => {
var acurrentElement=document.body,a_enabled=!1,aEnableKey="[";alert('AutoClicker activated! Use "[" to toggle it!\n\nChange the keybind with "\\".'),document.addEventListener("mouseover",function(e){acurrentElement=e.target}),window.addEventListener("keydown",function(e){e.key==aEnableKey?a_enabled=!a_enabled:"\\"==e.key&&(aEnableKey=prompt("Change keybind:")[0].toLowerCase())}),setInterval(function(){a_enabled&&acurrentElement.click()},1);
},
8: () => {
const site = window.prompt("What site do you want opened?");
window.open(site, site, "toolbar=no, location=no");
return text.e.textContent = "Popup Window";
},
9: () => {
if (document.getElementById("mainCommand")) {
document.getElementById("mainCommand").remove();
return text.e.textContent = "Closed Lumi console"
}
const mainCommand = new ButtonElement("div", "mainCommand");
const input = new ButtonElement("input", "input");
const box = new ButtonElement("div", "box");
const output = new ButtonElement("span", "output");
mainframe.e.appendChild(mainCommand.e);
mainCommand.e.appendChild(input.e);
mainCommand.e.appendChild(box.e);
box.e.appendChild(output.e);
text.e.textContent = "Opened Lumi console";
input.e.style.color = "black";
input.e.placeholder = "lumi help";
input.e.addEventListener('keyup', (event) => {
if (event.keyCode === 13) {
/* put any functions in here */
if (!input.e.value.includes("lumi")) {
output.e.innerHTML += "Please put lumi in front of any commands. See 'lumi help'.<br/>"
}
let value = input.e.value.replace("lumi", "");
function end(props) {
try {
const result = eval(props);
output.e.innerHTML += `Input: ${props}<br/>`;
output.e.innerHTML += `Result: ${result}<br/>`;
} catch (error) {
return (output.e.innerHTML += `Error: ${error.message}<br/>`);
}
}
if (value.includes("!ignore")) {
value = value.replace("!ignore", "");
return end(value);
}
if (value.includes("help")) {
return output.e.innerHTML += "The commands are: help, more {command} console {color}, text {color}, create {command} {code}, edit, xray, about:blank, delete css, 3d, neon, install Vengeance. Use !ignore to eval statements without commands.<br/>";
}
if (value.includes("more")) {
const words = value.split(" ");
const moreIndex = words.findIndex(word => word === "more");
const commands = [
"ignore",
"console",
"text",
"create",
"edit",
"xray",
"about:blank",
"delete css",
"3d",
"neon",
"clear cookies",
"install Vengeance",
"help",
"more"
];
const description = [
"evaluates commands from the inputed text-without interpreting command names",
"changes the windows color, by directly setting it. console {color}",
"changes the windows text color. text {color}",
"creates custom commands, from this format. create {functionName} {{code}} {run, async, unsave, log, redirect {site}, delay {time}, popup {site}}",
"allows text to be directly edited",
"allows inspection of elements on a page",
"opens a new site within an iframe using about:blank, cannot unblock sites. about:blank {site}",
"removes all CSS on a page",
"adds layers to a page, making it seem 3d",
"applies CSS to make the page look neon",
"removes all cookies and stored data on a page",
"installs a third-party client onto the current page",
"shows available commands to execute",
"gives detailed information about the command"
];
if (moreIndex !== -1 && moreIndex + 1 < words.length) {
const command = words[moreIndex + 1].trim();
const commandIndex = commands.indexOf(command);
if (commandIndex !== -1 && commandIndex < description.length) {
const commandDescription = description[commandIndex];
return output.e.innerHTML += `${command} - ${commandDescription}<br/>`;
} else {
return output.e.innerHTML += `${command} - Command not found<br/>`;
}
}
}
if (value.includes("console")) {
const words = value.split(" ");
const consoleIndex = words.findIndex(word => word === "console");
if (consoleIndex !== -1 && consoleIndex + 1 < words.length) {
const color = words[consoleIndex + 1].trim();
mainframe.e.style.background = color;
output.e.innerHTML += `Changed background to ${color}<br/>`;
}
const remainingWords = words.slice(consoleIndex + 2);
value = remainingWords.join(" ");
}
if (value.includes("text")) {
const words = value.split(" ");
const textIndex = words.findIndex(word => word === "text");
if (textIndex !== -1 && textIndex + 1 < words.length) {
const color = words[textIndex + 1].trim();
document.getElementById("mainframe").style.color = color;
output.e.innerHTML += `Changed text to ${color}<br/>`;
}
const remainingWords = words.slice(textIndex + 2);
value = remainingWords.join(" ");
}
if (value.includes("create")) {
const words = value.split(" ");
const createIndex = words.findIndex(word => word === "create");
if (createIndex !== -1 && createIndex + 1 < words.length) {
var functionName = words[createIndex + 1];
const optionsIndex = createIndex + 2;
if (optionsIndex < words.length) {
const options = words.slice(optionsIndex);
try {
const openBraceIndex = value.indexOf("{", createIndex);
const closeBraceIndex = value.lastIndexOf("}");
if (openBraceIndex !== -1 && closeBraceIndex !== -1) {
var functionCode = value.substring(openBraceIndex + 1, closeBraceIndex);
const functionStore = {};
functionStore[functionName] = new Function(functionCode);
localStorage.setItem(functionName, functionStore[functionName].toString());
if (options.includes("async")) {
window.onload = function() {
eval(`${localStorage.getItem(functionName)}()`);
};
}
if (options.includes("unsave")) {
localStorage.removeItem(functionName);
}
if (options.includes("log")) {
console.log(functionName + localStorage.getItem(functionName));
}
if (options.includes("redirect")) {
// Redirect to a specified URL
const redirectIndex = options.indexOf("redirect");
if (redirectIndex !== -1 && redirectIndex + 1 < options.length) {
const redirectTo = options[redirectIndex + 1];
window.location.href = redirectTo;
}
}
if (options.includes("delay")) {
const delayIndex = options.indexOf("delay");
if (delayIndex !== -1 && delayIndex + 1 < options.length) {
const delayTime = parseInt(options[delayIndex + 1]);
if (!isNaN(delayTime) && delayTime > 0) {
functionCode = `
function ${functionName}_wrapper() {
setTimeout(() => {
${functionCode}
}, ${delayTime});
}
`;
if (options.includes("run")) {
functionCode += `
${functionName}_wrapper();
`;
eval(functionCode);
}
}
}
}
if (options.includes("run")) {
eval(functionCode);
}
if (options.includes("popup")) {
const popupIndex = options.indexOf("popup");
if (popupIndex !== -1 && popupIndex + 1 < options.length) {
const popupUrl = options[popupIndex + 1];
const delayIndex = options.indexOf("delay");
if (delayIndex !== -1 && delayIndex + 1 < options.length) {
const delayTime = parseInt(options[delayIndex + 1]);
if (!isNaN(delayTime) && delayTime > 0) {
functionCode += `
setTimeout(function() {
window.open("${popupUrl}", "_blank", "width=600,height=400");
}, ${delayTime});
`;
}
} else {
functionCode += `
window.open("${popupUrl}", "_blank", "width=600,height=400");
`;
}
}
eval(functionCode);
}
} else {
throw new Error("Code block inside {} is missing.");
}
} catch (error) {
output.e.innerHTML += `Recieved the following error from this code: ${functionName}, Error: ${error}<br/>`
}
}
}
}
if (value.includes("edit")) {
javascript:document.body.contentEditable = true; document.designMode = 'on'; void 0;
output.e.innerHTML += "Edit mode enabled<br/>";
}
if (value.includes("xray")) {
javascript:(function () {var script=document.createElement('script');script.src='https://x-ray-goggles.mouse.org/webxray.js';script.className='webxray';script.setAttribute('data-lang','en-US');script.setAttribute('data-baseuri','https://x-ray-goggles.mouse.org');document.body.appendChild(script);}())
output.e.innerHTML += "Xray enabled<br/>";
}
if (value.includes("about:blank")) {
const words = value.split(" ");
const aboutBlankIndex = words.findIndex(word => word === "about:blank");
if (aboutBlankIndex !== -1 && aboutBlankIndex + 1 < words.length) {
const tab = words[aboutBlankIndex + 1].trim();
if (!tab.startsWith("https://")) {
output.e.innerHTML += "Please use https://<br/>";
}
const win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
const iframe = win.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.referrerpolicy = "no-referrer";
iframe.allow = "fullscreen";
iframe.src = tab;
win.document.body.appendChild(iframe);
const script = win.document.createElement("script");
script.innerHTML = `
const local_title = localStorage.getItem("title");
const local_icon = localStorage.getItem("icon");
if (window.localStorage.hasOwnProperty("title")) {
document.title = local_title;
console.log("Title set to: " + local_title);
} else {
console.log("Title not set :(");
}
if (window.localStorage.hasOwnProperty("icon")) {
document.querySelector("link[rel=icon]").href = local_icon;
console.log("Icon set to: " + local_icon);
} else {
console.log("Icon not set :(");
}`;
win.document.body.appendChild(script);
output.e.innerHTML += `Opened about:blank ${tab}<br/>`;
}
}
if (value.includes("delete css")) {
javascript:(function(){var i,l,styles = document.styleSheets;for(i=0,l=styles.length;i<l;i++){styles[i].disabled = true;}})()
output.e.innerHTML += "Deleted CSS<br/>";
}
if (value.includes("3d")) {
eval('javascript:krazete:!function(){var d={menu:document.createElement("div"),limit:document.createElement("input"),gap:document.createElement("input"),sag:document.createElement("input"),fov:document.createElement("input"),flo:document.createElement("input"),off:document.createElement("input"),non:document.createElement("input"),end:document.createElement("input"),tgl:document.createElement("input"),cssStatic:document.createElement("style"),cssDynamic:document.createElement("style"),orientation:{yaw:0,pitch:0,roll:0},mouseMove:function(e){d.orientation.yaw=180*-Math.cos(Math.PI*e.clientX/innerWidth)*d.limit.value,d.orientation.pitch=180*Math.cos(Math.PI*e.clientY/innerHeight)*d.limit.value,d.updateBody()},gyroMove:function(e){innerWidth>innerHeight?(d.orientation.yaw=-(e.alpha+e.beta),d.orientation.pitch=e.gamma-90*Math.sign(90-Math.abs(e.beta))):(d.orientation.yaw=-(e.alpha+e.gamma),d.orientation.pitch=e.beta-90),d.updateBody()},updateOrigin:function(e){document.body.style.transformOrigin=innerWidth/2+pageXOffset+"px "+(innerHeight/2+pageYOffset)+"px"},updateBody:function(){document.body.style.transform="perspective("+Math.pow(2,d.fov.value)+"px) translateZ(-"+d.gap.value+"px) rotateX("+d.orientation.pitch+"deg) rotateY("+d.orientation.yaw+"deg)"},updateCSS:function(){if(d.non.checked)d.cssDynamic.innerHTML="";else if(d.off.checked)d.cssDynamic.innerHTML="* { transform-style: preserve-3d; }";else{for(var e=0;document.querySelector("body"+" > *".repeat(e));e++);var t=d.gap.value/e,n=-Math.PI*d.sag.value/e;d.cssDynamic.innerHTML=` * { transform: translateZ(${t}px) rotateX(${n}rad); transform-style: preserve-3d; transition: transform 1s; outline: 1px solid rgba(0, 0, 0, 0.0625); ${d.flo.checked?"overflow: visible !important;":""} } *:hover { transform: translateZ(${2*t}px) rotateX(${2*n}rad); ${d.flo.checked?"":"overflow: visible;"} } `}},toggle:function(){"active"==d.menu.className?d.menu.removeAttribute("class"):d.menu.className="active"},quit:function(){window.removeEventListener("deviceorientation",d.gyroMove),window.removeEventListener("mousemove",d.mouseMove),window.removeEventListener("scroll",d.updateOrigin),window.addEventListener("resize",d.updateOrigin),d.menu.remove(),d.cssStatic.remove(),d.cssDynamic.remove(),document.body.removeAttribute("style")},newRange:function(e,t,n,o,i,a,r){d.menu.appendChild(e),e.type="range",e.min=n,e.max=i,e.step=o,e.value=a,e.addEventListener("input",r),d.menu.appendChild(document.createElement("span")).innerHTML=t,d.menu.appendChild(document.createElement("br"))},newCheckbox:function(e,t,n){d.menu.appendChild(e),e.type="checkbox",e.addEventListener("click",n),d.menu.appendChild(document.createElement("span")).innerHTML=t,d.menu.appendChild(document.createElement("br"))},newButton:function(e,t,n){d.menu.appendChild(e),e.type="button",e.value=t,e.addEventListener("click",n)},init:function(){document.body.parentNode.appendChild(d.menu).id="tri-menu",d.newRange(d.limit,"limit",0,.03125,1,.125,d.updateBody),d.newRange(d.gap,"gap / distance",0,32,512,128,function(){d.updateCSS(),d.updateBody()}),d.newRange(d.sag,"sag",-.25,.03125,.25,0,d.updateCSS),d.newRange(d.fov,"field of view",7,1,13,10,d.updateBody),d.newCheckbox(d.flo,"force overflow",d.updateCSS),d.flo.setAttribute("checked",""),d.newCheckbox(d.off,"flatten layers",d.updateCSS),d.newCheckbox(d.non,"flatten everything",d.updateCSS),d.newButton(d.end,"Quit",d.quit),d.newButton(d.tgl,"≡",d.toggle),d.tgl.id="tri-toggle",d.menu.appendChild(d.cssStatic).innerHTML=` html, body { transition-property: none; height: 100%25; width: 100%25; } html, html:hover, #tri-menu, #tri-menu > *, #tri-menu > *:hover { transform: none; outline: none; overflow: auto !important; float: none; } #tri-menu { position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.5); color: white; border: 1px solid rgba(255, 255, 255, 0.5);; border-radius: 0 0 16px 0; padding: 8px; transform: translate(-100%25, -100%25) translate(32px, 32px); } #tri-menu.active { transform: none; } #tri-toggle { position: absolute; bottom: 0; right: 0; height: 32px; width: 32px; background: transparent; color: white; border: none; cursor: pointer; } #tri-menu.active > #tri-toggle { background: white; color: black; border-radius: 8px 0 0 0; }` %60,d.menu.appendChild(d.cssDynamic),d.updateCSS(),window.addEventListener("deviceorientation",d.gyroMove),window.addEventListener("mousemove",d.mouseMove),window.addEventListener("scroll",d.updateOrigin),window.addEventListener("resize",d.updateOrigin),window.scrollBy(0,1)}};d.init()}();')
output.e.innerHTML += "Page 3D<br/>";
}
if (value.includes("neon")) {
javascript:a=document.createElement('style');a.innerHTML=['@import url(https://fonts.googleapis.com/css?family=Audiowide&display=swap); img{filter:sepia(100%) hue-rotate(30deg) saturate(15);box-shadow:0px 0px 10px chartreuse;transition:1s all linear} img:hover{box-shadow:0px 0px 50px chartreuse !important} *{cursor:url(http://www.rw-designer.com/cursor-extern.php?id=94635),auto !important;font-family:Audiowide !important;color:chartreuse !important;background:black !important;text-shadow:0px 0px 10px chartreuse;border-color:chartreuse !important}'];document.body.appendChild(a)
output.e.innerHTML += "Page Neon<br/>";
}
if (value.includes("clear cookies")) {
javascript:(function(){document.cookie.split(";").forEach(function(c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); }); })();
window.localStorage.clear();
output.e.innerHTML += "Cookies Cleared<br/>";
}
if (value.includes("install Vengeance")) {
javascript:(function () {var v = document.createElement('script');v.src = 'https://cdn.jsdelivr.net/gh/Browncha023/[email protected]/script.min.js';document.body.appendChild(v);}())
output.e.innerHTML += "Installed Vengeance<br/>"
}
}
});
},
};
function handleButtonClick(index) {
const customClickLogic = buttonClickHandlers[index];
if (customClickLogic) {
customClickLogic();
} else {
console.log(`Button ${index + 1} clicked!`);
}
}
buttons.forEach((button, index) => {
button.setOnClickHandler(() => handleButtonClick(index));
});
close.e.onclick = () => {
mainframe.e.remove();
minbar.e.remove();
}
min.e.onclick = () => {
mainframe.e.style.display = 'none';
minbar.e.style.display = 'block';
}
minbar.e.onclick = () => {
mainframe.e.style.display = 'block';
minbar.e.style.display = 'none';
}
open.e.onclick = () => {
const box = document.getElementById("mainframe").getBoundingClientRect();
var top, right;
top = box.top;
right = box.right;
if (mainframe.e.style.width === '100%') {
mainframe.e.style.width = '800px'
mainframe.e.style.height = '600px'
mainframe.e.style.top = top + "px";
mainframe.e.style.right = right + "px";
} else {
mainframe.e.style.width = '100%';
mainframe.e.style.height = '100%';
mainframe.e.style.top = '0';
mainframe.e.style.left = '0';
}
}
document.body.appendChild(mainframe.e);
document.body.appendChild(minbar.e);
minbar.e.appendChild(img.e);
dragElement(document.getElementById("mainframe"));
dragElement(document.getElementById("minbar"));
const style = `
.dark,.light,.solar,:root{
--text-primary:#fff
}
#mainframe .btn,:root{
font-size:16px
}
#mainframe,.btn{
overflow:hidden
}
#mainframe .btn:active,.btn:hover{
transition-duration:.35s
}
#mainframe #input #input input:hover,#input #submit button:hover,.btn{
cursor:pointer
}
#mainframe #input #input input:focus,#input #submit button:focus,.btn{
outline:0
}
#mainframe #close,#min,#open{
max-height:10px;
padding:3px;
position:absolute
}
#mainframe #close,#inputArea,#min,#open{
position:absolute
}
#mainframe,#minbar{
position:fixed;
animation-name:slidein
}
:root{
font-family:'Open Sans';
--text-secondary:#E7E7E7;
--bg-primary:linear-gradient(143deg,rgba(2,0,36,1) 0%,rgba(67,124,208,1) 0%,rgba(73,224,255,1) 100%);
--bg-secondary:#add8e6;
--transition-speed:600ms
}
.dark{
--text-secondary:#ececec;
--bg-primary:linear-gradient(180deg,rgba(40,40,40,1) 48%,rgba(0,0,0,1) 96%);
--bg-secondary:#141418;
background-color:#1f2223
}
.light{
--text-secondary:#E7E7E7;
--bg-primary:linear-gradient(143deg,rgba(2,0,36,1) 0%,rgba(67,124,208,1) 0%,rgba(73,224,255,1) 100%);
--bg-secondary:#add8e6;
background:linear-gradient(143deg,#020024 0,#437cd0 0,#49e0ff 100%)
}
.solar{
--text-secondary:#35535c;
--bg-primary:linear-gradient(180deg,rgba(247,247,247,.8043811274509804) 0%,rgba(139,214,110,1) 0%,rgba(29,128,8,1) 100%);
--bg-secondary:#fefefe;
color:#000
}
#mainframe{
background:var(--bg-primary);
width:800px;
height:600px;
border-radius:10px;
animation-duration:2s;
text-align:center;
margin:auto;
left:var(--x-axis,2rem);
top:var(--y-axis,2rem);
z-index:10000;
box-shadow:rgba(50,50,93,.25) 0 6px 12px -2px,rgba(0,0,0,.3) 0 3px 7px -3px;
padding-left:2rem;
padding-right:2rem;
padding-top:10px;
font-family:Inter,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif!important;
color:var(--text-primary);
display: none;
}
#minbar,.btn{
text-align:center;
font-family:Inter,-apple-system,system-ui,'Segoe UI',Helvetica,Arial,sans-serif
}
#mainframe #topContainer{
width:100%;
display:flex;
justify:center;
align-items:center
}
#mainframe #topBar{
top:15px;
position:relative;
background:linear-gradient(90deg,rgba(247,247,247,.8043811274509804) 0,rgba(237,237,237,.7539609593837535) 44%,rgba(210,210,210,.7007396708683473) 100%);
width:736px;
z-index:100002;
height:15px;
cursor:move;
border-radius:15px;
margin:auto auto 1rem;
box-shadow:rgba(149,157,165,.2) 0 8px 24px
}
#mainframe .btn{
appearance:none;
backface-visibility:hidden;
background-color:#f82c79;
border-radius:8px;
border-style:none;
box-shadow:rgba(39,174,96,.15) 0 4px 9px;
box-sizing:border-box;
color:#fff;
margin:5px 5px auto auto;
font-weight:600;
letter-spacing:normal;
line-height:1.5;
padding:13px 20px;
position:relative;
text-decoration:none;
transform:translate3d(0,0,0);
transition:.3s;
user-select:none;
-webkit-user-select:none;
touch-action:manipulation;
vertical-align:top;
white-space:nowrap
}
#mainframe .btn:hover{
background-color:#e52a70;
opacity:1;
transform:translateY(0)
}
#mainframe .btn:active{
transform:translateY(2px)
}
@keyframes slidein{
0%{
opacity:0
}
100%{
opactiy:100%
}
}
#mainframe #inputArea{
display:flex;
justify-content:center;
align-items:center
}
#mainframe #command{
z-index:0;
top:0;
left:0;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
overflow:auto
}
#mainframe #input{
padding:5px 5px 5px 7px;
border-radius:5px;
background:#fff
}
#mainframe #input div{
display:inline-block;
font-size:12px
}
#mainframe #input #input input{
margin-right:0;
border:none;
font-size:inherit;
transition:width .2s;
padding-top:5px;
padding-left:5px;
padding-bottom:5px;
width:55px;
color:black!important;
border-bottom:1px solid #eee
}
#mainframe #input #input input:focus{
width:150px
}
#mainframe #input #submit button{
margin-left:0;
border:none;
font-size:1.15em;
background-color:red;
padding-top:2px;
padding-bottom:2px;
transition:color .2s;
color:red
}
#mainframe #input #submit button:hover{
color:#3498db
}
#mainframe #output{
border:2px solid #fff;
display:flex;
flex-direction:column;
gap:2px;
line-height:150%;
overflow-y:scroll;
height:250px
}
#mainframe #button{
width:30px;
height:30px;
padding:5px;
background:red;
border-radius:5px
}
#mainframe #close{
background:#ff5d5b;
border:4px solid #cf544d;
border-radius:100%;
right:45px
}
#mainframe #close :after,#close :before,#min :after,#min :before{
background:#460100
}
#mainframe #min{
background:#ffbb39;
border:4px solid #cfa64f;
border-radius:100%;
right:25px
}
#mainframe #open{
background:#00cd4f;
border:4px solid #0ea642;
border-radius:100%;
right:5px
}
#mainframe #open :after,#open :before{
background:#024d0f
}
#minbar {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
background-color: rgba(0, 0, 0, 0);
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
z-index: 10000;
animation: rainbowShadow 4s linear infinite;
}
#minbar:hover {
background-color: rgba(0, 0, 0, 0.2);
}
@keyframes rainbowShadow {
0% {
box-shadow:
0 0 10px rgba(0, 0, 255, 0.5),
0 0 20px rgba(0, 0, 255, 0.5),
0 0 30px rgba(0, 0, 255, 0.5);
transform: rotate(0deg);
}
25% {
box-shadow:
0 0 10px rgba(0, 0, 255, 0.5),
0 0 20px rgba(0, 0, 255, 0.5),
0 0 30px rgba(0, 0, 255, 0.5);
transform: rotate(90deg);
}
50% {
box-shadow:
0 0 10px rgba(0, 0, 255, 0.5),
0 0 20px rgba(0, 0, 255, 0.5),
0 0 30px rgba(0, 0, 255, 0.5);
transform: rotate(180deg);
}
75% {
box-shadow:
0 0 10px rgba(0, 0, 255, 0.5),
0 0 20px rgba(0, 0, 255, 0.5),
0 0 30px rgba(0, 0, 255, 0.5);
transform: rotate(270deg);
}
100% {
box-shadow:
0 0 10px rgba(0, 0, 255, 0.5),
0 0 20px rgba(0, 0, 255, 0.5),
0 0 30px rgba(0, 0, 255, 0.5);
transform: rotate(360deg);
}
}
#minbar img {
width: 48px;
height: 48px;
background-color: rgba(0, 0, 0, 0.2);
filter: brightness(150%);
border-radius: 10px;
}
#minbar:hover {
background-color: rgba(0, 0, 0, 0.2);
transform: rotate(0deg);
}
#mainframe h1 {
background-image:linear-gradient(to right,#0f0,#ec4899,#8b5cf6);
-webkit-background-clip:text;
background-clip:text;
color:transparent;
text-align: center;
}
#notepad {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0,0,0,.8);
z-index: 10000
}
#textrea {
border: 2px solid white;
}
#notepad #notepadContainer,#notepadContainer,.notepad-container {
width: 800px;
height: 600px;
background-color: #333;
color: #ccc;
border: 1px solid #ccc;
padding: 5px;
display: flex;
flex-direction: column;
justify-content: space-between
}
#notepad #textarea,#textarea,.notepad-textarea {
resize: none;
padding: 10px;
font-family: Arial,sans-serif;
font-size: 14px;
border: 0;
background-color: transparent;
color: #ccc;
flex: 1
}
#buttonContainer,#notepad #buttonContainer,.notepad-button-container {
display: flex;
justify-content: space-between;
margin-top: 10px
}
#cl,#notepad #cl,#notepad #run,#run,.notepad-button {
padding: 8px 16px;
font-size: 14px;
color: #ccc;
background-color: #333;
border: 1px solid #ccc;
cursor: pointer
}
#notepad #run,#run,.notepad-run {
margin-right: 10px
}
`;
const styleElement = document.createElement("style");
styleElement.innerHTML = style;
styleElement.setAttribute("scoped", "");
mainframe.e.appendChild(styleElement);
}())