您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
The clipper Bookmarklet
// ==UserScript== // @name OneNote Clipper // @namespace https://github.com/vylet/OneNote // @description The clipper Bookmarklet // @include http://* // @include https://* // @version 1.0 // @grant none // ==/UserScript== var onenote = function() { var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://www.onenote.com/clipper/root?ClipperId=ON-6a191eef-84a2-4491-9cc2-2e4560cfb9af&ClipperType=Bookmarklet&ClipperVersion=2.0.2'); jsCode.setAttribute('id', 'oneNoteCaptureRootScript'); jsCode.setAttribute('type', 'text/javascript'); document.body.appendChild(jsCode); }; (function(){ document.addEventListener('keydown', function(e) { // pressed ctrl+alt+o if (e.keyCode == 79 && !e.shiftKey && e.ctrlKey && e.altKey && !e.metaKey) { console.log("Clipper Hotkey Pressed") onenote(); // Open OneNote Clipper. } }, false); })();