タグ

2011年3月3日のブックマーク (4件)

  • jQuery & Greasemonkey: How to play nicely with jQuery and Greasemonkey

    Overview This is a simple snippet that helps us load the jQuery power into our userscripts with Greasemonkey 0.7 or lower, newer versions may use @require. Updates 2010-04-24: The userscript checks if jQuery is already loaded in the page and uses it, otherwise loads it from Google's CDN. It's also using jQuery.noConflict(true). Thanks to everyone who sent me emails about this over this and last ye

    stealthinu
    stealthinu 2011/03/03
    chromeのgreasemonkeyでjQueryを読み込むための方法。requireでは上手く読めないので… あとセキュリティ上の理由でchromeはページのjavascriptは呼べないらしい。だからjQuery自分で呼ぶ必要あり。古い?
  • User Script Tip: Using jQuery - Erik Vold's Blog

    A very common question that I see asked on stackoverflow.com, the greasemonkey-users mailing list, and in #greasemonkey on freenode, is how to use third party libraries with a user script. The common response is to use @require, but these days people want their user scripts to work on Google Chrome too, and unfortunately Google Chrome user scripts do not support a lot of the Greasemonkey metadata

    stealthinu
    stealthinu 2011/03/03
    chromeのgreasemonkeyでjQueryを読み込むための方法。requireでは上手く読めないので… あとセキュリティ上の理由でchromeはページのjavascriptは呼べないらしい。だからjQuery自分で呼ぶ必要あり。
  • 間違いだらけの「かんたんログイン」実装法

    今回は、そのかんたんログインの問題点について説明します。 「契約者固有ID」を用いるかんたんログイン かんたんログインとは、携帯電話の「契約者固有ID」を用いたログイン手法です。 第1回で説明したように、携帯電話のブラウザのリクエストヘッダには契約者固有IDと呼ばれるIDを付けることができます。契約者固有IDは、携帯電話事業者によって詳細は異なりますが、すべての携帯電話事業者が対応しています。 図1は、NTTドコモの携帯電話がサポートしている契約者固有IDである「iモードID」がサーバに送信される様子です。この情報は、ユーザーがそれと意識することなく送信されます。携帯電話のかんたんログインとは、契約者固有IDのみを用いて認証を行い、ログイン機能を実現することです。 かんたんログインは、ベーシック認証のようにIDとパスワードを管理する必要もなく、Cookieのように対応する端末を考慮する手間

    間違いだらけの「かんたんログイン」実装法
    stealthinu
    stealthinu 2011/03/03
    携帯のjavascript使った具体的な攻撃手法知らんかった。あとDNSりバインディングってこういう手法だったっけ?忘れてた。
  • mozdev.org - greasemonkey: authoring

    Writing User Scripts Mark Pilgrim has given the Greasemonkey community Dive into Greasemonkey, the best reference imaginable. The stuff below might be slightly more up-to-date. You can write your very own shiny user script with just a few steps: 1. Create the file Open a new text file in your favorite editor and throw some javascript in there. Note that there are many good resources available if y

    stealthinu
    stealthinu 2011/03/03
    greasemonkeyを作るときのjavascriptの書き方やgreasemonkey API