Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Last active December 5, 2018 16:57
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 josephwegner/7b4233de0796111d7dcda25650aaf483 to your computer and use it in GitHub Desktop.
Save josephwegner/7b4233de0796111d7dcda25650aaf483 to your computer and use it in GitHub Desktop.
Hide Form Fill Intro
// ==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