Skip to content

Instantly share code, notes, and snippets.

@ianmcilwraith
ianmcilwraith / poshmark-share
Last active April 6, 2024 06:59 — forked from SeanMcGrath/poshmark-share
JS code to share all items in a poshmark closet to followers and all available events
// Share your poshmark closet on a loop.
// only likely to work in modern browers, Chrome preferred but works in Safari.
// Paste this into the console or make a javascript bookmarklet
// This fork is designed to work on large closets with 40+ items
const clickDelta = 2000; // ms delay between clicks
const cycleDelta = clickDelta * 100; // ms delay between share cycles
const clickLinks = (el) => {
el.click();
javascript:(function(){document.querySelectorAll(`path[stroke-linecap='round']`).forEach(el => {el.parentElement.parentElement.parentElement.click()})})()
@yada-yoda
yada-yoda / poshmark-share
Created January 14, 2019 07:33 — forked from SeanMcGrath/poshmark-share
JS code to share all items in a poshmark closet to followers and all available events
var clickDelta = 2000; // ms delay between clicks
var cycleDelta = clickDelta * 100; // ms delay between share cycles
// do the actual clicking
var clickLinks = function() {
$(this).click();
$("[data-pa-name^='share_poshmark']").click();
};
var notSold = function(el) {
@ThePhxRises
ThePhxRises / discordwebhook.html
Last active February 17, 2020 06:07
Sends messages using Discord webhooks. Now supports multiline messages and has a proper submit button.
<html><head>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css" rel="stylesheet">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>General Use Sender</title>
<style>
textarea{
resize: none;
}
.btn-full-width {
@matthewzring
matthewzring / markdown-text-101.md
Last active July 24, 2024 06:37
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@randyklein
randyklein / config.py
Last active March 4, 2022 08:20
Simple NiceHash Monitor
#config
minProf= .001 #min profit for alert in BTC/Day
slowAlertTimer = 300 #min time for slow alert in seconds
offTimer = 0 #min time of off alert in seconds
btcAddress = "address goes here" #niceHash BTC address to monitor
iftttKey = "key goes here" #key from IFTTT Maker applet
Process for setting up github pages with namecheap domain.
1. Go to namecheap.com, select and buy domain name.
2. Login to namecheap, go to username drop down and select dashboard.
3. Go to DomainList
4. Click manage button
5. Click Advanced DNS tab
6. Click add record and add three records:
Type: A Record | Host: @ | Value: 192.30.252.153 | TTL: Automatic
@IMcPwn
IMcPwn / delete-all-messages.js
Last active July 12, 2023 19:41 — forked from niahoo/delete-all-messages.js
Delete all messages in a Discord channel
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom)
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right.
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID.
// Copy / paste the below script into the JavaScript console.
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages).
var before = 'LAST_MESSAGE_ID';
clearMessages = function(){
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();
@SeanMcGrath
SeanMcGrath / poshmark-share
Last active April 24, 2024 18:12
JS code to share all items in a poshmark closet to followers and all available events
const clickDelta = 4000; // ms delay between clicks
const cycleDelta = clickDelta * 100; // ms delay between share cycles
const clickLinks = (el) => {
el.click();
// set a short timeout so there's time to load in the active parties/render the modal
setTimeout(() => {
document
.querySelectorAll("[data-et-name='share_poshmark']")