// ==UserScript== // @name 妖火热帖 // @namespace https://yaohuo.me/ // @version 0.6 // @description try to take over the world! // @author id:30235 // @match https://yaohuo.me/ // @icon https://yaohuo.me/css/favicon.ico // @grant GM_xmlhttpRequest // @license MIT // @connect yh.jdcc.cf // @connect yhw.jdcc.cf // @require https://lib.baomitu.com/jquery/3.6.0/jquery.js // @downloadURL none // ==/UserScript== (function() { let title = document.querySelector('.title'); let a = document.createElement("a"); let span = document.createElement("span"); span.className = "separate"; a.innerText = "热帖"; span.innerText = " "; a.style.cursor="pointer"; title.append(span); title.append(a); a.onclick=function(){ $.get('https://yh.jdcc.cf:2083/getHot',function(res){ let rt=""; for(let i=0;i'+"【"+res["data"][i][4]+"热】"+res["data"][i][3]+'
'; } rt = '
首页>论坛>热帖 更新于:'+res["updateTime"]+'
'+'
'+rt+'
'; $("body").html(''); $("body").append(rt); }) }; })();