Skip to content

Instantly share code, notes, and snippets.

View thelatestcheckout's full-sized avatar
🏠
Working from home

Aishwarya Gupta thelatestcheckout

🏠
Working from home
View GitHub Profile
@thelatestcheckout
thelatestcheckout / blockunblock.txt
Last active March 2, 2024 11:10
Block and Unblock a website on MAC
Block a website ( www.facebook.com )
1. Open terminal
2. Enter following command -
sudo nano /etc/hosts
3. Enter MAC system password
4. Scroll down and make an entry for the website you wish to block -
##
# Host Database
#
# localhost is used to configure the loopback interface
@thelatestcheckout
thelatestcheckout / fbremovesentrequest.txt
Created January 25, 2020 08:21
Facebook - Delete Sent Friend Request
1. Open google chrome
2. Go to fb mobile link
https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main
3. Open Inspector mode/Dev tool
4. Hover over "cancel" button to find the class
5. Copy the class and replace in the following code -
javascript: var inputs = document.getElementsByClassName('class');
for (var i = 0; i < inputs.length; i++) {
inputs[i].click();
}