タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

fresnoに関するtanakaBoxのブックマーク (3)

  • Fresno - SIMILE

    Introduction Fresno provides unix command line access to the Javascript interpreter of your running Firefox instance. It is a complement to MozRepl, so you will need to have that installed and running in your firefox. Why do I Care? Here's an example of what you can do. This visits a web page, plucks out the HTML for a portion of the page, and then uses grep to pick out the hrefs. % ./fresno -p ht

    tanakaBox
    tanakaBox 2007/09/10
    便利杉。簡単なシェルスクリプトで書かれてる。
  • シェルスクリプトからFireFoxを操作する"Fresno":TKMR.blog.show

    via Tumblr Fresno - SIMILE MozReplでFireFoxをtelnet待ち受け状態して、シェルスクリプトから同じくtelnetで繋いで操作しちゃうらしい。 面白いこと考えるなー・・ fresno -p "http://yahoo.com" -p でページを開いたり fresno -c -j "alert('Hello world')" -c -j で今見てるページに対して、JavaScriptを実行できる。 今見てるエロサイトの画像をダウンロードするのも fresno -c -j "document.body.innerHTML" | grep img \ | ruby -Ke -e 'puts gets.scan /src="([^"]*)"/' | xargs wget みたいにワンライナーでお手軽。フルパスじゃなかった場合、とか色々あるけど。 実用的かと言

    tanakaBox
    tanakaBox 2007/09/10
    面白すぎ。
  • シェルスクリプトからFireFoxを操作する"Fresno" - http://rubikitch.com/に移転しました

    MozReplがあればgnuclientみたいに外部からFirefoxを叩けないかと考えていたら、やっぱりあった。http://blog.tkmr.org/tatsuya/show/371-firefox-fresno より。 cd ~/src svn co http://simile.mit.edu/repository/fresno/trunk fresno ↑のコマンドで ~/src/fresno 内にソースが展開される。 今見ているURLは以下のコマンドを使えばわかる。コマンドで内部情報にアクセスできることで、来のUnix系OSの柔軟性が生きてくる。今Firefoxで見ているURLをw3mで見るなんてこともお手のもの。 fresno -j content.location.href 今見ているページを印刷するには、以下でok。d:id:rubikitch:20070907#pri

    シェルスクリプトからFireFoxを操作する"Fresno" - http://rubikitch.com/に移転しました
    tanakaBox
    tanakaBox 2007/09/10
    中身はシェルスクリプト。fresno > expect > telnet > MozRepl > firefoxと繋ぐ。便利そう。
  • 1