Skip to content

Instantly share code, notes, and snippets.

@zzak
Last active May 8, 2020 08:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzak/2dc3c582db686c02b4ec1fd313bb6e42 to your computer and use it in GitHub Desktop.
Save zzak/2dc3c582db686c02b4ec1fd313bb6e42 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Agile Poker Fullscreen
// @namespace http://tampermonkey.net/
// @version 0.2
// @updateURL https://gist.github.com/zzak/2dc3c582db686c02b4ec1fd313bb6e42/raw/agile-poker-fullscreen.user.js
// @description Make the Agile Poker modal dialog fullscreen (desktop friendly)
// @author Zachary Scott <zzak>
// @match https://agile-poker-production.herokuapp.com/*
// @require https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
document.arrive('.poker-fullscreen-dialog', () => {
GM_addStyle(`
.poker-fullscreen-dialog {
max-width: 100vw !important;
margin: 20px !important;
flex: 0 1 95% !important;
max-height: 95%;
}
.issue-details-panel {
flex: 0 0 45% !important;
}
`)
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment