Created
April 24, 2022 07:27
-
-
Save imyelo/7a560234ed1227028053ebe18342ac62 to your computer and use it in GitHub Desktop.
UserScript - LogSeq Print Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LogSeq Print Mode | |
// @version 0.1 | |
// @author yelo <zhihuzeye@gmail.com> | |
// @match https://logseq.com/** | |
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js | |
// ==/UserScript== | |
/* global $ */ | |
(function() { | |
'use strict'; | |
const clean = () => { | |
$("#head").remove(); | |
$("#left-sidebar").remove(); | |
$("#main-container").css("position", "relative"); | |
$("#main-content").removeClass("is-left-sidebar-open"); | |
$("#left-container").css("height", "auto"); | |
$("#main-content-container").css("padding", 0); | |
$('.block-content img').css('max-width', 200) | |
}; | |
setInterval(clean, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment