This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To accept all connection requests | |
var x = document.querySelectorAll('button.artdeco-button--secondary'); | |
// To reject all connection requests | |
// var x = document.querySelectorAll('button.artdeco-button--tertiary'); | |
for(var i=3;i<x.length;i++) x[i].click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function move() { | |
window.scrollTo(0, document.body.scrollHeight); | |
// console.log("Scolling done"); | |
} | |
// Function Parameters | |
// n : number of times to scroll | |
// t : wait duration between each scroll | |
function scrollRepeat(n, t){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hours = 0; | |
var min = 0; | |
var seconds = 0; | |
// start is 0 indexed | |
var start = parseInt(prompt("Video number to start from? ")) - 1 | |
// goes up till end-1 | |
var end = parseInt( prompt("Video number to end at? ") ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imaplib, yaml, time, json | |
from selenium import webdriver | |
from selenium.webdriver.common.alert import Alert | |
from tqdm.auto import tqdm | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
with open("config.yaml",'r') as f: | |
config = yaml.safe_load(f) |