Skip to content

Instantly share code, notes, and snippets.

View WouterG's full-sized avatar
💙

Wouter Gerarts WouterG

💙
View GitHub Profile
@WouterG
WouterG / AttributeTest.java
Created March 27, 2016 04:52
Increase tool speed for current held item (useful for worldedit wand etc)
import eu.aevium.rd.Debugger;
import eu.aevium.rd.RuntimeDebugger;
import net.minecraft.server.v1_9_R1.NBTTagCompound;
import net.minecraft.server.v1_9_R1.NBTTagInt;
import net.minecraft.server.v1_9_R1.NBTTagList;
import net.minecraft.server.v1_9_R1.NBTTagString;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer;
setInterval(function() {
if (API.getUser().vote == 0) {
$("#woot").click();
}
}, 15 * 1000);
@WouterG
WouterG / globalmods.js
Last active June 28, 2017 07:09
Whatsapp fullscreen modification
// ==UserScript==
// @name GLOBAL MODS
// @namespace http://wouto.net/
// @version 2.0
// @description Some mods to the LocalStorage engine, an ImageLoader and a StyleUtil, which is effective on all sites that Tampermonkey is allowed to run on
// @author Wouter
// @match *://*/*
// @grant none
// ==/UserScript==
@WouterG
WouterG / FancyTabName.java
Created August 28, 2016 16:59
fancy tab name
import com.spleefleague.core.SpleefLeague;
import com.spleefleague.core.player.SLPlayer;
import com.spleefleague.core.utils.Debugger;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitTask;
/**
@WouterG
WouterG / print-stack-trace.java
Created October 6, 2016 14:50
printstacktrace
/**
* Quickly print a stack trace without throwing any errors
*/
public static void printStackTrace() {
StackTraceElement[] st = Thread.currentThread().getStackTrace();
System.out.println("StackTracePrint: Application requested stacktrace print - This is not an error!");
if (st.length <= 2) {
System.err.println("\tFailed to write stacktrace! We ignore the first 2 elements but there aren't any others!");
return;
}
@WouterG
WouterG / JUnsafe.java
Created August 31, 2017 12:17
sun.misc.Unsafe made public/accessible
package net.wouto.debugutils;
import sun.misc.Unsafe;
import java.lang.reflect.Field;
import java.security.ProtectionDomain;
@SuppressWarnings("ALL")
public class JUnsafe {
public void properFecked() throws Exception {
Class integerCacheClass = Class.forName("java.lang.Integer$IntegerCache");
Field cacheField = integerCacheClass.getDeclaredField("cache");
if (Modifier.isFinal(cacheField.getModifiers())) {
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.set(cacheField, cacheField.getModifiers() - Modifier.FINAL);
}
if (!cacheField.isAccessible()) {
cacheField.setAccessible(true);
@WouterG
WouterG / plugdjhacks.js
Last active December 6, 2025 23:44
PlugDJ Hacks / Tampermonkey script
// ==UserScript==
// @name PlugDJ Hacks
// @version 1.5.6.10852
// @description Modify HACK_CONFIG to your own settings. Allows user property overrides and replaces the staff list with a better one
// @author Wouto1997
// @match https://plug.dj/*
// @grant none
// ==/UserScript==
// to find your user id you can use the developer console (F12) and run JS command "API.getUser().id"
@WouterG
WouterG / tampermonkey-script.js
Last active May 19, 2026 01:50
Disable youtube volume normalization (allow true video 100% volume)
// ==UserScript==
// @name YouTube Disable Normalization
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allows true 100% volume on youtube videos.
// @author Wouter Gerarts
// @match https://www.youtube.com/*
// @match https://youtube.com/*
// @grant none
// ==/UserScript==
import net.menoni.rd.RuntimeDebugger;
import net.menoni.rd.model.Debugger;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.util.Vector;