Skip to content

Instantly share code, notes, and snippets.

@roylez
Last active March 2, 2022 08:41
Show Gist options
  • Save roylez/851f61838d6b79d3501e9bfe37c9f063 to your computer and use it in GitHub Desktop.
Save roylez/851f61838d6b79d3501e9bfe37c9f063 to your computer and use it in GitHub Desktop.
// ==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