Skip to content

Instantly share code, notes, and snippets.

@devwolf75
devwolf75 / toTimezone.ts
Created February 14, 2020 04:24
Typescript function that takes a Date, string or moment object and converts it between timezones.
import * as moment from "moment-timezone";
/**
* @description
* @param {Date | string | moment} date Date to transform.
* @param {string} originTZ Timezone in which the date to transform is currently. I.E. "UTC". Defaults to client PC TZ.
* @param {string} destinationTZ Timezone to which to convert the date. I.E. "America/Los Angeles". Defaults to "UTC".
* @return {string} Date converted to destination timezone in string.
*
*/
@devwolf75
devwolf75 / vimm_download_url.js
Last active June 23, 2025 18:37
Add download URL button to Vimm's Vault pages
// ==UserScript==
// @name Vimm's Lair Download Button
// @homepage https://gist.github.com/devwolf75/8ea522aa06aefa22ae1e8cdda810c722
// @version 0.1
// @description Vimm's Lair script to add a 'Download URL' button on the page, copies URL to clipboard.
// @icon https://www.google.com/s2/favicons?sz=64&domain=vimm.net
// @author devwolf75
// @match https://vimm.net/vault/*
// @include https://vimm.net/vault/*
// @grant none