- GitHub導入
- GitHubの色々
- レポジトリ
- Gitの色々
| <!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> |
- ユーザースクリプトの動作確認
- Greasemonkey (on Firefox)
- Tampermonkey (on Chrome)
- ソースの確認
- 作成した.dbファイルの操作
- DOMParser
- 文字の抜き出し
- 配列
- ニコニコ動画API
#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();}());