ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文
Firecookies クッキーデータ表示入れ替えテスト
日時: 2010/09/21 16:59
名前: lightbox



Firecookie の改造 : ecl.js を使って日本語表示を正しくするように変更




  以下、改造前に行った cookie の入れ替えテストコード
拡張子:
        var values = null;
        var value = null;
        while (iter.hasMoreElements())
        {
            var cookie = iter.getNext();
            if (!cookie)
                break;

            cookie = cookie.QueryInterface(nsICookie2);
            if (!CookieObserver.isCookieFromContext(this.context, cookie))
                continue;


        value = cookie.value;
        if (value)
            value = value.replace(/\+/g, " ");
        values = {
            name        : cookie.name,
            value       : value+"日本語",
            isDomain    : cookie.isDomain,
            host        : cookie.host,
            path        : cookie.path,
            isSecure    : cookie.isSecure,
            expires     : cookie.expires,
            isHttpOnly  : cookie.isHttpOnly,
            rawValue    : cookie.value
        };

            var cookieWrapper = new Cookie(values);
            cookies.push(cookieWrapper);
        }
メンテナンス

console.log : document 内要素一覧 ( No.1 )
日時: 2010/09/21 17:00
名前: lightbox


日時: 2010/09/21 17:00
名前: lightbox
拡張子:
var x = document.getElementsByTagName("*");
console.log(x.length);
for( i = 0; i < x.length; i++ ) {
	console.log(x[i])
}
for( a in x ) {
	console.log(x[a].tagName);
}
このアーティクルの参照用URLをクリップボードにコピー メンテナンス