Skip to content

Instantly share code, notes, and snippets.

:octocat:
Rookie - Verified by GitHub

Sukka SukkaW

:octocat:
Rookie - Verified by GitHub
Block or report user

Report or block SukkaW

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sukka-self-use-hosts
# Archive Today
130.0.234.124 archive.vn
51.38.113.224 archive.vn
134.119.220.26 archive.vn
89.163.224.67 archive.vn
91.121.82.32 archive.vn
130.0.234.124 archive.is
51.38.113.224 archive.is
@SukkaW
SukkaW / get-cfdc-num.js
Last active Jun 24, 2019
How many Cloudflare Data Centers are there in Cloudflare Statuspage?
View get-cfdc-num.js
var $el = document.querySelectorAll('.component-inner-container .name');
var $num = 0;
for (var i of $el) {
if (i.innerHTML.indexOf(' - (') > -1) $num++;
}
console.log($num);
@SukkaW
SukkaW / fight-math-battle.js
Last active Jul 5, 2019
Be the best in the Math Battle
View fight-math-battle.js
function math() {
let x = parseInt(document.getElementById('task_x').innerHTML, 10);
let y = parseInt(document.getElementById('task_y').innerHTML, 10);
let op = document.getElementById('task_op').innerHTML;
let res = parseInt(document.getElementById('task_res').innerHTML, 10);
let choose = {
true: () => document.getElementById('button_correct').click(),
false: () => document.getElementById('button_wrong').click()
}
@SukkaW
SukkaW / bookmark-filter-cf-waf.js
Last active May 5, 2019
Filter for Cloudflare Firewall Events
View bookmark-filter-cf-waf.js
javascript:(function(){var cfAllowEl=document.querySelectorAll('td[data-label="Action Taken"]');for(let i of cfAllowEl){if(i.innerHTML==='allow'){i.parentNode.style.display='none'}}})();
@SukkaW
SukkaW / bookmark-remove-restrictions.min.js
Last active Aug 19, 2019
Remove website restrictions
View bookmark-remove-restrictions.min.js
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.wrappedJSObject||elmOne)onmouseup=null,onmousedown=null}body.style.webkitUserSelect="auto!important",body.style.MozUserSelect="normal!important",alert("已经解除右键和复制限制!")})();
View chaoxingvideo.js
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;
//视频是否静音
@SukkaW
SukkaW / cfdc.json
Last active Feb 7, 2019
JSON format data of Cloudflare Data Centers
View cfdc.json
{
"AMS": {
"name": "Amsterdam, Netherlands",
"cnName": "荷兰阿姆斯特丹"
},
"ATH": {
"name": "Athens, Greece",
"cnName": "希腊雅典"
},
"BCN": {
View dynamic-webp-for-suka.js
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)
}
@SukkaW
SukkaW / speedtests.ml.md
Last active Dec 17, 2018
Introduction of speedtests.ml Service
View speedtests.ml.md

speedtests.ml

Speedtests files download.

mirrors.speedtests.ml

Linux Mirror originated from LeaseWeb & Hosted by Cloudflare.

launchpad.speedtests.ml

View tpl-lint
#!/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
*
You can’t perform that action at this time.