Skip to content

Instantly share code, notes, and snippets.

@soundstep
Created April 1, 2020 11:52
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 soundstep/f0a9f174c20a7309b69c1e28109405c8 to your computer and use it in GitHub Desktop.
Save soundstep/f0a9f174c20a7309b69c1e28109405c8 to your computer and use it in GitHub Desktop.
Tampermonkey Gatling cleaner
// ==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