Skip to content

Instantly share code, notes, and snippets.

@misaka42
misaka42 / global.css
Created March 25, 2020 14:09
global.css
*, :after, :before {
-webkit-tap-highlight-color:transparent
}
blockquote, body, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, input, legend, li, ol, p, td, textarea, th, ul {
margin: 0;
padding:0
}
table {
@misaka42
misaka42 / global.css
Created March 25, 2020 14:09
global.css
*, :after, :before {
-webkit-tap-highlight-color:transparent
}
blockquote, body, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, input, legend, li, ol, p, td, textarea, th, ul {
margin: 0;
padding:0
}
table {
@misaka42
misaka42 / simple-extend.js
Created September 10, 2018 11:21
simple-extend for tiny library ( extend default config / option )
function extend() {
const target = arguments[0] || {};
for (let i = 1; i < arguments.length; i++) {
const source = arguments[i];
for (const key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
@misaka42
misaka42 / index.js
Last active March 31, 2017 08:58
browser nextTick
// try it in your browser
(function() {
requestAnimationFrame(() => console.log('requestAnimationFrame'))
setTimeout(() => console.log('setTimeout 10'), 10);
setTimeout(() => console.log('setTimeout 1'), 1);
setTimeout(() => console.log('setTimeout 0'), 0);
Promise.resolve().then(() => console.log('then'));
console.log('content end');
return 'fn end';
// ==UserScript==
// @name Get Bing Background
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Get Bing Background !
// @author ppq1991@gmail.com
// @match http://*.bing.com/*
// @include http://*.bing.com/*
// @grant none
// ==/UserScript==