This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name DOM Parent Collector | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Collect DOM parents of clicked elements and organize them | |
// @author You | |
// @match *://*/* | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_addStyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LinkedIn Easy Apply Bot (Enhanced) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automates applying to "Easy Apply" jobs on LinkedIn with UI and persistence. | |
// @author Your Name & Original Author | |
// @match *://www.linkedin.com/jobs/search/* | |
// @match *://www.linkedin.com/jobs/collections/* | |
// @match *://www.linkedin.com/jobs/view/* | |
// @grant GM_setValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Joblum Board Auto-Apply | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Automates applying to frontend web developer jobs on a job board. | |
// @author You | |
// @match *://ru.joblum.com/* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @grant GM_addStyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-namespace */ | |
/** | |
* Configuration for type-safe environment variables. | |
* Imported through src/app/page.tsx | |
* @see https://x.com/mattpocockuk/status/1760991147793449396 | |
*/ | |
import { z } from 'zod' | |
const envVariables = z.object({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TS Decorators | |
function Component(constructor: Function) { | |
// here we can do something like add/modify/enhance/delete properties from class methods | |
constructor.prototype.uniqueID = Math.random(); | |
constructor.prototype.insertInDOM = () => { | |
console.log(`Inserting component in DOM`); | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// type `never` is great for exhaustive checking, great for exhaustive switch statements | |
type Bird = { | |
kind: 'bird' | |
legs: number | |
wings: 2 | |
} | |
type Dog = { | |
kind: 'dog' | |
legs: number | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Email Scraper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Scrape emails across multiple pages and save to CSV | |
// @match https://solicitors.lawsociety.org.uk/* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @run-at document-end | |
// @license MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// **** Types **** // | |
export type TFunc = (...args: any[]) => any; | |
export type TEmail = `${string}@${string}`; | |
export type TColor = `#${string}`; | |
// **** Variables **** // | |
const EMAIL_RGX = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9-]*\.)+[A-Z]{2,}$/i, |
NewerOlder