您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Parse markdown info in userjs.
当前为
// ==UserScript== // @name Grease Info // @version 1.1 // @namespace eight04.blogspot.com // @description Parse markdown info in userjs. // @include https://gf.qytechs.cn/scripts/* // @require https://code.jquery.com/jquery-1.11.1.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js // @grant GM_xmlhttpRequest // ==/UserScript== /***********************************markdown************************************ # Grease Info Experiment implementation! ## Version History ### Version 1.0 (Aug 16, 2014) * First release. *******************************************************************************/ var url, jsraw, info, parsedInfo; var draw = function(){ // console.log(info); if(!$("#additional-info").length){ $("#script-content").append( '<div id="additional-info">\ <h3>Author\'s Description</h3>\ <div></div>\ </div>' ); } $("#additional-info>div").html(parsedInfo); }; var parse = function(){ var RE = /\/\*[* \t]+(markdown)?[* \t]*\r?\n([\u0000-\uffff]+?)\r?\n[* \t]+\*\//m; var m = RE.exec(jsraw); info = m[2]; if(m[1]){ parsedInfo = marked(info); }else{ parsedInfo = $("<pre>" + info + "</pre>"); } draw(); }; var getJS = function(){ // console.log(url); var success = function(res){ jsraw = res.responseText; parse(); }; GM_xmlhttpRequest({ method: "GET", onload: success, url: url }); }; var checkJS = function(){ if(!$(".install-link").length){ return; } url = $(".install-link").prop("href"); getJS(); }; checkJS();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址