Last active
April 21, 2020 11:44
-
-
Save azman0101/63f2e9fd049535d7df24a62a68b177bb to your computer and use it in GitHub Desktop.
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 Enlarge Gitlab CI Job | |
// @namespace https://gist.github.com/azman0101/63f2e9fd049535d7df24a62a68b177bb | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*/*/*/pipelines/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log('Installing "Gitlab CI change"'); | |
addGlobalStyle(".pipeline-graph .build { width: 100% !important; }"); | |
// var demoClasses = document.getElementsByClassName('ci-status-text'); | |
// Object.keys(demoClasses).forEach(function (key) { | |
// console.log(demoClasses[key].id); | |
// }); | |
// // Change the text of multiple elements with a loop | |
// demoClasses.forEach(element => { | |
// console.log(element); | |
// element.classList.remove('text-truncate'); | |
// }); | |
// console.log(demoClasses); | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment