Speedtests files download.
Linux Mirror originated from LeaseWeb & Hosted by Cloudflare.
javascript:(function(){var doc=document,body=document.body;with(body.onselectstart=body.oncopy=body.onpaste=body.onkeydown=body.oncontextmenu=body.onmousemove=body.ondragstart=document.onselectstart=document.oncopy=document.onpaste=document.onkeydown=document.oncontextmenu=null,document.onselectstart=document.onkeydown=document.oncontextmenu=document.onmousedown=function(){return!0},document.wrappedJSObject||document)onmouseup=null,onmousedown=null,oncontextmenu=null;for(var arAllElements=document.getElementsByTagName("*"),i=arAllElements.length-1;i>=0;i--){var elmOne=arAllElements[i];with(elmOne.style.userSelect="initial",elmOne.style.pointerEvents="initial",elmOne.wrappedJSObject||elmOne)onmouseup=null,onmousedown=null}body.style.webkitUserSelect="auto!important",body.style.MozUserSelect="normal!important",alert("已经解除右键和复制限制!")})(); |
if (!window.$) { | |
var script = document.createElement('script'); | |
script.src = "https://cdn.bootcss.com/jquery/1.12.1/jquery.min.js"; | |
document.body.appendChild(script); | |
} | |
//配置信息开始,使用按需修改 | |
//播放公网视频(非校园网设置),如需要播放校园网视频将true改成false | |
var use_external_network = true; | |
//视频是否静音 |
{ | |
"AMS": { | |
"name": "Amsterdam, Netherlands", | |
"cnName": "荷兰阿姆斯特丹" | |
}, | |
"ATH": { | |
"name": "Athens, Greece", | |
"cnName": "希腊雅典" | |
}, | |
"BCN": { |
var isSupportWebp = !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') == 0; | |
var WebpName = "!/format/webp"; | |
if (isSupportWebp) { | |
for (var i = 0; i < document.querySelectorAll("div[data-bg]").length; i += 1) { | |
var originSrc = document.querySelectorAll("div[data-bg]")[i].getAttribute('data-bg'), | |
newSrc = originSrc.replace(/((.png)|(.jpg)|(.jpeg))/g, '$1' + WebpName); | |
document.querySelectorAll("div[data-bg]")[i].setAttribute('data-bg', newSrc) | |
} |
#!/usr/bin/env php | |
<?php | |
// FIXME: Make this a proper app with unit-tests | |
require_once 'simple_html_dom.php'; | |
exit(main($argv)); | |
/** | |
* Scan a series of files for suspicious code | |
* | |
* example: find templates -name '*.tpl' | xargs php tools/scripts/tpl-lint | |
* |
/*! | |
* return-prev.js | |
* Author: SukkaW (https://skk.moe) | |
* License: MIT | |
* | |
* @param {Object} Element selector for link | |
*/ | |
(function(El) { | |
if (document.referrer && document.location.host && document.referrer.match(new RegExp("^https?://" + document.location.host))) { |
importScripts('https://cdn.jsdelivr.net/npm/[email protected]/workbox/workbox-sw.js'); | |
workbox.setConfig({ | |
modulePathPrefix: 'https://cdn.jsdelivr.net/npm/[email protected]/workbox/' | |
}); |
/* no-disq.us.js | |
* Author: Sukka (https://skk.moe) | |
* License: MIT | |
* Part of DisqusJS (https://suka.js.org/DisqusJS) | |
* | |
* @param {string} msg - 传入需要处理的 Disqus Comment rawMessage | |
* @return {string} - 解析完 disq.us 后的 Message | |
*/ | |
let removeDisqUs = (msg) => { | |
// aMatcher - 只处理 Disqus 短链接 |
/* npel.js | v0.1.2 | |
* Author: Sukka (https://skk.moe) | |
* License: MIT | |
* | |
* Usage: 用电脑浏览器打开 新理念外语网络教学中心(推荐现代浏览器如 Chrome 或 Firefox) | |
* 点击需要学习的 Unit,按下 F12,找到 console,复制粘贴下述代码,并回车执行 | |
* How it works: 用 setInterval 每 30s 点击一次 <body> 元素并计数,NPEL 监听的是全 | |
* 局元素事件,不需要定位到 iframe | |
*/ | |
window.i = 0; |