Last active
July 21, 2020 11:01
-
-
Save Jabster28/bb68b2b014062de8f23cacfec34292a6 to your computer and use it in GitHub Desktop.
"You should always bring a broom to a messy room"
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 SweepOverflow | |
// @namespace https://tampermonkey.net/ | |
// @version 1.0 | |
// @description Cleans question contents by fixing common typos, to save your brain the hassle. | |
// @author Jabster28 | |
// @license MIT | |
// @copyright 2020, Jabster28 (https://openuserjs.org/users/Jabster28) | |
// @require https://gitcdn.xyz/cdn/surfinzap/typopo/af175ce4eb7ac506ad771db4a9679c179aa49e81/dist/typopo_dist.min.js | |
// @match https://stackoverflow.com/questions/* | |
// @grant none | |
// ==/UserScript== | |
var elements = document.querySelectorAll(".post-text p"); | |
Array.prototype.forEach.call(elements, function (el, i) { | |
el.textContent = typopo.fixTypos(el.textContent, "en-us", { | |
removeLines: false, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment