JSFiddle - React, Tailwind, and code Playground
by alex gabri
JavaScript
// ==UserScript==
// @name kakku man's plugin v2
// @namespace kmp
// @description Adds stuff and such.
// @include http://kdice.com/*
// @include http://www.kdice.com/*
// @include http://gpokr.com/*
// @include http://www.gpokr.com/*
// @include http://xsketch.com/*
// @include http://www.xsketch.com/*
// @version 0.2.02
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js
// @require https://www.google.com/jsapi
// @grant none
// ==/UserScript==
console.log('...plugin starts');
kmp = {};
kmp.VERSION = "0.2.02";
////############> init functions <##############
kmp.OtherInit = function () {
console.log('OtherInit... href='+window.location.href);
kmp.pnlinks = "";
kmp.statTable;
kmp.playerstat;
kmp.userDiceCounter = [0,0,0,0,0,0];
if(GMO_getValue("kmp_minTheme") == true){ kmp.themeStyler(); }
if(window.location.href.indexOf("monthStats") != -1){
console.log('.monthStats');
kmp.pnlinks = $('#mainpage td:first-child div:first-child div:first-child').html().replace('Month Archives','</br>Month Archives</br>');
playerstat= false;
kmp.statTable = $('.wide.stats');
kmp.forumChanges();
kmp.tableChanges(false);
kmp.checkmembers(".stats .notcurrent");
} else if(window.location.href.indexOf("stats") != -1 && window.location.href.indexOf("profile") != -1 ){
console.log('.profile .stats');
playerstat = true;
kmp.statTable = $('.section:last .wide.stats');
kmp.forumChanges();
kmp.tableChanges(true);
if(window.location.href.indexOf("kdice.com") != -1) { //todo: this?
kmp.showHistory();
kmp.profileNR = window.location.href.split("/")[4];
var d=new Date(); var year = d.getYear(); var month =...