Last active
November 1, 2023 15:36
-
-
Save sterlingsky/48bf08195dd2423e76e4379dd61402ae to your computer and use it in GitHub Desktop.
Location Grabber Chrome Bookmarklet
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 (){let arr = document.querySelectorAll("tbody .uVccjd.n2Hdyf.r2A6yd.i9xfbb.N2RpBe[aria-checked='true']");console.log(arr);let output = [];for (let i = 0; i < arr.length; i++){ let item = arr[i]; let href2 = item.closest('tr[class*=w0Oumf]').querySelector('a.DuDIZe').href ; console.log(i, " - ", href2); let locationIn = href2.split('/'); let location = locationIn[4]; output.push(location); }let output1 = output.join("\n"); navigator.clipboard.writeText(output1);})(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to Install
Using the bookmarklet
Your desired locations are now copied to your browser's clipboard.