Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unfollow() {
- [].slice.call(document.getElementsByTagName('*')).filter((el) => {
- return el.getAttribute('aria-label') === "Story options"
- }).forEach((el) => {
- el.click();
- });
- [].slice.call(document.getElementsByTagName('*')).filter((el) => {
- if (el.getAttribute("title")) {
- return el.getAttribute("title").match(/Unfollow.+/g)
- }
- return false;
- }).forEach((el) => {
- el.click();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement