Last active
January 4, 2018 18:15
-
-
Save RealOrangeOne/7da9a3dd1bf90ecdf7be to your computer and use it in GitHub Desktop.
Easy script to win a round of 'The Wiki Game' in a single move
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#start").click(); | |
var goal = $("#endpagelink0 > a").attr('href').replace("http://en.wikipedia.org/", ""); | |
var goalArray = $("#wiki").attr("src").split("?"); | |
goalArray[1] = "?" + goalArray[1]; | |
goalArray[0] = goal; | |
$("#wiki").attr("src", goalArray.join().replace(",", "")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#start").click();var goal=$("#endpagelink0 > a").attr("href").replace("http://en.wikipedia.org/",""),goalArray=$("#wiki").attr("src").split("?");goalArray[1]="?"+goalArray[1],goalArray[0]=goal,$("#wiki").attr("src",goalArray.join().replace(",","")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment