问题
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?
回答1:
After you open the modal where you can request answers from other Quora users enter this in the browser console:
document.querySelectorAll(`a[aria-label='Request']`).forEach(el =>{el.click()})
you don't even need to open the console if you add this as bookmark url:
javascript:(function(){document.querySelectorAll(`a[aria-label='Request']`).forEach(el => {el.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.
来源:https://stackoverflow.com/questions/55751868/use-all-of-the-requests-to-answer-available-at-once-on-a-question-on-quora-from