// ==UserScript== // @name 某书笔记采集器 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 采集某书笔记信息的工具 // @author Your name // @match *://*.xiaohongshu.com/* // @grant none // @require https://code.jquery.com/jquery-3.6.0.min.js // @downloadURL https://update.greasyfork.cloud/scripts/517866/%E6%9F%90%E4%B9%A6%E7%AC%94%E8%AE%B0%E9%87%87%E9%9B%86%E5%99%A8.user.js // @updateURL https://update.greasyfork.cloud/scripts/517866/%E6%9F%90%E4%B9%A6%E7%AC%94%E8%AE%B0%E9%87%87%E9%9B%86%E5%99%A8.meta.js // ==/UserScript== (function() { 'use strict'; // 添加样式 const style = ` #collector-panel { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); background: white; border: 1px solid black; padding: 10px; z-index: 9999; width: 300px; border-radius: 5px; } #collector-count { margin-bottom: 10px; font-weight: bold; } #collected-data { width: 100%; height: 200px; margin-bottom: 10px; resize: vertical; } .collector-btn { margin: 5px; padding: 5px 10px; cursor: pointer; } #collector-count1 { margin-bottom: 10px; font-weight: bold; } `; $('