NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Asana Better Fullscreen
// @namespace https://ekga.me/
// @version 1.0
// @description Wide fullscreen, don't close fullscreen by clicking outside of the pane, auto click all "expand" buttons.
// @author ek
// @match https://app.asana.com/*
// @grant GM_addStyle
// @license MIT
// ==/UserScript==
/* jshint esversion: 6 */
(function () {
'use strict';
GM_addStyle('.FocusModePage { pointer-events: none; }');
GM_addStyle('.FocusModePage-taskPane { pointer-events: all; flex: 0 1 1900px !important; }');
setInterval(function () {
// Expand "Read more"
document.querySelectorAll(".FocusModePage .TruncatedRichText-expand").forEach(el => el.click());
// Expand "Show N previous updates"
document.querySelectorAll(".FocusModePage .TaskStoryFeed-expandMiniStoriesLink").forEach(el => el.click());
// Expand "N more comments"
document.querySelectorAll(".FocusModePage .TaskStoryFeed-expandLink").forEach(el => {
if (!el.textContent.includes('Hide')) {
el.click();
}
});
}, 200);
})();