您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
点击右上角打印按钮,打印本篇笔记。
// ==UserScript== // @name 小米便签(笔记)pdf导出工具 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 点击右上角打印按钮,打印本篇笔记。 // @author aqni // @match https://i.mi.com/note/h5 // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/[email protected]/jQuery.print.js // @grant none // ==/UserScript== (function(){ /* globals $*/ 'use strict'; const iconHTML='<i class="icon-8zlI5"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="1em" height="1em" fill="none"><path d="M14,15.3h4v-8H2v8h4V18h8v-5.3H6 M6,7.3V2.9C6,2.4,6.4,2,7,2h6c0.6,0,1,0.4,1,0.9v2.2" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/></svg></i>'; const btnCreate=`<button class="action-2Jcj0 action-btn-3pa39">${iconHTML}</button>`; const posSelect="span.action-group-record-21ymU"; const noteSelect="div.editor-body-VJW45"; $(document).ready(function(){ $(posSelect).prepend( $(btnCreate).click(function(){ $(noteSelect).print(); }) ); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址