Skip to content

Instantly share code, notes, and snippets.

@dandiebolt
Created July 24, 2015 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dandiebolt/e35d4cd20c8548b77435 to your computer and use it in GitHub Desktop.
Save dandiebolt/e35d4cd20c8548b77435 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name FixCurlyQuotes
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://*.quickbase.com/db/*
// @grant none
// ==/UserScript==
$("textarea, input").on("blur", function() {
this.value = this.value
.replace(/\u2018|\u2019|\u201A|\uFFFD/g, "'")
.replace(/\u201c|\u201d|\u201e/g, '"');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment