Last active
December 5, 2018 16:57
-
-
Save josephwegner/7b4233de0796111d7dcda25650aaf483 to your computer and use it in GitHub Desktop.
Hide Form Fill Intro
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 Form Fill Intro Fixer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2.1 | |
// @description Hide the Form Fill boiler plate intro description | |
// @author You | |
// @match https://support.heroku.com/tags/* | |
// @match https://support.heroku.com/inbox | |
// @match https://support.heroku.com/search* | |
// @grant none | |
// ==/UserScript== | |
const bad = '## Web - Critical Application Form' | |
document.querySelectorAll('.intro').forEach(function(intro) { | |
if(intro.innerText.indexOf(bad) === 0) { | |
var messageIndex = intro.innerText.indexOf('message:') | |
intro.innerText = intro.innerText.substr(messageIndex + 9) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment