Skip to content

Instantly share code, notes, and snippets.

@purarue
Last active October 29, 2024 22:08
Show Gist options
  • Save purarue/2928d972efae972571f1aa4f30aeeb5d to your computer and use it in GitHub Desktop.
Save purarue/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/purarue
// @version 0.1
// @description Hides E501 ('line too long') errors on pep8online.
// @author purarue
// @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