Version 2 (modified by jazz, 4 years ago) (diff) |
---|
2021-03-22
JavaScript
- 學習用 Chrome Developer Console 來做一些自動化的步驟
- [情境] 想要清掉 https://medium.com/me/list/queue 的 saved post
- [解法]
$$("div.fr.t").forEach(x => x.querySelector("button").click())
- [參考]
https://yizeng.me/2014/03/23/evaluate-and-validate-xpath-css-selectors-in-chrome-developer-tools/ https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach https://developer.mozilla.org/zh-TW/docs/Web/API/Document/querySelector