// ==UserScript== // @name Ramotion Blog Beautification // @name:zh-CN Ramotion 博客美化 // @namespace https://github.com/qixing-jk/ramotion-beautification // @version 1.0.2 // @description Improve reading experience on ramotion.com blog // @description:zh-CN 优化 ramotion.com 博客的阅读体验 // @icon https://www.ramotion.com/favicon.ico // @downloadURL https://raw.githubusercontent.com/qixing-jk/ramotion-beautification/refs/heads/main/dist/ramotion-beautification.optimized.user.js // @updateURL https://raw.githubusercontent.com/qixing-jk/ramotion-beautification/refs/heads/main/dist/ramotion-beautification.optimized.user.js // @match *://www.ramotion.com/blog/* // @grant GM_addStyle // @grant GM_getValue // @grant GM_registerMenuCommand // @grant GM_setValue // @run-at document-start // ==/UserScript== (function () { 'use strict'; var d=typeof GM_addStyle<"u"?GM_addStyle:void 0,n=typeof GM_getValue<"u"?GM_getValue:void 0,a=typeof GM_registerMenuCommand<"u"?GM_registerMenuCommand:void 0,t=typeof GM_setValue<"u"?GM_setValue:void 0;const i="ramotionBeautifierEnabled",e=n(i,true);a(`${e?"Disable":"Enable"} Blog Beautifier`,()=>{t(i,!e),window.location.reload();});e&&d(` /* Hide the subscription sidebar */ #gatsby-focus-wrapper > div > main > div:nth-child(1) > div > aside { display: none !important; } /* Remove max-width from container to allow it to fill space */ #gatsby-focus-wrapper > div > main > div:nth-child(1) > div > div { max-width: none !important; } `); })();