2008-12-01から1ヶ月間の記事一覧

embeddeds in GR

Google Reader で記事中の埋め込みコンテンツ(object/embed)を表示するには提供サイトがホワイトリスト入りしてる必要があるが,enclosure で別に指定されてる場合はこの制限が無いことが tsumami.appjet.net*1を作る課程で判明。 ただ flashvars/width/heig…

自演アフィ成立

無事報酬が出た。記念に買った本を貼り付け。 + ↑生成用に作ったbml(を手直ししたもの)。 javascript:'boopleISBNAffiLink',{id:'uuwBll80BBU',_:function(h,r,a,d,l,m){for(l='<a\40href="http://click.linksynergy.com/fs-bin/statform?id='+this.id+'&offerid=33310&bnid=2&subid=0&ifc=4&ifr=$"></a\40href="http://click.linksynergy.com/fs-bin/statform?id='+this.id+'&offerid=33310&bnid=2&subid=0&ifc=4&ifr=$">

未読数を詳しく

やってみた。 javascript:'GRDetailedTotalUnread',function(x,s,e){for(;e=x.iterateNext();)s+=+/\d+/(e.innerHTML);alert(s)}(document.evaluate('id("sub-tree")//li[contains(concat(" ",@class," ")," sub ")]//span[contains(concat(" ",@class," "),…

アフィリエイトのテスト

「自分購入分も報酬対象」とあるけどホントだろうか。

GRK

やりたいことが増えたのでコレを一から書き直した。 http://gist.github.com/36459.txt?.user.js キー指定を改善。 機能に名前。 はてブと連携。

const

.js

+function(){ print("[Doesn't compile]"); // → (error before this is printed) const x = 'hoge'; var x = 'fuga'; print(x); }(); +function(){ print("[The substitution is simply ignored]"); const x = 'hoge'; x = 'fuga'; print(x); // → hoge }()…

はてブRSSの一括登録

リニューアルでいい感じになったので少し積極的に活用してみることにした。単語と閾値の組に適当なフィード名を付けて Google Reader 用に OPML を吐く。 dic = [ Ruby: 3, Groovy: 2, xyzzy: 1, 筒井康隆: 1, 中島みゆき: 1, // ... ]; println "" new groo…

domainColorTab

Griever を Ubiquity で。 http://gist.github.com/35473 gist が対応してないのでここから導入。← 解決。たくさん開くと華やかで楽しい。

gmail

http://gist.github.com/35015 アクセスキー重要。 + email の機能を統合。

キーワードブログにねじこむ

タグがキーワードにならないことに最近気が付いた。*1どうも実際にリンクが作成されないとダメらしい。 せっかくの機能を棒に振るのは癪だが強引に単語を散りばめるのも嫌。なので一旦載ってしまえば取り下げは無いっぽいのを利用して 適当にキーワードを並…

restart

http://gist.github.com/35040 restartApp を移植しただけ。 オマケ keyconfig 用スニペット。 +function(){ const os = Components.classes['@mozilla.org/observer-service;1'] .getService(Components.interfaces.nsIObserverService); const cancelQuit …

absPath

absPath = (function(abs, spltr, rplcr){ return function absPath(path, base){ if(abs.test(path)) return path; var [root, rest] = spltr.exec(base); if(path[0] !== '/') path = '/'+ rest + path; while(path !== (path = path.replace(rplcr, '')))…

GR compaction

Google Reader Moderately Compact | Userstyles.org 記事部分の高さに100px程プラス。 + http://userstyles.org/styles/8983 から auto-resizing を拝借。 + userstyles.org に登録。Google Reader Absolutely Compact に対抗してみる。

最後まで継ぎ足す

// ==UserScript== // @name ap-to-end // @namespace http://d.hatena.ne.jp/murky-satyr // @include http* // ==/UserScript== var aph = document.getElementById('autopagerize_help'); aph && function(stop, yet){ function sc2e(){ stop || scrollTo…

GR << keybinds

// ==UserScript== // @name google-reader-keybinds // @namespace http://d.hatena.ne.jp/murky-satyr // @include http://www.google.com/reader/view/* // @include http://www.google.co.jp/reader/view/* // ==/UserScript== window.addEventListener(…

「常に手前」をトグる

#include <windows.h> #include <tchar.h> int WinMain(HINSTANCE curr, HINSTANCE prev, LPSTR args, int stat) { if(__argc < 3){ char *buff = new char[strlen(*__argv) + 32]; wsprintf(buff, "usage: %s {+|-} {title} [class]", *__argv); MessageBoxA(NULL, buff, "topmo</tchar.h></windows.h>…

tinyurl

http://gist.github.com/31335 備え付けのがダメすぎるので置き換え。 デフォでカレントページのURLを使う アライアスに対応 実行でコピー アライアスはコピペで入力するとかしないと誤爆が怖いかも知れない。*1 *1:付け直し効かないっぽいので

AutoLongURLize

http://gist.github.com/31130 LRUyniTはボツ。

lib-at0m

http://lib-at0m.appjet.net/ というのを作って http://takenatom.appjet.net/ で使った。

LRUyniT

// ==UserScript== // @name LRUyniT // @namespace http://d.hatena.ne.jp/murky-satyr // @include http://twitter.com/* // @include http://www.google.co.jp/reader/view/* // ==/UserScript== var tiny = /^http:\/\/(?:preview\.)?tinyurl\.com\/\w+/…