Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:(function(){
- const customStyles = `
- :not(.katex):not(.katex *) {
- font-family: Arial, sans-serif !important;
- }
- :not(.katex) code:not(.katex *), :not(.katex) span:not(.katex *) {
- font-family: Menlo, monospace !important;
- white-space: pre-wrap !important;
- overflow-wrap: break-word !important;
- }
- :not(.katex) .overflow-auto:not(.katex *), :not(.katex *) .overflow-auto {
- overflow: visible !important;
- }
- :not(.katex) .h-full:not(.katex *), :not(.katex *) .h-full {
- height: auto !important;
- }
- :not(.katex) #text:not(.katex *), :not(.katex *) #text {
- white-space: pre-wrap !important;
- }
- a[data-skip-to-content], #thread-bottom-container, #stage-slideover-sidebar {
- display: none;
- }
- * {
- scrollbar-width: none;
- }
- `;
- const styleSheet = document.createElement("style");
- styleSheet.type = "text/css";
- styleSheet.innerText = customStyles;
- document.head.appendChild(styleSheet);
- const copyButtonParentDivs = document.evaluate("//div[@id='thread']//article//div[./div[./button[@aria-label='Copy']]]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
- for (let i = 0; i < copyButtonParentDivs.snapshotLength; i++) {
- const node = copyButtonParentDivs.snapshotItem(i);
- if (node) node.remove();
- }
- const hiddenDiv = document.querySelector("div.draggable:has(~ main#main)");
- if (hiddenDiv) {
- hiddenDiv.style.display = "none";
- }
- const endspacerDivXPathResult = document.evaluate("//div[div/main[@id='main']]/following-sibling::div[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
- if (endspacerDivXPathResult) {
- const endspacerDiv = endspacerDivXPathResult.singleNodeValue;
- if (endspacerDiv) {
- endspacerDiv.style.display = "none";
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment