Skip to content

Instantly share code, notes, and snippets.

@mosaicer
mosaicer / calendar.html
Last active August 29, 2015 14:03
カレンダー
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>カレンダー</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="construct.js"></script>
</head>
<body>
@mosaicer
mosaicer / m_o_t_add-ons.md
Last active December 30, 2015 13:58
Muting+α on Twitterの作成で参考にしたサイト & 作成にあたって使用したアドオン

#Check counts of unique submissions the specific user submitted javascript:(function(){var U=location.href+'submitted.json',A=[],D=document.createElement('div'),c=D.style,b=document.body,f=function(a){var x=new XMLHttpRequest(),u=!!a?U+'?after='+a:U;x.open('GET',u,true);x.onload=function(){var d=JSON.parse(this.responseText).data,n=d.after;d.children.forEach(function(o){var s=o.data.subreddit;if(A.indexOf(s)<0)A.push(s);});if(!!n){f(n);}else{b.removeChild(D);alert('○サブミを投稿したサブレ一覧(計'+A.length+'個)\n'+A);}};x.onerror=function(){b.removeChild(D);alert('エラーが発生しました');};x.send();};c.backgroundColor='#fefefe';c.position='fixed';c.top='50%';c.left='35%';c.width='15%';c.height='50px';c.lineHeight='50px';c.textAlign='center';c.border='1px solid gray';c.borderRadius='3px';c.boxShadow='2px 2px 1px rgba(55,55,55,0.3)';D.textContent='情報を取得しています…';b.appendChild(D);f();}());