- 资源分享区
资源分享-FunOI JS项目源代码最新版本分享
- 2023-7-23 11:39:27 @
旧仓库:https://gitee.com/wtxyyds/js
旧名称:MCOI_JS_addition
新名称: FunOI JS项目
源代码(raw):
<!--头文件-->
<!--引用库-->
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.6.2.js"> </script>
<!--普通功能-->
<!--背景线条-->
<script>(()=>{function e(e,n,t){return e.getAttribute(n)||t}function n(){l=i.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=i.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function c(){var t,o,i,a,m;r.clearRect(0,0,l,u),s.forEach(function(e,n){for(e.x+=e.xa,e.y+=e.ya,e.xa*=e.x>l||e.x<0?-1:1,e.ya*=e.y>u||e.y<0?-1:1,r.fillRect(e.x-.5,e.y-.5,1,1),o=n+1;o<d.length;o++)null!==(t=d[o]).x&&null!==t.y&&(i=e.x-t.x,a=e.y-t.y,(m=i*i+a*a)<t.max&&(t===y&&m>=t.max/2&&(e.x-=.03*i,e.y-=.03*a),m=(t.max-m)/t.max,r.beginPath(),r.lineWidth=m/2,r.strokeStyle="rgba("+x.c+","+(.2+m)+")",r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke()))}),w(c)}var l,u,d,t,o,i=document.createElement("canvas"),x=(t=(o=document.getElementsByTagName("script")).length,o=o[t-1],{l:t,z:e(o,"zIndex",-1),o:e(o,"opacity",.5),c:e(o,"color","0,0,0"),n:e(o,"count",99)}),a="c_n"+x.l,r=i.getContext("2d"),w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/45)},m=Math.random,y={x:null,y:null,max:2e4};i.id=a,i.style.cssText="position:fixed;top:0;left:0;z-index:"+x.z+";opacity:"+x.o,document.getElementsByClassName("main")[0].appendChild(i),n(),window.onresize=n,window.onmousemove=function(e){e=e||window.event,y.x=e.clientX,y.y=e.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],h=0;x.n>h;h++){var f=m()*l,g=m()*u,p=2*m()-1,v=2*m()-1;s.push({x:f,y:g,xa:p,ya:v,max:6e3})}d=s.concat([y]),setTimeout(function(){c()},100)})();</script>
<!--阴影-->
<style>.section { transition: box-shadow 0.2s, transform .5s,opacity .5s; transition-timing-function: cubic-bezier(.215,.61,.355,1); } .section:hover { box-shadow: 0 0.375rem 1.375rem #97b1bb99; }</style>
<!--新圆角(感谢codingcow的源代码)-->
<style>input.textbox, textarea.textbox, time relative tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center { border-radius: 10px; } .search>input { border-radius: 10px 0px 0px 0px; } .search>button { border-radius: 0px 10px 0px 0px; } .bp4-tag.bp4-minimal:not([class*=bp4-intent-]) { border-radius: 10px; } .problem__tag-link, .select-container.compact .select, .select.compact { border-radius: 10px; } pre[class*=language-], .autocomplete-wrapper { border-radius: 10px; } .section__table-header { border-radius: 10px 10px 0 0; } div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span { border-radius: 0 0 0 10px; } body { font-family: -apple-system, BlinkMacSystemFont, "San Francisco Display", "San Francisco", "Helvetica Neue", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif; } .section { transition: box-shadow 0.2s, transform .5s,opacity .5s; transition-timing-function: cubic-bezier(.215,.61,.355,1); border-radius:10px } .section:hover { box-shadow: 0 0.375rem 1.375rem #97b1bb99; } .menu__link { border-radius: 10px; } .menu { border-radius: 10px; } .user-profile-bg { border-radius: 10px 10px 0px 0px; } data-tooltip, .data-tooltip, span.time.relative.tooltip { border-radius: 10px; } .drop { border-radius: 10px; } input { border-radius: 10px; } .drop-content { border-radius: 10px; } img { border-radius: 10px; } .columns { border-radius: 10px; } select { border-radius: 10px; } .select { border-radius: 10px; } button { border-radius: 10px; } .autocomplete-wrapper { border-radius: 10px; } .button { border-radius: 10px; } .row { border-radius: 10px; } .dropdown { border-radius: 10px; } .widget--category-filter__subcategory-tag { border-radius: 10px; } pre { border-radius: 10px; } .vditor { border-radius: 10px; } .vditor-toolbar { border-radius: 10px 10px 0px 0px; } .vditor-reset { border-radius: 0px 0px 10px 10px; } .vditor-preview { border-radius: 0px 0px 10px 0px; } .profile__bg { border-radius: 10px 10px 0px 0px; } .user-profile-badge { border-radius: 7px; box-shadow: 0px 1px 3px #656565; } .dialog__content { border-radius: 10px; } .widget--category-filter__category-tag { border-radius: 5px; } .problem__tag-link { border-radius: 10px; } .bp4-fill { border-radius: 10px; } .bp4-numeric-input { border-radius: 10px; } .bp4-control-group { border-radius: 10px; } tr { border-radius: 10px; } .bp4-tag { border-radius: 10px; } table { border-radius: 10px 10px 0px 0px; } blockquote { border-radius: 10px; } .autocomplete-tag { border-radius: 10px; } .calendar__banner { border-radius: 5px; } .section__tab-header-item { border-radius: 10px; } .messagepad__message__body { border-radius: 0px 10px 10px 10px; } .messagepad__textarea-container { border-radius: 0px; } .dialog--signin__bg {border-radius:10px} .dialog--signin__main {border-radius: 10px} .omnibar-main {border-radius: 10px} .compact{border-radius: 5px} .code-toolbar>.toolbar {border-radius: 0px 10px 0px 3px} .selection {border-radius: 10px}</style>
<!--隐藏一言-->
<script>let x=document.getElementsByName("hitokoto");if(x && x.length>0) x[0].parentElement.hidden=true;</script>
<!--名字颜色(普通情况)-->
<script type="text/javascript">let su = document.getElementsByClassName("user-profile-name"); for (i = 0; i < su.length; i++) { if (su[i].href == "http://43.139.175.183/user/2" || su[i].href == "http://43.139.175.183/user/6") { su[i].style = "color:#e18a3b;font-weight:bold;"; } else if (su[i].href == "http://43.139.175.183/user/3" || su[i].href == "http://43.139.175.183/user/23" || su[i].href == "http://43.139.175.183/user/114534" || su[i].href=="http://43.139.175.183/user/114550") { su[i].style = "color:#6ca8af;font-weight:bold;"; } }</script>
<!--个人主页名字颜色-->
<script>let name_href = document.getElementsByTagName("h1"); for (i = 0; i < name_href.length; i++) { let now_inner = name_href[i].innerHTML; if (now_inner.includes("WTX") || now_inner.includes("liangbob")) { name_href[i].style = "color:#e18a3b;font-weight:bold;"; } else if (now_inner.includes("De_Bruyne") || now_inner.includes("smy") || now_inner.includes("kkk_fans") || now_inner.includes("Demon")) { name_href[i].style = "color:#6ca8af;font-weight:bold;"; } }</script>
<!--国家反诈骗中心-->
<script>let link = document.getElementsByTagName("a"); for (i = 0; i < link.length; i++) { if (link[i].href == "https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4" || link[i].href.includes("1GJ411x7h7") || link[i].href == "https://www.ixigua.com/7149922686146347553" || link[i].href == "https://www.acfun.cn/v/ac23039112" || link[i].href == "https://music.163.com/#/song?id=1822638886&market=baiduqk") { link[i].innerHTML = "这是一个诈骗链接,请不要点击,或者关闭声音后点击!"; link[i].style = "color:#e5a84b;background-color:#284852;"; } else if (link[i].href.includes("bilibili") || link[i].href.includes("b23.tv")) { link[i].innerHTML = "这是一个来自B站的视屏,请在可信情况下点击!"; link[i].style = "color:#ffea00;background-color:#284852;"; } else if (link[i].href.includes("haokan.baidu.com/")) { link[i].innerHTML = "这是一个来自好看视屏的视屏,请在可信情况下点击!(大部分为诈骗)"; link[i].style = "color:#ffea00;background-color:#284852;"; } }</script>
<!--防腐朽-->
<script>window.urls = document.getElementsByTagName("a"); window.games = [ "4399.com", "7k7k.com", "box3", "codemao", "florr.io", "edge://surf" ]; for (i = 0; i < window.urls.length; i++){ for (j = 0; j < window.games.length; j++){ if (window.urls[i].href.includes(window.games[j])){ window.urls[i].innerHTML = "该链接涉嫌颓废,仅在没有老师的情况下可以使用"; window.urls[i].style = "color:#FF0000; background-color:#FFFF99;" } } }</script>
<!--关闭训练和作业-->
<script>let tr = document.getElementsByClassName("nav__item"); for (let i = 0; i<=tr.length ; i++){ if (tr[i].href=="http://43.139.175.183/training"){ tr[i].parentElement.hidden=true; } else if (tr[i].href=="http://43.139.175.183/homework"){ tr[i].parentElement.hidden=true; } }</script>
<!--实验性功能区-->
<!--关闭题解投票-->
<script>let tj = document.getElementsByClassName("vote-op clearfix");for (let i = 0;i<=tj.length;i++){ tj[i].hidden=true; }tj = document.getElementsByClassName("vote-number rotator"); for (i = 0;i<=tj.length;i++){ tj[i].hidden=true; }</script>
1 条评论
-
WTX 赞助!万岁! LV 6 SU @ 2023-7-23 11:45:24
格式化版本(太长了!):
<!--头文件--> <!--引用库--> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.6.2.js"> </script> <!--普通功能--> <!--背景线条--> <script> (() => { function e(e, n, t) { return e.getAttribute(n) || t } function n() { l = i.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, u = i.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight } function c() { var t, o, i, a, m; r.clearRect(0, 0, l, u), s.forEach(function(e, n) { for (e.x += e.xa, e.y += e.ya, e.xa *= e.x > l || e.x < 0 ? -1 : 1, e.ya *= e.y > u || e.y < 0 ? -1 : 1, r.fillRect(e.x - .5, e.y - .5, 1, 1), o = n + 1; o < d.length; o++) null !== (t = d[o]).x && null !== t.y && (i = e.x - t.x, a = e.y - t.y, (m = i * i + a * a) < t.max && (t === y && m >= t.max / 2 && (e.x -= .03 * i, e.y -= .03 * a), m = (t.max - m) / t.max, r.beginPath(), r.lineWidth = m / 2, r.strokeStyle = "rgba(" + x.c + "," + (.2 + m) + ")", r.moveTo(e.x, e.y), r.lineTo(t.x, t.y), r.stroke())) }), w(c) } var l, u, d, t, o, i = document.createElement("canvas"), x = (t = (o = document.getElementsByTagName("script")).length, o = o[t - 1], { l: t, z: e(o, "zIndex", -1), o: e(o, "opacity", .5), c: e(o, "color", "0,0,0"), n: e(o, "count", 99) }), a = "c_n" + x.l, r = i.getContext("2d"), w = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) { window.setTimeout(e, 1e3 / 45) }, m = Math.random, y = { x: null, y: null, max: 2e4 }; i.id = a, i.style.cssText = "position:fixed;top:0;left:0;z-index:" + x.z + ";opacity:" + x.o, document.getElementsByClassName("main")[0].appendChild(i), n(), window.onresize = n, window.onmousemove = function(e) { e = e || window.event, y.x = e.clientX, y.y = e.clientY }, window.onmouseout = function() { y.x = null, y.y = null }; for (var s = [], h = 0; x.n > h; h++) { var f = m() * l, g = m() * u, p = 2 * m() - 1, v = 2 * m() - 1; s.push({ x: f, y: g, xa: p, ya: v, max: 6e3 }) } d = s.concat([y]), setTimeout(function() { c() }, 100) })(); </script> <!--阴影--> <style> .section { transition: box-shadow 0.2s, transform .5s, opacity .5s; transition-timing-function: cubic-bezier(.215, .61, .355, 1); } .section:hover { box-shadow: 0 0.375rem 1.375rem #97b1bb99; } </style> <!--新圆角(感谢codingcow的源代码)--> <style> input.textbox, textarea.textbox, time relative tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center { border-radius: 10px; } .search>input { border-radius: 10px 0px 0px 0px; } .search>button { border-radius: 0px 10px 0px 0px; } .bp4-tag.bp4-minimal:not([class*=bp4-intent-]) { border-radius: 10px; } .problem__tag-link, .select-container.compact .select, .select.compact { border-radius: 10px; } pre[class*=language-], .autocomplete-wrapper { border-radius: 10px; } .section__table-header { border-radius: 10px 10px 0 0; } div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span { border-radius: 0 0 0 10px; } body { font-family: -apple-system, BlinkMacSystemFont, "San Francisco Display", "San Francisco", "Helvetica Neue", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif; } .section { transition: box-shadow 0.2s, transform .5s, opacity .5s; transition-timing-function: cubic-bezier(.215, .61, .355, 1); border-radius: 10px } .section:hover { box-shadow: 0 0.375rem 1.375rem #97b1bb99; } .menu__link { border-radius: 10px; } .menu { border-radius: 10px; } .user-profile-bg { border-radius: 10px 10px 0px 0px; } data-tooltip, .data-tooltip, span.time.relative.tooltip { border-radius: 10px; } .drop { border-radius: 10px; } input { border-radius: 10px; } .drop-content { border-radius: 10px; } img { border-radius: 10px; } .columns { border-radius: 10px; } select { border-radius: 10px; } .select { border-radius: 10px; } button { border-radius: 10px; } .autocomplete-wrapper { border-radius: 10px; } .button { border-radius: 10px; } .row { border-radius: 10px; } .dropdown { border-radius: 10px; } .widget--category-filter__subcategory-tag { border-radius: 10px; } pre { border-radius: 10px; } .vditor { border-radius: 10px; } .vditor-toolbar { border-radius: 10px 10px 0px 0px; } .vditor-reset { border-radius: 0px 0px 10px 10px; } .vditor-preview { border-radius: 0px 0px 10px 0px; } .profile__bg { border-radius: 10px 10px 0px 0px; } .user-profile-badge { border-radius: 7px; box-shadow: 0px 1px 3px #656565; } .dialog__content { border-radius: 10px; } .widget--category-filter__category-tag { border-radius: 5px; } .problem__tag-link { border-radius: 10px; } .bp4-fill { border-radius: 10px; } .bp4-numeric-input { border-radius: 10px; } .bp4-control-group { border-radius: 10px; } tr { border-radius: 10px; } .bp4-tag { border-radius: 10px; } table { border-radius: 10px 10px 0px 0px; } blockquote { border-radius: 10px; } .autocomplete-tag { border-radius: 10px; } .calendar__banner { border-radius: 5px; } .section__tab-header-item { border-radius: 10px; } .messagepad__message__body { border-radius: 0px 10px 10px 10px; } .messagepad__textarea-container { border-radius: 0px; } .dialog--signin__bg { border-radius: 10px } .dialog--signin__main { border-radius: 10px } .omnibar-main { border-radius: 10px } .compact { border-radius: 5px } .code-toolbar>.toolbar { border-radius: 0px 10px 0px 3px } .selection { border-radius: 10px } </style> <!--隐藏一言--> <script> let x = document.getElementsByName("hitokoto"); if (x && x.length > 0) x[0].parentElement.hidden = true; </script> <!--名字颜色(普通情况)--> <script type="text/javascript"> let su = document.getElementsByClassName("user-profile-name"); for (i = 0; i < su.length; i++) { if (su[i].href == "http://43.139.175.183/user/2" || su[i].href == "http://43.139.175.183/user/6") { su[i].style = "color:#e18a3b;font-weight:bold;"; } else if (su[i].href == "http://43.139.175.183/user/3" || su[i].href == "http://43.139.175.183/user/23" || su[i].href == "http://43.139.175.183/user/114534" || su[i].href == "http://43.139.175.183/user/114550") { su[i].style = "color:#6ca8af;font-weight:bold;"; } } </script> <!--个人主页名字颜色--> <script> let name_href = document.getElementsByTagName("h1"); for (i = 0; i < name_href.length; i++) { let now_inner = name_href[i].innerHTML; if (now_inner.includes("WTX") || now_inner.includes("liangbob")) { name_href[i].style = "color:#e18a3b;font-weight:bold;"; } else if (now_inner.includes("De_Bruyne") || now_inner.includes("smy") || now_inner.includes("kkk_fans") || now_inner.includes("Demon")) { name_href[i].style = "color:#6ca8af;font-weight:bold;"; } } </script> <!--国家反诈骗中心--> <script> let link = document.getElementsByTagName("a"); for (i = 0; i < link.length; i++) { if (link[i].href == "https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4" || link[i].href.includes("1GJ411x7h7") || link[i].href == "https://www.ixigua.com/7149922686146347553" || link[i].href == "https://www.acfun.cn/v/ac23039112" || link[i].href == "https://music.163.com/#/song?id=1822638886&market=baiduqk") { link[i].innerHTML = "这是一个诈骗链接,请不要点击,或者关闭声音后点击!"; link[i].style = "color:#e5a84b;background-color:#284852;"; } else if (link[i].href.includes("bilibili") || link[i].href.includes("b23.tv")) { link[i].innerHTML = "这是一个来自B站的视屏,请在可信情况下点击!"; link[i].style = "color:#ffea00;background-color:#284852;"; } else if (link[i].href.includes("haokan.baidu.com/")) { link[i].innerHTML = "这是一个来自好看视屏的视屏,请在可信情况下点击!(大部分为诈骗)"; link[i].style = "color:#ffea00;background-color:#284852;"; } } </script> <!--防腐朽--> <script> window.urls = document.getElementsByTagName("a"); window.games = ["4399.com", "7k7k.com", "box3", "codemao", "florr.io", "edge://surf"]; for (i = 0; i < window.urls.length; i++) { for (j = 0; j < window.games.length; j++) { if (window.urls[i].href.includes(window.games[j])) { window.urls[i].innerHTML = "该链接涉嫌颓废,仅在没有老师的情况下可以使用"; window.urls[i].style = "color:#FF0000; background-color:#FFFF99;" } } } </script> <!--关闭训练和作业--> <script> let tr = document.getElementsByClassName("nav__item"); for (let i = 0; i <= tr.length; i++) { if (tr[i].href == "http://43.139.175.183/training") { tr[i].parentElement.hidden = true; } else if (tr[i].href == "http://43.139.175.183/homework") { tr[i].parentElement.hidden = true; } } </script> <!--实验性功能区--> <!--关闭题解投票--> <script> let tj = document.getElementsByClassName("vote-op clearfix"); for (let i = 0; i <= tj.length; i++) { tj[i].hidden = true; } tj = document.getElementsByClassName("vote-number rotator"); for (i = 0; i <= tj.length; i++) { tj[i].hidden = true; } </script>
- 1