Skip to content

Instantly share code, notes, and snippets.

@Jabster28
Last active July 21, 2020 11:01
Show Gist options
  • Save Jabster28/bb68b2b014062de8f23cacfec34292a6 to your computer and use it in GitHub Desktop.
Save Jabster28/bb68b2b014062de8f23cacfec34292a6 to your computer and use it in GitHub Desktop.
"You should always bring a broom to a messy room"
// ==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