Skip to content

Instantly share code, notes, and snippets.

View mkxto's full-sized avatar
👋

mkxto mkxto

👋
View GitHub Profile
@mkxto
mkxto / grab_offerid_amazon_eu.js
Created January 28, 2025 20:02
DeepSeek generated Tamper monkey script to grab OfferID from an Amazon EU product with a button + notifications
// ==UserScript==
// @name Amazon OfferID Grabber
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Copies Amazon product offer ID from input field with id "offerListingId" to clipboard
// @author Your Name
// @match https://www.amazon.de/*
// @match https://www.amazon.fr/*
// @match https://www.amazon.co.uk/*
// @match https://www.amazon.it/*
@mkxto
mkxto / import_folders_images-vitejs.jsx
Created February 24, 2023 17:47
Import all image from a folder with Vite, this version work in both dev and "release" mode.
Object.values(import.meta.glob('../path/*.{png,jpg,jpeg,PNG,JPEG}', { eager: true, as: 'url' }))
/*
Example:
[
0: "/src/assets/asso/Nogent_Seine.jpeg"
1: "/src/assets/asso/NogentsurSeine(2).jpeg"
2: "/src/assets/asso/Rimaucourt(2).jpg"
3: "/src/assets/asso/Rimaucourt(3).jpg"
4: "/src/assets/asso/Rimaucourt(4).jpg"