Page 1 of 1

Type fastest

Posted: Tue Sep 27, 2011 5:42 pm
by wannabe7331
How did you solve it?
I used JavaScript, but I still had to hurry up :)

Code: Select all

javascript:alert((document.getElementsByTagName("b")[0].innerHTML).replace(/<span.*?n>/g,""));

Posted: Sat Oct 08, 2011 10:19 pm
by bspus
I made a quick 'n dirty windows app where I pasted the original text and it would reproduce it properly on a second textbox.
And still barely made it

Posted: Tue Oct 11, 2011 9:22 pm
by Adriano
I somehow overkilled by using a quick and dirty Ruby script: https://gist.github.com/53796811c0db50a1bb27
Would have been much simpler if you weren't required to include the cookie from the original challenge page.. ;)

Posted: Thu Dec 08, 2011 7:59 pm
by Schnapphahn
I copied to Notepad, which was prepared for delete "FOO", my left hand jumping from C to V and back ;-)

Took 3 or 4 tries.

But my pride says I should have used a script or so..

Posted: Mon Dec 12, 2011 3:14 pm
by rain1024
I solved it by MS Word. Copy and paste. :o

Posted: Sat Dec 31, 2011 8:42 am
by froest2012
I use java httpURLConnection class,but the server informed me that "no time start",I don't know which place I was wrong....so..so..so..so I Ctrl + c and v,just 0.3s left- - :lol:

Posted: Sun Jun 17, 2012 2:39 pm
by fragman
I used JavaScript as well, directly via FireBug:

Code: Select all

var getText = document.getElementsByTagName("b");
for (var i = 0; i<getText.length; i++){
    var getText2 = getText[i].getElementsByTagName("span");
    for (var j = 0; j<getText2.length; j++){
        getText2[j].innerHTML = "";
    }
}
worked like a charm.

Posted: Mon Mar 11, 2013 6:25 pm
by haellowyyn
Using the jquery-injector extension for Chrome, you can just do

Code: Select all

$('input[name="answer"]').val($('b').text().replace(/FOO/g, '')); $('form').submit()
in the console.

my stupid solving

Posted: Thu Apr 11, 2013 2:24 pm
by kordosoft
var element1 = document.createElement("script");
element1.src = "http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js";
element1.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(element1);

jQuery('span').remove();
var myCtext=jQuery("b:last").html();
jQuery('input[name="answer"]').val(myCtext);
jQuery('input[type="submit"]').click();

Python ...

Posted: Sun Mar 30, 2014 3:02 pm
by Hippo
Finally I have learned how to log properly to the chalenges from python.

Re: Type fastest

Posted: Sun Aug 10, 2014 12:03 am
by iokanuon
Whole app for this? Wow.

Code: Select all

xclip -i <<<"$(sed 's/FOO//g' <<<"$(xclip -o)")"

AdBlock

Posted: Tue Sep 15, 2015 9:52 pm
by vladvis
I added <span> to bad tags in AdBlock

Posted: Thu Dec 01, 2016 8:59 pm
by Mad Mike
I used burp as a proxy and added a rule to delete all the s from HTTP-responses.
Then it was just fire and forget. Nice challenge!

Type Fastest

Posted: Fri Nov 24, 2017 12:50 pm
by Nissen_96
I just used the console and a bit of JavaScript :)

Code: Select all

document.getElementsByName("answer")[0].setAttribute("value", document.getElementsByTagName("b")[0].textContent.replace(/FOO/g, ""));
This immediately just removes all "FOO"'s and inserts the result in the answer box.

Posted: Fri Mar 30, 2018 11:44 am
by Grusewolf
I manipulated the clipboard in endless loop too remove 'FOO'. After start of the groovy script I did copy and paste in browser.

Code: Select all

import java.awt.datatransfer.StringSelection
import java.awt.Toolkit
import java.awt.datatransfer.*

String currentContent = ''
while (currentContent != 'stop') {
    sleep(100)
    Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard()
    currentContent = clipboard.getContents().getTransferData(DataFlavor.stringFlavor)
    if(currentContent.contains('FOO')) {
        currentContent = currentContent.replaceAll('FOO', '')
        clipboard.setContents(new StringSelection(currentContent), null)
    }
}
println 'end'