Skip to content

Instantly share code, notes, and snippets.

@jjspace
jjspace / xivsim-waymark-import.js
Last active June 19, 2023 23:16
xivsim waymark import
(function () {
// this is meant to be run as a snippet in chrome devTools
// if this is implemented in the actual game code it doesn't need this
// wrapper function
clear();
// prompt the user for the exported json from the pWaymark plugin
const importStr = prompt('Paste the export from the pWaymark plugin. This will REPLACE all your current sim waymarks. Cancel or leave blank to stop');
if (importStr === null || importStr === '') {
console.log('canceling import');
@jjspace
jjspace / fix-ffxiv-store-links.user.js
Last active October 21, 2022 20:44
FFXIV Store better links
@jjspace
jjspace / colorcode-gh.user.js
Last active September 12, 2024 14:31
Colorize repository and user names across various GitHub pages to make it easier to spot them and skim for matching names.
// ==UserScript==
// @name Colorcode GH
// @description Colorize repository and user names to allow for easier identification and skiming.
//
// @author jjspace
// @namespace https://github.com/jjspace
// @downloadURL https://gist.github.com/jjspace/df4fc6eaa587f70e60985977205e0787/raw/colorcode-gh.user.js
//
// @version 0.4.16
// @updateURL https://gist.github.com/jjspace/df4fc6eaa587f70e60985977205e0787/raw/colorcode-gh.user.js
@jjspace
jjspace / gdq-schedule-progress.user.js
Last active January 16, 2024 18:50
Userscript for showing which events have already passed on the GDQ Schedule page
// ==UserScript==
// @name GDQ Schedule Progress
// @description Style the GDQ Schedule page to show which events have already passed
//
// @author jjspace
// @namespace https://github.com/jjspace
// @downloadURL https://gist.github.com/jjspace/1140c685307d157a9c83640e2a031a27/raw/gdq-schedule-progress.user.js
//
// @version 0.2.3
// @updateURL https://gist.github.com/jjspace/1140c685307d157a9c83640e2a031a27/raw/gdq-schedule-progress.user.js
@jjspace
jjspace / betterDom.js
Last active July 8, 2019 19:41
Better DOM createElement and style
/**
* Add a new stylesheet to this page with the provided rules
* Rules should be an array of the form:
* [['selector string', { *rules object* }]]
* where rules object is:
* { property: 'value', ...}
* property names are camelCase versions of css properties
* for example the prop 'background-color' would become 'backgroundColor'
* @param {Array} rules
* @example
@jjspace
jjspace / sortingAlgorithm.js
Last active November 28, 2018 15:54
sorting initially by severity, then count
/**
* TODO:
* Implement updated sorting functionality. Sort by:
* - High risks (high to low)
* - No High Risks. Medium risks (high to low)
* - No High Risks. No Medium Risks. Low Risks (high to low)
**/
// Expected sorting result:
// summaryBuckets.sort = [
@jjspace
jjspace / dimQuickfilters.user.js
Last active August 14, 2020 13:50
DIM Quickfilters
// ==UserScript==
// @name DIM Quickfilters
// @description Add a quick filter dropdown for DIM
//
// @author jjspace
// @namespace http://github.com/jjspace
// @downloadURL https://gist.github.com/jjspace/b9dec89b1aa68ee9356270b6507bc27c/raw/dimQuickfilters.user.js
//
// @version 1.0.6
// @updateUrl https://gist.github.com/jjspace/b9dec89b1aa68ee9356270b6507bc27c/raw/dimQuickfilters.user.js