Skip to content

Instantly share code, notes, and snippets.

View coreequip's full-sized avatar

Baxter coreequip

View GitHub Profile
@coreequip
coreequip / short-ali.userscript.js
Last active August 29, 2022 17:32 — forked from eremin/ageShot.js
Aliexpress/eBay/Gearbest URL Shortener
// ==UserScript==
// @name Aliexpress/eBay/Gearbest/Amazon URL Shortener
// @namespace http://tampermonkey.net/
// @version 0.5
// @author hedgehog, core.equip
// @match https://*.aliexpress.com/item/*
// @match https://*.ebay.de/itm/*
// @match https://*.ebay.com/itm/*
// @match https://*.gearbest.com/*
// @match https://*.amazon.de/*
(function( $ ) {
$.fn.readOnlySuffix = function(suffix) {
return this.each(function() {
var $this = $(this),
suffixLength = suffix.length,
oldValue = suffix,
mouseIsDown = false;
// Must be a text input or text area
if (!($this.is(":text") || $this.tagName.toLowerCase() == "textarea")){