Skip to content

Instantly share code, notes, and snippets.

@Lazersmoke
Created July 18, 2020 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lazersmoke/f79bd58493ce303c21e86e147d10b996 to your computer and use it in GitHub Desktop.
Save Lazersmoke/f79bd58493ce303c21e86e147d10b996 to your computer and use it in GitHub Desktop.
WileyPlus Automatic Answer Entry Bookmarklet
javascript:(function(){answersFromUser=JSON.parse(prompt("answers").replace("{","[").replace("}","]"));inBoxes=document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("frame")[0].contentWindow.document.getElementsByTagName("iframe")[1].contentWindow.document.getElementsByTagName("frame")[1].contentWindow.document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByClassName("textentry_response");for(i=0;i<inBoxes.length;i++){inBoxes[i].value=answersFromUser[i]};})();
  1. Make a new bookmark in your bookmark toolbar with the above text as the URL
  2. Open a WileyPlus question with text entry boxes
  3. Click your bookmark
  4. Enter your answer as a list like {50,17,8} or with square brackets [10,18,4]
  5. It will fill your answers into the answer boxes without any copy-paste errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment