- Make a new bookmark in your bookmark toolbar with the above text as the URL
- Open a WileyPlus question with text entry boxes
- Click your bookmark
- Enter your answer as a list like
{50,17,8}
or with square brackets[10,18,4]
- It will fill your answers into the answer boxes without any copy-paste errors
Created
July 18, 2020 22:27
-
-
Save Lazersmoke/f79bd58493ce303c21e86e147d10b996 to your computer and use it in GitHub Desktop.
WileyPlus Automatic Answer Entry Bookmarklet
This file contains 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
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]};})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment