LDR でピンをまとめてポストできるようにしました ピンにポストできないものがある場合はそのまま残るようにしました など
LDR でピンをまとめてポストできるようにしました ピンにポストできないものがある場合はそのまま残るようにしました など
Greasemonkeyで、すべてのページのbodyタグのすぐ後ろにタグを挿入するスクリプトを書いたのですが、FRAMEやIFRAMEが使われているページではフレーム内のbodyにも適用されてしまいます。一番外のフレームにだけ適用させる方法はあるのでしょうか? 具体的なコードはこちらです。 http://blog61.fc2.com/w/worris/file/hbmview.user.js Javascriptのwindow.top.documentでは駄目なようですね。
GM_setValue / GM_getValue + unsafeWindow.eval を使って 永続的に外部スクリプトを利用する方法を考えてみた。 わざわざ DOM で script要素 を毎回注入するよりも 速いんじゃないかと思う。 Greasemonkeyには、GM_setValue / GM_getValue というのがあって、 GM_setValue("キー", "値") 上記のように入力してあげる事によって、たとえ、 Firefoxを終了させたとしても消えないデータを作成する事が出来る。 そして、それを利用して、 初回のみ XmlHttpRequest で外部スクリプトデータを取得して、 GM_setValue でスクリプトデータを永続化しておき、 二回目以降は、それを GM_getValue して eval するようにした。 以下は、永続的に prototype.js を
Greasemonkey - Mozilla Firefox まとめサイト で、Dive Into Greasemonkey の日本語訳 (PDF)が公開されてます。 これは凄く良い仕事。いやマジで。超感謝。 で、それの28頁以下で、Firefox に組み込まれた XPath のサポートの使い方が説明されてまして、これで /getElements?By.+/ 地獄からおさらば出来るわけですが、 XPath を解釈するのに使う document.evaluate は引数がたくさんあって、生で使うのは面倒いです。 でも使う引数はクエリ部分以外は普通は決まってるので、30頁以下で、XPathを楽に使うために以下の関数を定義すると良いよね、とあります。
猿でもわかる Greasemonkey Yoshiori SHOJI(yoshiori@gmail.com) web(http://yoshiori.org/) 自己紹介 はじめまして? ヨシオリです JavaScript 好きなのですが 向こうは愛してくれません>< JavaScript 片思い そんなヨシオリです。 っていうか LT なのに 30分未満って長くね? とりあえず 前回以上にギリギリです!! この文章、今日の6:30とかに書いてます。 ほらね?今書いてるでしょ? このスタイルを ウルトラスーパーアジャイル資料作成と名付け(ry すいません 忙しかったんです!!! ☆付けるのがw とりあえず悔しいからチャットでUK虐めておいた こうなってないことを祈る アジェンダとか無く グダグダに行けるところまで 行きます!! 何?:Firefox の拡張 読み方:グリモン 出来る
てんぷれ例 // ==UserScript== // @name Test // @description Test // @namespace http://lowreal.net/ // @include * // ==/UserScript== (function () { /* GM_xmlhttpRequest({ method : "GET", url : url, headers : { "User-Agent":"monkeyagent", "Accept":"text/monkey,text/xml", }, onload : function (req) { var doc = new XML(req.responseText.replace(/^<\?xml.+?\?>/, '')); }, onerror : function (req) { alert(req.r
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く