Last active
March 2, 2022 08:41
-
-
Save roylez/851f61838d6b79d3501e9bfe37c9f063 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 LightningReadability | |
// @namespace http://tampermonkey.net/ | |
// @description SalesForce lightning readability | |
// @author roylez | |
// @include https://*.lightning.force.com/lightning/*/Case* | |
// @license MIT | |
// @grant GM_addStyle | |
// jQuery is already loaded | |
// @updateURL https://gist.github.com/roylez/851f61838d6b79d3501e9bfe37c9f063/raw/LightningReadability.user.js | |
// @downloadURL https://gist.github.com/roylez/851f61838d6b79d3501e9bfe37c9f063/raw/LightningReadability.user.js | |
// @run-at document-start | |
// ==/UserScript== | |
GM_addStyle ( ` | |
.region-sidebar-left { | |
display: none; | |
} | |
.region-main { width: 100% !important; } | |
.region-main,.oneConsoleTab .cellContainer { | |
font-family: monospace; | |
font-size: medium; | |
} | |
.oneUtilityBarPanel { | |
height: 480px; bottom: -480px; width: 460px; z-index: 2; | |
} | |
` ); | |
var $ = window.jQuery | |
// new MutationObserver(function(mutation) { | |
// if ($('.region-main').innerHTML) { | |
// console.log("found!!!!!!") | |
// } else { | |
// console.log("not found!!!") | |
// } | |
// }).observe(document, { | |
// subtree: true, | |
// childList: true, | |
// attributes: false, | |
// characterData: false, | |
// attributeOldValue: false, | |
// characterDataOldValue: false | |
// }) | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment