Firecookie の改造 : ecl.js を使って日本語表示を正しくするように変更 以下、改造前に行った cookie の入れ替えテストコード 拡張子:txtvbswsfjsphpjavahtmlutf8sjis 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); }
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); }
拡張子:txtvbswsfjsphpjavahtmlutf8sjis 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); }
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); }