moflegame, patched for wasmga.me: the highscore and badscore tables are no longer fetched from or posted to mofle.net, and the Small, Medium and Full buttons and menu items (links to pages this site doesn't have) are gone. Against the scripts as JPEXS FFDec 26.3.0 decompiles them from mofle.swf at https://github.com/sindresorhus/moflegame/tree/c1adaf3bab85ae8024c35a89820685d9b53fbee3 Apply it with git apply to the decompiled scripts, import them, then remove the two tables, their labels and the size buttons: java -jar ffdec.jar -importScript mofle.swf scripted.swf scripts java -jar ffdec.jar -removeCharacter scripted.swf mofle-patched.swf 26 54 79 80 81 103 104 --- a/scripts/frame_3/DoAction.as +++ b/scripts/frame_3/DoAction.as @@ -21,32 +21,6 @@ { getURL("mailto:mofle89@gmail.com"); } -function SmallSize() -{ - getURL("small.html"); -} -function MediumSize() -{ - getURL("medium.html"); -} -function FullSize() -{ - getURL("full.html"); -} -scoretable.filename = "scores.sco"; -scoretable.scoresize = 10; -scoretable.action = "VIEW"; -scoretable.viewtype = "FLASH"; -scoretable.winname = _root.name; -scoretable.winscore = _root.score; -scoretable.loadVariables("http://www.mofle.net/game/scores.php","GET"); -badscoretable.filename = "badscores.sco"; -badscoretable.scoresize = 10; -badscoretable.action = "VIEW"; -badscoretable.viewtype = "FLASH"; -badscoretable.winname = _root.name; -badscoretable.winscore = _root.score; -badscoretable.loadVariables("http://www.mofle.net/game/badscores.php","GET"); name_menu.restrict = "A-Z a-z ÆØÅ æøå"; msg_menu._visible = true; msg2_menu._visible = false; @@ -63,15 +37,11 @@ var Copyright = new ContextMenuItem("© 2007 Sindre Sørhus",deadClick); var Website = new ContextMenuItem("Website",Website); var Emailme = new ContextMenuItem("Email me",Emailme); -var SmallSize = new ContextMenuItem("Small Size",SmallSize); -var MediumSize = new ContextMenuItem("Medium Size",MediumSize); -var FullSize = new ContextMenuItem("Full Size",FullSize); var LowQual = new ContextMenuItem("Low Quality",LowQual); var MediumQual = new ContextMenuItem("Medium Quality",MediumQual); var HighQual = new ContextMenuItem("High Quality",HighQual); -myMenu.customItems.push(Website,Emailme,Copyright,SmallSize,MediumSize,FullSize,LowQual,MediumQual,HighQual); +myMenu.customItems.push(Website,Emailme,Copyright,LowQual,MediumQual,HighQual); Copyright.separatorBefore = true; -SmallSize.separatorBefore = true; LowQual.separatorBefore = true; _root.menu = myMenu; stop(); --- a/scripts/frame_5/DoAction.as +++ b/scripts/frame_5/DoAction.as @@ -3,6 +3,7 @@ endTime = getTimer(); stop(); }; +submit._visible = false; submit2._visible = false; msg._visible = false; name_win.restrict = "A-Z a-z ÆØÅ æøå"; --- a/scripts/DefineButton2_97/BUTTONCONDACTION on(release, keyPress Enter).as +++ b/scripts/DefineButton2_97/BUTTONCONDACTION on(release, keyPress Enter).as @@ -1,19 +1,2 @@ on(release, keyPress ""){ - scoretable.filename = "scores.sco"; - scoretable.scoresize = 10; - scoretable.action = "INSERT"; - scoretable.viewtype = "FLASH"; - scoretable.winname = _root.name; - scoretable.winscore = _root.score; - scoretable.loadVariables("http://www.mofle.net/game/scores.php","GET"); - badscoretable.filename = "badscores.sco"; - badscoretable.scoresize = 10; - badscoretable.action = "INSERT"; - badscoretable.viewtype = "FLASH"; - badscoretable.winname = _root.name; - badscoretable.winscore = _root.score; - badscoretable.loadVariables("http://www.mofle.net/game/badscores.php","GET"); - submit._visible = false; - submit2._visible = true; - msg._visible = true; } --- a/scripts/DefineButton2_18/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_18/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("small.html"); } --- a/scripts/DefineButton2_20/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_20/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("medium.html"); } --- a/scripts/DefineButton2_21/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_21/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("small.html"); } --- a/scripts/DefineButton2_21/BUTTONCONDACTION on(keyPress 1).as +++ b/scripts/DefineButton2_21/BUTTONCONDACTION on(keyPress 1).as @@ -1,3 +1,2 @@ on(keyPress "1"){ - getURL("small.html"); } --- a/scripts/DefineButton2_23/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_23/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("full.html"); } --- a/scripts/DefineButton2_24/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_24/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("medium.html"); } --- a/scripts/DefineButton2_24/BUTTONCONDACTION on(keyPress 2).as +++ b/scripts/DefineButton2_24/BUTTONCONDACTION on(keyPress 2).as @@ -1,3 +1,2 @@ on(keyPress "2"){ - getURL("medium.html"); } --- a/scripts/DefineButton2_25/BUTTONCONDACTION on(press).as +++ b/scripts/DefineButton2_25/BUTTONCONDACTION on(press).as @@ -1,3 +1,2 @@ on(press){ - getURL("full.html"); } --- a/scripts/DefineButton2_25/BUTTONCONDACTION on(keyPress 3).as +++ b/scripts/DefineButton2_25/BUTTONCONDACTION on(keyPress 3).as @@ -1,3 +1,2 @@ on(keyPress "3"){ - getURL("full.html"); }