Skip to content

Instantly share code, notes, and snippets.

View Mohammedcha's full-sized avatar
🎯
Focusing

Mohammed cha Mohammedcha

🎯
Focusing
View GitHub Profile
@Mohammedcha
Mohammedcha / Follow.js
Created August 5, 2021 00:25
Re-insta.js
const FOLLOW_BUTTON_TEXT = 'Follow'
const MAX_ATTEMPTS_PER_FOLLOW = 3
const followSomebody = () => {
const followButton = document
.evaluate(`//button[text()="${FOLLOW_BUTTON_TEXT}"]`, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
.singleNodeValue
if (followButton) {
let attempts = 1
while (attempts < MAX_ATTEMPTS_PER_FOLLOW && !followButton) {
console.log(`Attempted to find followButton but could not. Retry #${attempts++}`)
CloudShell :
===========
https://cloud.google.com/shell
Osintgram :
===========
git clone https://github.com/Datalux/Osintgram.git
/* follow */
javascript:var inputs = document.getElementsByClassName('RCK Hsu USg adn CCY czT F10 xD4 fZz hUC a_A gpV hNT BG7 NTm KhY');
function executePin(){
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}
window.scrollBy(0,5000);
}
setInterval(executePin,4000)
@Mohammedcha
Mohammedcha / Heat Map Creation Tool.js
Last active August 22, 2021 13:11
Heat Map Creation Tool
/**
*
* Heat Map Creation Tool - with Devices
*
* This script calculates the smoothed average performance of each hour of each day
* of the week, and outputs this into a heat map and graph in a Google Sheet. This
* can be done for all data and for device data. It also suggests ad schedules and
* device bid adjustments based on conversion rates.
*
* Version: 2.0