Created
July 24, 2015 00:46
-
-
Save dandiebolt/e35d4cd20c8548b77435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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