Skip to content

Instantly share code, notes, and snippets.

@kosiew
kosiew / aop.js
Last active March 31, 2021 09:40
Aspects for debugging
// version 1.00
let indent = 0,
LEVEL_0_COLOR = '#060dd3',
LEVEL_X_COLOR = '#D33106',
DLOG_DEBUG = true;
const START = '<',
END = '>';
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
function copyUrl() {
const url = window.location.href;
GM_setClipboard(url);
}
// ==UserScript==
// @name Zendesk Plus
// @namespace https://wpcomhappy.wordpress.com/
// @icon https://raw.githubusercontent.com/soufianesakhi/feedly-filtering-and-sorting/master/web-ext/icons/128.png
// @version 1.0
// @description Tool for enhancing Zendesk
// @author Siew "@xizun"
// @match https://woothemes.zendesk.com/*
// @grant GM_setClipboard
// @require http://code.jquery.com/jquery-3.4.1.min.js
@kosiew
kosiew / Withdrawn
Last active January 20, 2020 04:02
This script has been withdrawn.