// ==UserScript== // @name c4ai-command-r-plus.hf.space // @namespace Apache-2.0 // @version 1.0 // @description Customizing the appearance of the cohereforai-c4ai-command-r-plus.hf.space page // @author Tony 0tis // @license Apache-2.0 // @match *://cohereforai-c4ai-command-r-plus.hf.space/ // @icon https://cohereforai-c4ai-command-r-plus.hf.space/favicon.ico // @grant none // @downloadURL none // ==/UserScript== (function() { const observer = new MutationObserver((mutationsList, observer)=>{ for (const mutation of mutationsList) { for(const node of mutation.addedNodes){ if(node.id === 'logo-img'){ node.parentNode.parentNode.style.display = 'none'; } if(node.classList && node.classList.contains('label') && node.innerText === 'Examples'){ node.parentNode.parentNode.style.display = 'none'; } if(node.classList && node.classList.contains('message-wrap')){ let parent = node; while(true || parent){ if(parent.id.includes('component')){ parent.style.height = '100%'; if(parent.id === 'component-0'){ parent.style.height = 'calc(100vh - 40px)'; document.title = 'C4AI Command R Plus - a Hugging Face Space by CohereForAI'; break; } } parent = parent.parentNode; } } } } }); observer.observe(document, {attributes: false, childList: true, characterData: false, subtree:true}); document.addEventListener('beforeunload', ()=>{ observer.disconnect(); }); })();