Skip to content

Instantly share code, notes, and snippets.

/*
========== NEOPETS BATTLEDOME AUTO-FIGHT ==========
Step 1: Start a new battle in the Battledome and select your two weapons and skill
Step 2: Open your devtools (right click + inspect OR F12)
Step 3: Go to the Console tab
Step 4: Paste the code below and click 'enter' - now your Neopet will automatically fight the opponent. Great for Punchbag Bob!
There is an explanation to the code in the comments below for those weary about inputting random code into your developer console
@reggi
reggi / ebay-preferences.user.js
Last active March 18, 2024 16:58
Greasemonkey / Tampermonkey Scripts
// ==UserScript==
// @name ebay-preferences
// @namespace https://reggi.github.io/
// @version 1.0.0
// @description My ebay preferences
// @author Thomas Reggi
// @match https://www.ebay.com/*
// ==/UserScript==
(function() {
@christopherkade
christopherkade / Bookmarklet
Last active February 23, 2024 20:00
Generates a Cardmarket "Wants" deck list based on the deck being viewed on any decklog-en.bushiroad.com/view/DECK-CODE page. Save the bookmarklet below as a bookmark or use the Javascript code directly in the console.
javascript:var%20%24jscomp%3D%24jscomp%7C%7C%7B%7D%3B%24jscomp.scope%3D%7B%7D%3B%24jscomp.createTemplateTagFirstArg%3Dfunction(a)%7Breturn%20a.raw%3Da%7D%3B%24jscomp.createTemplateTagFirstArgWithRaw%3Dfunction(a%2Cb)%7Ba.raw%3Db%3Breturn%20a%7D%3Bvar%20getDeckListFromDom%3Dfunction(a)%7Ba%3Dvoid%200%3D%3D%3Da%3F%22D%22%3Aa%3Bvar%20b%3D%22%22%3Bdocument.querySelectorAll(%22.card-controller-inner%22).forEach(function(c)%7Bvar%20d%3Dc.firstChild.title.split(%22%3A%22)%5B1%5D.trim()%3Bc%3Dc.lastChild.innerText%3Bd%3Dd.concat(%22%20%5B%22%2Ba%2B%22%20Format%5D%22)%3Bb%3Db.concat(%22%5Cn%22%2Cc%2B%22%20%22%2Bd)%7D)%3Breturn%20b%7D%2Clist%3DgetDeckListFromDom()%3Bprompt(%22Please%20copy%20your%20decklist%20and%20import%20it%20to%20Cardmarket%22%2Clist)%3Bvoid+0
@okkdev
okkdev / cardmarket_wantlist_extractor.js
Last active February 23, 2024 20:03
Run this script in the browser console of a cardmarket wantlist to export the list as decklist with this format: AMOUNTx CARDNAME (EXPANSION)
console.log([...document.querySelectorAll('#WantsListTable>table>tbody>tr')].map(x => [x.querySelector('.amount').innerText+'x', x.querySelector('.name').innerText, '('+x.querySelector('.expansion>div>span>span').innerText+')'].join(' ')).join('\n'))
@Phury
Phury / cmkTableToTsv.js
Last active February 23, 2024 20:04
Export CardMarket tables in TSV (and copies to clipboard)
function mapRow(row) {
return Array.from(row.cells).map(cell => {
if (cell.className.indexOf('amount') > -1) return cell.textContent.replace('x', '');
if (cell.className.indexOf('name') > -1) return cell.textContent;
if (cell.className.indexOf('price') > -1) return cell.textContent;
return null;
})
.filter(parsed => parsed !== null)
.join(' ');
@matthewzring
matthewzring / markdown-text-101.md
Last active June 17, 2025 16:18
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:

@spiralx
spiralx / User script templates for Tampermonkey
Last active September 23, 2024 18:22
Tampermonkey user script templates
For
* ES5
* ES6
* CoffeeScript
@moimikey
moimikey / pricechecker.coffee
Last active December 27, 2024 16:24
Neopets.com SDB Price Checker
# This is best when used in conjunction with the Injector chrome extension:
# http://neocotic.com/injector
#
# Add this snippet of code and launch Chrome or Canary in no sec mode:
#
# alias chrome-nosec="open /Applications/Google\ Chrome.app --args --disable-web-security --disable-prompt-on-repost"
# alias canary-nosec="open /Applications/Google\ Chrome\ Canary.app --args --disable-web-security --disable-prompt-on-repost"
#
# Then pretty much just keep your dev console open and everytime you visit a page in the SDB, the code will
# automatically reach out to the JellyNeo item database and tell you if anything in your SDB is worth over x nps.