您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Typesetting the contents of the clipboard
当前为
// ==UserScript== // @name Latex_Automatic Formatting // @namespace http://tampermonkey.net/ // @version v0.34 // @description Typesetting the contents of the clipboard // @author Mozikiy // @match https://blog.csdn.net/*/article/details/* // @icon https://www.latex-project.org/favicon.ico // @license GNU GPLv3 // @grant none // ==/UserScript== (function() { 'use strict'; // 监听鼠标松开事件 document.addEventListener('mouseup', () => { // 获取选中的文本 const selectedText = window.getSelection().toString(); if (selectedText.trim()) { // 如果存在选中的文本,输出到控制台 console.log('选中的文本:', selectedText); } }); // 可选:在调试过程中加入提示 console.log('Latex_Automatic Formatting脚本已加载,正在监听文本选中事件...'); })();