Skip to content

Instantly share code, notes, and snippets.

@seanbreckenridge
Created April 21, 2018 12:36
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 seanbreckenridge/2928d972efae972571f1aa4f30aeeb5d to your computer and use it in GitHub Desktop.
Save seanbreckenridge/2928d972efae972571f1aa4f30aeeb5d to your computer and use it in GitHub Desktop.
Hides E501 ('line too long') errors on pep8online.
// ==UserScript==
// @name Hide E501 Warnings
// @namespace github.com/seanbrecke
// @version 0.1
// @description Hides E501 ('line too long') errors on pep8online.
// @author seanbrecke
// @match http://pep8online.com/checkresult
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/UserScript==
(function() {
"use strict";
$("tr.tr-result").each(function() {
if ($(this).find("td").first().text().trim() == "E501") {
$(this).hide();
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment