Skip to content

Instantly share code, notes, and snippets.

@AhmedHelalAhmed
Last active February 26, 2022 01:10
Show Gist options
  • Save AhmedHelalAhmed/60ceee35f886ee3af7eeb9b40463aaa7 to your computer and use it in GitHub Desktop.
Save AhmedHelalAhmed/60ceee35f886ee3af7eeb9b40463aaa7 to your computer and use it in GitHub Desktop.
fb-likes-issue
// ==UserScript==
// @name Unlike Facebook Pages
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Unlike all Facebook pages
// @author Ahmed Helal Ahmed
// @match https://duckduckgo.com/?q=new+script+unlike+pages+facebook&ia=web
// @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com
// @grant none
// ==/UserScript==
(function () {
"use strict";
setTimeout(() => {
document.querySelectorAll('[aria-label="Action options"]')[0].click();
}, 100);
setTimeout(() => {
document.querySelectorAll('[role="menuitem"]')[0].click();
}, 5000);
setTimeout(() => {
location.reload();
}, 10000);
})();
@AhmedHelalAhmed
Copy link
Author

AhmedHelalAhmed commented Feb 26, 2022

Note:

You shall let the page open and the page should refresh and unlike the pages automatic

@AhmedHelalAhmed
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment