Skip to content
View bookmarklet.js
javascript:(function(){var l=document.createElement('link');l.setAttribute('rel','stylesheet');l.setAttribute('media','all');l.setAttribute('href','1.css');document.body.appendChild(l);var%20s%20=%20document.createElement('script');s.setAttribute('src','1.js');document.body.appendChild(s);})();
View border.styl
#a
border 0 // => border 0 none
&.class1
border-style solid // => border 0 solid
&.class2
border 3px // => border 3px none
#b
border none // => border medium none
&.class1
border-style solid // => border medium solid
View ipad-viewport.html
<meta name="viewport" content="width=1024, maximum-scale=1">
View github-issue-format-time.js
$('div[id^=issuecomment-]').each(function () {
var $header = $(this).find('.timeline-comment-header-text')
var time = $header.find('time').attr('datetime')
var date = new Date(time)
var year = date.getFullYear()
var month = format(date.getMonth() + 1)
var day = format(date.getDate())
var hour = format(date.getHours())
var min = format(date.getMinutes())
var sec = format(date.getSeconds())
View iphone-sim-ipad.html
<meta name="viewport" content="initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no">
View jshint-option.js
/*global _, $, $LAB */
/*jshint bitwise:true, eqeqeq:true, forin:true, immed:true, latedef:true, newcap:true, undef:true,
trailing:true, sub:true, browser:true, devel:true, maxlen:100 */
View labjs-seed.js
(function(d){
var src='/path/to/lab.js';
if(window.$LAB){$LAB.src=src;ini()}else{setTimeout(function(){
var e=d.createElement('script');e.onload=function(){e.onload=null;ini()};
e.src=src;var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(e,s)},0)}
function ini(){
//do some $LAB stuff here...
}}(document));
View auto-redir-mobile.js
var _ua = _ua || {};
_ua.str = navigator.userAgent.toLowerCase();
_ua.isAndroid = _ua.str.indexOf('android') > -1 && _ua.str.indexOf('mobile') > -1;
_ua.isIPhone = /\(i(?:phone|pod);/.test(_ua.str);
if (_ua.isAndroid || _ua.isIPhone) {
location.href = 'http://m.example.com/';
}
Something went wrong with that request. Please try again.