Skip to content

Instantly share code, notes, and snippets.

<html><head></head><body><div id=":3oe" class="a3s aiL ">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tbody>
<tr>
<td align="center">
<table cellspacing="0" cellpadding="0" border="0" width="600" align="center">
<tbody>
<tr>
<td>
<table style="background-color:#ffffff" cellspacing="0" cellpadding="0" bgcolor="#ffffff" width="100%">
console.log('running finder')
var allElements = document.querySelectorAll('*')
var documentBody = document.querySelector('body');
var isLocked = false;
allElements.forEach(element => {
initialBackgroundColor = element.style.backgroundColor;
initialOverflow = element.style.overflow;
if(element.tagName !== 'HTML') {
@Rup1
Rup1 / nodebot.js
Created October 11, 2018 15:45
Preliminary script. File-watching specific folder using Chokidar, and automating Apple Mail using JXA.
var osa = require('osa2');
var fs = require('fs');
var chokidar = require('chokidar');
var watcher = chokidar.watch('/Users/rup/Desktop/trolls', {
ignored: /(^|[\/\\])\../,
ignoreInitial: true,
persistent: true,
});
@Rup1
Rup1 / influencer.js
Last active May 30, 2022 20:18
Extract instagram info from screenshot, scrape each profile, put data into spreadsheet
/**
Little background story:
One day before going to a brunch party, my girlfriend got an email from her employer with a bunch of screenshots of
instagram/n influencer accounts. They asked that she put their names, websites, emails and other relevant info in a
spreadsheet. There were hundreds of accounts and this would have taken her at least a full day - ruining our party plans.
So I wrote this script to do it for her - I researched packages on the spot and was amazed at how easy it was to find node