Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name NutAID
// @match *://*/*
// @version 1.2.0-indev5
// @author nutzlos
// @description Nut's All Image Downloader.
// @run-at document-start
// @inject-into content
// @sandbox DOM
// @grant GM_getValue
// Enum tương đương với ProductIntend trong C#
const ProductIntend = {
Sublime: 'Sublime',
VSCode: 'VSCode',
WebStom: 'WebStom'
};
function createLicenseData(licensee, email, expireDate, productIntend, isBundleForVSCode = false) {
if (productIntend === ProductIntend.Sublime) {
return licensee + "\n(Sublime)(Freedom)\n" + expireDate + "\n" + generateGuid().substring(0, 34);