Skip to content

Instantly share code, notes, and snippets.

View OyeBenny's full-sized avatar
🔪
Killing it

BENNY OyeBenny

🔪
Killing it
View GitHub Profile
import java.util.Scanner;
import java.io.*;
public class Elevator
{
public static void main (String[] args) throws IOException
{
Scanner scan = new Scanner(new File("elevatordata.txt"));
int s = scan.nextInt();
@OyeBenny
OyeBenny / twitterFavoritesCleaner.js
Created August 20, 2018 16:49
Twitter Favorites Cleaner Script
//It repeatedly scrolls the page and clicks the unfavorite button.
// Log into Twitter on the web, open your Developer Console e.g. Developer -> Developer Tools -> Console and paste in this code:
var cnt=1;
var interval = setInterval(clearFavs, 1500);
function clearFavs() {
cnt+=1;
window.scrollTo(0,document.body.scrollHeight);
if (cnt>5) {