Skip to content

Instantly share code, notes, and snippets.

@bitofeverything
bitofeverything / LazyLiker.js
Created August 31, 2020 03:43
Like all loaded components/visible items in Spotify.
// Copy paste into console, scroll to bottom of playlist/album
// type "likeAll()" in console, and scroll up and repeat.
// Could use a timeout and just keep repeating as you scroll,
// but this is quick and dirty and works well enough.
function likeAll(){
x = [...document.getElementsByClassName("spoticon-heart-16")].reverse()
x.forEach( (item)=>{
item.parentElement.click()
console.log("Liking a track")

Keybase proof

I hereby claim:

  • I am bitofeverything on github.
  • I am bprieur (https://keybase.io/bprieur) on keybase.
  • I have a public key ASC0bRHv-ixQWU1d8JX2r1-UaNKzsxXgGTc7t5rvn0mK_Qo

To claim this, I am signing this object:

@bitofeverything
bitofeverything / PictionaryPrompt.py
Created November 19, 2016 05:15
Simple script to give timed constrained prompts to draw something. Bring your own dictionary.
from time import sleep
from random import sample, shuffle
list = open("dictionary.txt").read().splitlines()
shuffle(list)
inputcount=input("How many words? ")
inputduration=0
while(inputduration < 3):