Skip to content

Instantly share code, notes, and snippets.

View coo11's full-sized avatar

coo11

  • Future Gadget Laboratory
  • China
View GitHub Profile
@ufocoder
ufocoder / JavaScript.Magic.js
Last active June 4, 2024 16:13
JavaScript Magic
/*******************************************
*
* Javascript Magic Page
*
* Author: Sergey Ivanov <xufocoder@gmail.com>
*
* (\_/)
* (=':'=)
* ▀▀▀███████▀▀▀
* ███████
@joni
joni / toUTF8Array.js
Last active May 14, 2024 09:23
toUTF8Array: Javascript function for encoding a string in UTF8.
function toUTF8Array(str) {
var utf8 = [];
for (var i=0; i < str.length; i++) {
var charcode = str.charCodeAt(i);
if (charcode < 0x80) utf8.push(charcode);
else if (charcode < 0x800) {
utf8.push(0xc0 | (charcode >> 6),
0x80 | (charcode & 0x3f));
}
else if (charcode < 0xd800 || charcode >= 0xe000) {
@kurumigi
kurumigi / autopagerize_filter_for_.user.js
Created November 2, 2009 15:27
[GM script]AutoPagerize Filter for Danbooru
// ==UserScript==
// @name AutoPagerize Filter for Danbooru
// @namespace http://d.hatena.ne.jp/kurumigi/
// @description Apply "AutoPagerize" to Danbooru.
// @include http://danbooru.donmai.us/post*
// @include http://safebooru.donmai.us/post*
// @include http://danbooru.donmai.us/note*
// @include http://safebooru.donmai.us/note*
// @include http://danbooru.donmai.us/pool*
// @include http://safebooru.donmai.us/pool*