This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
color: #ccc; | |
} | |
a:hover, a:focus { | |
color: #1abc9c; | |
} | |
#content { | |
background: #303640; | |
} | |
.block, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function console_log() { | |
foreach(func_get_args() as $arg) { | |
$args []= json_encode($arg); | |
} | |
echo '<script>console.log('.join(', ', $args).')</script>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 0chan Utilities alpha | |
// @namespace http://0chan.hk/userjs | |
// @version 1.0.7 | |
// @description Y ur mom succ? | |
// @author Snivy [0xf330f91f] | |
// @match https://0chan.hk/* | |
// @grant none | |
// @icon https://raw.githubusercontent.com/Juribiyan/0chan-utilities/master/icon.png | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spinner = { | |
init: function() { | |
this.loadChans() | |
.then(() => { | |
this.putChans() | |
$('.spinner-container').on('dblclick', this.putChans.bind(this)) | |
}, err => console.error(err)) | |
$('#spinner').propeller({ | |
inertia: 0.9993, | |
speed: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,700italic,400italic&subset=latin,cyrillic); | |
.floatiframe{ | |
float:left; | |
padding:10px; | |
} | |
div.boardlist { | |
color: #8899AA; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var injector = { | |
inject: function(alias, css) { | |
var head = document.head || document.getElementsByTagName('head')[0] | |
, style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.id = 'injector:' + alias; | |
if (style.styleSheet) { | |
style.styleSheet.cssText = css; | |
} else { | |
style.appendChild(document.createTextNode(css)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function smiley_callback($matches) { | |
$src = FALSE; | |
foreach(array('.gif','.png') as $extension) { | |
if(file_exists(KU_ROOTDIR.KU_SMILEDIR.$matches[1].$extension)) { | |
$src = KU_WEBPATH.'/'.KU_SMILEDIR.$matches[1].$extension; | |
break; | |
} | |
} | |
$return = ($src) ? '<img style="vertical-align: middle;" src="'.$src.'" />': ':'.$matches[1].':'; | |
return $return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var target = document.querySelector('#target'), | |
targetContext = target.getContext('2d'), | |
buffer = document.querySelector('#buffer'), | |
bufferContext = buffer.getContext('2d'), | |
height = target.height, width = target.width, | |
opacity = 1, | |
radius = 10; | |
function onStroke() { | |
var data = '<svg xmlns="http://www.w3.org/2000/svg" width="800" height="450">' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.radians = function(degrees) { | |
return degrees * Math.PI / 180; | |
}; | |
Math.degrees = function(radians) { | |
return radians * 180 / Math.PI; | |
}; | |
Math.ctg = function(val) { | |
return 1/Math.tan(val); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Roboto'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Roboto Regular'),local('Roboto-Regular'),url(//fonts.gstatic.com/s/roboto/v15/ek4gzZ-GeXAPcSbHtCeQI_esZW2xOQ-xsNqO47m55DA.woff2)format('woff2'); | |
unicode-range: U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F; | |
} | |
@font-face { | |
font-family:'Roboto';font-style:normal;font-weight:400;src:local('Roboto Regular'),local('Roboto-Regular'),url(//fonts.gstatic.com/s/roboto/v15/mErvLBYg_cXG3rLvUsKT_fesZW2xOQ-xsNqO47m55DA.woff2)format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; |
NewerOlder