message: removed commented code, and indented
diff: */
  var originalPrompt = originalPrompt ? originalPrompt : window.prompt;
  -//var topPrompt = topPrompt ? topPrompt : window.top.prompt;
  var nextPromptResult = false;
  var recordedPrompt = null;
  @@ -172,43 +171,6 @@ if (window !== window.top) {
  };
  }
  -//before record confirm
  -/*
  -window.confirm = function(text) {
  - if (document.body.hasAttribute("SideeXPlayingFlag")) {
  - recordedConfirmation = text;
  - return nextConfirmationResult;
  - } else {
  - let result = originalConfirmation(text);
  - window.postMessage({
  - direction: "from-page-script",
  - recordedType: "confirm",
  - recordedMessage: text,
  - recordedResult: result,
  - }, "*");
  - return result;
  - }
  -};
  -*/
  -//before record alert
  -/*
  -window.alert=function(text){
  - if(document.body.hasAttribute("SideeXPlayingFlag")){
  - recordedAlert=text;
  - return nextAlertResult;
  - }else{
  - let result=originalAlert(text);
  - window.postMessage({
  - direction:"from-page-script",
  - recordedType: "alert",
  - recordedMessage: text,
  - recordedResult:result,
  - },"*");
  - return result;
  - }
  -};
  -*/
  -
  //play window methods
  if (window == window.top) {
  window.addEventListener("message", function(event) {
  @@ -264,16 +226,6 @@ if (window == window.top) {
  response: "alert"
  }, "*");
  break;
  - // Has been send to content scripts, do not need to require value again
  - //case "getAlertMessage":
  - //let result1 = recordedAlert;
  - //recordedAlert = null;
  - //window.postMessage({
  - //direction: "from-page-script",
  - //response: "alert",
  - //value: result1
  - //}, "*");
  - //break;
  }
  }
  });
  