Reputation: 1359
I often have to click 25 times on the blue button with a plus next to the suggested profiles that might answer the question I'm interested in on Quora.
It's boring.
What should I put in the google chrome console to automate this process?
Upvotes: 3
Views: 569
Reputation: 1359
After you open the modal where you can request answers from other Quora users enter this in the browser console:
document.querySelectorAll(`[d='M21.106 11.553 5.08 3.54a.5.5 0 0 0-.698.605l2.148 6.443 5.511.919c.557.093.557.894 0 .986l-5.511.919-2.148 6.443a.5.5 0 0 0 .698.605l16.026-8.013a.5.5 0 0 0 0-.894Z']`).forEach(e=>e.parentElement.parentElement.parentElement.click())
you don't even need to open the console if you add this as bookmark url:
javascript:(function(){document.querySelectorAll(`[d='M21.106 11.553 5.08 3.54a.5.5 0 0 0-.698.605l2.148 6.443 5.511.919c.557.093.557.894 0 .986l-5.511.919-2.148 6.443a.5.5 0 0 0 .698.605l16.026-8.013a.5.5 0 0 0 0-.894Z']`).forEach(e=>e.parentElement.parentElement.parentElement.click())})()
Then you just have to click your bookmark to send the requests
It works on mobile too, if you search the bookmark from the request page and tap on it.
Upvotes: 3