Created
September 20, 2017 13:13
-
-
Save Cyclodex/766db87050523e172766cafaf08a08e4 to your computer and use it in GitHub Desktop.
Make the textarea field on gitlab (nothing galaxy) full width
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 Galaxy/Gitlab: Wider editing window | |
// @namespace Cyclodex | |
// @version 0.1 | |
// @description Increase the editing text-area for big screens on (gitlab on galaxy) | |
// @author Cyclodex <cyclodex@nothing.ch> | |
// @match https://galaxy.nothing.ch/*/issues/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function increaseEditField() { | |
// When adding an image, instead of an empty tag, this takes the latest added attachment path as well | |
$('.container-fluid.container-limited.limit-container-width').css('max-width', 'none'); | |
$('.detail-page-description.content-block').css('max-width', 'none'); | |
$('.zen-backdrop.fullscreen textarea').css('max-width', 'none'); | |
console.log($('.container-fluid.container-limited.limit-container-width').css('max-width')); | |
console.log($('.detail-page-description.content-block').css('max-width')); | |
} | |
// add button when ajax request was done (otherwise we loose the buttons) | |
$( document ).ajaxComplete(function() { | |
increaseEditField(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment