Created
April 19, 2022 22:03
-
-
Save jpigla/827151bb4afbd29d93defe941a36ce75 to your computer and use it in GitHub Desktop.
Bookmarklet: PAAs from Google
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
javascript:(function(){ | |
divClasses = document.getElementsByTagName("div"); | |
output = "<html><head><title>PPAs for \"" + document.title.split(" - ")[0] + "\"</title><style type='text/css'>body{font-family:Tahoma,Verdana,Segoe,sans-serif;font-size:18px;color:#2c3e50;margin:30px}h1{color:#34495e;font-size:20px;margin-bottom:5px}</style></head>"; | |
output += "<body><h1>PPAs for \"" + document.title.split(" - ")[0] + "\"</h1><ol>"; | |
for (i = 0; i < divClasses.length; i++) { | |
if (divClasses[i].getAttribute("class") == "iDjcJe IX9Lgd wwB5gf") { | |
output += "<li>" + divClasses[i].childNodes[0].innerHTML + "</li>" | |
} | |
} | |
output += "</ol></body></html>"; | |
with (window.open()) { | |
document.write(output); | |
document.close(); | |
} | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment