1
1
//js/polyfill/polyfill.js
2
2
var x = new Object ( )
3
3
this . x = 0
4
+
4
5
String . prototype . trim || ( String . prototype . trim = function ( ) {
5
6
return this . replace ( / ^ [ \s \uFEFF \xA0 ] + | [ \s \uFEFF \xA0 ] + $ / g, "" )
6
7
} ) , Date . now = Date . now || function ( ) {
@@ -6391,7 +6392,7 @@ system42("start", function(n) {
6391
6392
} , {
6392
6393
name : "Run..." ,
6393
6394
icon : "/c/sys/skins/" + n . _settings . skin + "/run.png" ,
6394
- action : e . run
6395
+ action : runPrompt ( )
6395
6396
} , {
6396
6397
name : "---"
6397
6398
} , {
@@ -8701,13 +8702,21 @@ function wSOD(stop1,stop2,stop3,stop4,stop5,stop6,init) {
8701
8702
var initiation = new Date ( ) . getTime ( ) ;
8702
8703
while ( ( new Date ( ) . getTime ( ) - initiation ) < millisecs ) ;
8703
8704
}
8705
+ function runPrompt ( ) {
8706
+ $prompt ( '<strong>RUN</strong><br>Please type a command' , '$alert.info("boi")' , function ( ok , text ) {
8707
+ if ( ok ) {
8708
+ $exe ( "exe" )
8709
+ }
8710
+ } ) ;
8711
+
8712
+ }
8704
8713
function $ka ( functioon ) {
8705
8714
if ( xPerm == "admin" ( ) ) {
8706
8715
$confirm ( 'Do you want to allow this kernel-mode code to run? \n\nIf you did not execute it, click Cancel now.' ,
8707
8716
function ( ok ) {
8708
8717
if ( ok ) {
8709
8718
x = x + 1
8710
- if ( this . x > 20 ) {
8719
+ if ( this . x > 5 ) {
8711
8720
wSOD ( "0x01AAAA" , "0x0013FF" , "0x000000" , "0x000000" , "0x000000" , "0x000000" , "?" )
8712
8721
} else {
8713
8722
sleep_ms ( getRandomInt ( 999 ) )
@@ -8734,6 +8743,10 @@ le._apps.TerminalX = {
8734
8743
name : "Admin Terminal" ,
8735
8744
exe : "js /a/X.js" ,
8736
8745
}
8746
+ le . _apps . testWSoD = {
8747
+ name : "Invokes a crash" ,
8748
+ exe : "wSOD('0x0013FF','0x222222','0x000000','0x000000','0x000000','0x000000','le._apps.testWSoD')"
8749
+ }
8737
8750
//js/loader.js
8738
8751
! function ( t ) {
8739
8752
"use strict" ;
@@ -8803,4 +8816,3 @@ le._apps.TerminalX = {
8803
8816
$extend ( c , t )
8804
8817
} , t . $loader = e
8805
8818
} ( this ) ;
8806
- // DB
0 commit comments