Skip to content

Instantly share code, notes, and snippets.

View Kamensky124's full-sized avatar
💭
I will complete your project on time

Kamensky Andrey Kamensky124

💭
I will complete your project on time
View GitHub Profile
@Kamensky124
Kamensky124 / Remove videos from Youtube Watch Later playlist.md
Created April 30, 2023 10:40 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@Kamensky124
Kamensky124 / SSH key setup.md
Created March 31, 2023 14:02 — forked from mimukit/SSH key setup.md
Quick guide for SSH setup on macOS
  1. Setup ssh key on your pc (skip this step if you already have it)
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    
    • Start the ssh-agent in the background.
    eval "$(ssh-agent -s)"
    
  • Add your SSH private key to the ssh-agent and store your passphrase in the keychain.
@Kamensky124
Kamensky124 / YouDeleteLiked.js
Last active February 17, 2023 03:28
Youtube Delete liked videos (i=100)
//By Rojo Reyes @rurxs
// Open: https://www.youtube.com/playlist?list=LL
// Open developer tools (chrome)
// Place the JS snippet in console
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
// This script will remove all videos from watch later list
//
// Usage
//
// #1 go to https://www.youtube.com/playlist?list=WL
// #2 run following script in your browser console
// adjust REMOVE_BUTTON_TEXT accordingly to your language, see examples below
(async function() {
const REMOVE_BUTTON_TEXT = 'Remove from Watch later'