Created
April 1, 2020 11:52
-
-
Save soundstep/f0a9f174c20a7309b69c1e28109405c8 to your computer and use it in GitHub Desktop.
Tampermonkey Gatling cleaner
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 Gatling report cleanup | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://ci.infradev.loadtest.itv.com* | |
// @grant none | |
// ==/UserScript== | |
const removeChild = (selector) => { | |
const node = document.querySelector(selector); | |
if (node && node.parentNode) { | |
node.parentNode.removeChild(node); | |
} | |
} | |
const select = (selector) => { | |
return document.querySelector(selector); | |
}; | |
(function() { | |
'use strict'; | |
removeChild('.nav'); | |
removeChild('.frise'); | |
removeChild('.head'); | |
select('.cadre').style.paddingLeft = '0px'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment