-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-js-css-v8-220116.json
1 lines (1 loc) · 1.78 KB
/
user-js-css-v8-220116.json
1
{"libs":[{"name":"jQuery 3","src":"@extension@jquery.min.js"}],"settings":{"badgeCounter":false,"editorConfig":{"enableBasicAutocompletion":false,"enableLiveAutocompletion":true,"enableSnippets":true,"fontSize":15,"highlightActiveLine":false,"keyboardHandler":false,"showPrintMargin":false,"tabSize":4,"theme":"ace/theme/tomorrow","useSoftTabs":false,"useWorker":true,"wrap":true},"supportBtn":false,"themesFolder":["chrome","clouds","dawn","dracula","dreamweaver","eclipse","github","monokai","solarized_dark","solarized_light","textmate","tomorrow","tomorrow_night","twilight"],"version":8},"sites":[{"compiledCss":".tooltip-renderer.event-tooltip {display: none!important;}","css":".tooltip-renderer.event-tooltip {\n\tdisplay: none;\n}","id":"https://teamup.com/","js":"// When the \"Today\" button is clicked,\n// and that button is disabled (not changing from a different day),\n// Scroll to the current time in center of view\n\nconst addScrollToNowBehavior = (element) => {\n element.addEventListener('click', () => {\n scrollToNowLine()\n })\n}\n\nconst scrollToNowLine = () => {\n document.querySelector('.time-indicator-line').scrollIntoView({\n behavior: 'instant',\n block: 'center',\n })\n}\n\n// NOTE: The observer is required to make sure the element is loaded\n// before attempting to attach an event listener to that element\nconst observer = new MutationObserver((mutations, obs) => {\n const todayButton = document.querySelector('.toolbar-button.today')\n\n if (todayButton) {\n addScrollToNowBehavior(todayButton)\n }\n\n obs.disconnect()\n})\n\n// executes immediately\nobserver.observe(document, {\n childList: true,\n subtree: true,\n})\n","libs":[],"name":"Teamup","options":{"altCSS":true,"altJS":true,"autoImportant":false,"on":true}}]}