搜索
搜索
天涯的知库
显示页面
过去修订
您的足迹:
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== 油猴脚本 ====== 以下是最简易的一个脚本,在''<head>''当中插入script。 <code | javascript> // ==UserScript== // @name Notion Custom Script // @namespace none // @version 0.1 // @description Inject custom script into Notion pages // @match https://notion.so/* // @match https://www.notion.so/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your custom script here var customScript = document.createElement('script'); customScript.textContent = ` // Your custom JavaScript code here console.log('油猴脚本 => Notion 笔记'); `; document.head.appendChild(customScript); })(); </code> ===== 易学排盘 ===== 通过油猴脚本实现在Notion笔记中,显示易学卦。 <code> // ==UserScript== // @name Notion Custom Script // @namespace none // @version 0.1 // @description Inject custom script into Notion pages // @match https://notion.so/* // @match https://www.notion.so/* // @grant none // ==/UserScript== (function() { 'use strict'; // Create a <script> element for KaTeX var katexScript = document.createElement('script'); katexScript.type = 'text/javascript'; katexScript.src = 'http://mysite.com/katex.min.js'; katexScript.charset = 'utf-8'; katexScript.defer = true; // Append the <script> element to the <head> var head = document.getElementsByTagName('head')[0]; head.appendChild(katexScript); })(); </code>
it/skills/tempermonky.txt
· 最后更改: 2023-08-13 19:46 由
goldentianya
回到顶部