Skip to content

Instantly share code, notes, and snippets.

@mbaersch
Created September 22, 2022 10:01
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 mbaersch/ffad4119fd78477bfb6a9ff006f809a7 to your computer and use it in GitHub Desktop.
Save mbaersch/ffad4119fd78477bfb6a9ff006f809a7 to your computer and use it in GitHub Desktop.
Tampermonkey Script for adjusting GTM user interface to full size use
// ==UserScript==
// @name Full Size GTM
// @namespace http://tampermonkey.net/
// @version 0.1
// @description adjust GTM user interface to full size use
// @author MBSL
// @match https://tagmanager.google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
var s = document.createElement('style');
s.innerHTML = ".gtm-container-page-content-wrapper{flex: 0 1 100%;} .gtm-sheet{max-width:100%!important;transform:none!important} div.sheet-padding{width:100%important}";
s.innerHTML += "@media (min-width: 1160px) {.gtm-sheet .gtm-sheet-centered .sheet-content, .gtm-sheet .gtm-sheet--centered .sheet-content {width: auto!important;}}";
document.body.appendChild(s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment