Skip to content

Instantly share code, notes, and snippets.

@imyelo
Created April 24, 2022 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imyelo/7a560234ed1227028053ebe18342ac62 to your computer and use it in GitHub Desktop.
Save imyelo/7a560234ed1227028053ebe18342ac62 to your computer and use it in GitHub Desktop.
UserScript - LogSeq Print Mode
// ==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