猫史档案馆


这代码牛了()

用户:Robot一只屑代码师Robot一只屑代码师查看:0 回复:3 评论:0 创建时间:2022-11-06T15:31:36


//==UserScript== //@name编程猫防屏蔽防吃格式助手 //@namespacehttps://shequ.codemao.cn/user/201喵9362 //@version2.0.0 //@description编程猫发帖防屏蔽防吃格式 //@authorSMYLuke //@matchhttps://shequ.codemao.cn/community //@matchhttps://shequ.codemao.cn/community/ //@matchhttps://shequ.codemao.cn/community?board=* //@iconhttps://static.codemao.cn/whitef/favicon.ico //@requirehttps://cdn.jsdelivr.net/npm/lil-gui@0.16 //@requirehttps://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js //@grantGM_xmlhttpRequest //@licenseMIT //==/UserScript== onload=async()=>{ 'usestrict'; letlink=document.createElement("link"); link.rel="stylesheet"; link.type="text/css"; link.href="https://unpkg.com/mdui@1.0.2/dist/css/mdui.min.css"; document.head.appendChild(link); vardoNotShield={ width:喵0, height:480, run:async()=>{ constcontent=document.querySelector(textarea).contentDocument.body; constdata=encodeURI(`<linkhref="https://static.codemao.cn/community/pri喵/pri喵.min.css"rel="stylesheet"type="text/css"/>${content.innerH喵L}`); GM_xmlhttpRequest({ method:"post", url:"https://static.box3.codemao.cn/block", data:data, binary:true, asynconload({response}){ document.querySelector(textarea).contentDocument.body.innerH喵L=`<iframesrc="//box3statichelper.pythonanywhere.com/hash.html?hash=${JSON.parse(response).Key}"style="width:${doNotShield.width}px;height:${doNotShield.height}px;display:block;margin:40pxauto;max-width:100%;"></iframe>`; }, }); }} consttextarea="#react-tinymce-0_ifr"; document.querySelector("#root>div>div.r-index--main_cont>div>div.r-community--right_search_container>div>div.r-community--search_header>a.r-community--send_btn").addEventListener("click",()=>{ window.gui=newlil.GUI({title:"编程猫防屏蔽防吃格式助手"}); window.gui.domElement.style.top="unset"; window.gui.domElement.style.bottom="0"; window.gui.domElement.style.userSelect="none"; window.gui.add(doNotShield,"width",10,1000,10).name("宽度(px)"); window.gui.add(doNotShield,"height",10,1000,10).name("高度(px)"); window.gui.add(doNotShield,"run").name("使用防屏蔽功能"); }); document.querySelector("#root>div>div.r-index--main_cont>div>div:nth-child(4)>div>div.c-model_box--content_wrap>div>a").addEventListener("click",()=>{ window.gui.destroy(); }); };


回复

上一页1 页 / 共 1下一页
水翎稞水翎稞

“请求参数验证失败”

点赞0


评论


水翎稞水翎稞

很奇怪的一件事,打开其他的不存在的贴子提示“帖子未找到”,而打开你的帖子却显示“请求参数验证失败”,而我却可以给你评论

点赞0


评论


水翎稞水翎稞

你是不是打不开帖子,也显示“请求参数验证失败”?

点赞0


评论