Skip to content

Instantly share code, notes, and snippets.

View acoyfellow's full-sized avatar
🤖
Building

Jordan Coeyman acoyfellow

🤖
Building
View GitHub Profile
@acoyfellow
acoyfellow / example.js
Created June 20, 2024 15:15
LinkedIn Auto follow w/ pagination
async function autoFollow() {
const buttons = document.querySelectorAll("[aria-label*='Invite']");
for (let i = 0; i < buttons.length; i++) {
buttons[i].click();
await new Promise(resolve => setTimeout(resolve, 200));
const sendButton = document.querySelector("[aria-label='Send without a note']");
if (sendButton) {
sendButton.click();
}
await new Promise(resolve => setTimeout(resolve, 1000));
@acoyfellow
acoyfellow / example.js
Created June 20, 2024 15:03
auto-follow on LinkedIn
/*
1) goto linked in
2) search for people. I did "founders" who i'm 2 degrees away from, in a specific geo location.
3) Copy and paste this script on each page
*/
async function autoFollow() {
const buttons = document.querySelectorAll("[aria-label*='Invite']");
for (let i = 0; i < buttons.length; i++) {
buttons[i].click();
@acoyfellow
acoyfellow / index.js
Created June 20, 2024 11:34
Remove EXIF / Metadata from Images
const fs = require('fs').promises;
const path = require('path');
const sharp = require('sharp');
const sourceDir = './dirty';
const targetDir = './clean';
// Ensure target directory exists
async function ensureTargetDir() {
try {
@acoyfellow
acoyfellow / disable-autofill.html
Created March 21, 2024 21:03
disable autofill
<script>
document.addEventListener("DOMContentLoaded", function() {
var forms = document.getElementsByTagName('form');
for(var i = 0; i < forms.length; i++) {
var fields = forms[i].getElementsByTagName('input');
for(var j = 0; j < fields.length; j++) {fill
fields[j].setAttribute('autocomplete', 'off');
}
}
});
@acoyfellow
acoyfellow / prevent-dupes.html
Last active January 4, 2024 19:14
Prevent duplicate form submissions in Phonesites.com
<script>
// Add to Custom Code > Bottom of Body
try{
if(localStorage.getItem("lead_id")){
setError("Only one submission allowed.");
throw new Error();
};
} catch(e){
console.error(e);
};
@acoyfellow
acoyfellow / example.html
Created October 17, 2023 00:50
Custom Font Example
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Pixelify Sans', sans-serif!important;
}
</style>
@acoyfellow
acoyfellow / formsync.html
Created January 30, 2023 20:31
FormSync + Phonesites
<script src="https://rawgit.com/acoyfellow/FormSync/master/FormSync.js"></script>
<script>
function success(){
clearFormSync();
};
</script>
@acoyfellow
acoyfellow / example.html
Created January 9, 2023 17:17
Swiper Example
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css"
/>
<!-- Swiper -->
<div class="swiper mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide tc"><img src="https://firebasestorage.googleapis.com/v0/b/phonesites-prod.appspot.com/o/images%2FUZCKxREA6sNku9tDPHVFxd5PSrG3%2F1672423440866*Slide3*jpg?alt=media&token=7eb8afaf-c931-4665-a2b8-9edad704b5c5" />
</div>
@acoyfellow
acoyfellow / hidden.html
Created September 17, 2022 15:26
Hidden Field
<script>
window.beforePost= function(){
formData.hiddenField1= "My Hidden Field";
};
</script>
@acoyfellow
acoyfellow / test.html
Created September 16, 2022 20:06
Add URL parameters into formData
<script>
window.beforePost= function(){
params.forEach(function(param){
formData[param.key]= param.val;
});
};
</script>