{"id":320,"date":"2010-01-26T19:20:00","date_gmt":"2010-01-26T11:20:00","guid":{"rendered":"http:\/\/iamfisher.net\/fisher\/2010\/01\/26\/gears-factory\/"},"modified":"2010-01-26T19:20:00","modified_gmt":"2010-01-26T11:20:00","slug":"gears-factory","status":"publish","type":"post","link":"https:\/\/iamfisher.net\/fisher\/2010\/01\/26\/gears-factory\/","title":{"rendered":"Gears.Factory"},"content":{"rendered":"<p>URL: <a href=\"http:\/\/baodao.shopex.cn\/statics\/script\/tools.js\">http:\/\/baodao.shopex.cn\/statics\/script\/tools.js<\/a><\/p>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  (function(){if(window.google&amp;&amp;google.gears){return}var a=null;if(typeof GearsFactory!=&quot;undefined&quot;){a=new GearsFactory()}else{try{a=new ActiveXObject(&quot;Gears.Factory&quot;);if(a.getBuildInfo().indexOf(&quot;ie_mobile&quot;)!=-1){a.privateSetGlobalObject(this)}}catch(b){if((typeof navigator.mimeTypes!=&quot;undefined&quot;)&amp;&amp;navigator.mimeTypes[&quot;application\/x-googlegears&quot;]){a=document.createElement(&quot;object&quot;);a.style.display=&quot;none&quot;;a.width=0;a.height=0;a.type=&quot;application\/x-googlegears&quot;;document.documentElement.appendChild(a)}}}if(!a){return}if(!window.google){google={}}if(!google.gears){google.gears={factory:a}}})();(function(){BrowserStore=new Class({initialize:function(){this.storage=e()||{};return this},set:function(h,j){this.storage.setStorage=this.storage.setStorage||$empty;this.storage.setStorage(h,f(j));return this},get:function(h,j){this.storage.getStorage=this.storage.getStorage||$empty;this.storage.getStorage(h,j)},remove:function(h){if(!h||!this.storage){return false}this.storage.removeStorage=this.storage.removeStorage||$empty;this.storage.removeStorage(h);return this},clear:function(){if(!this.storage){return false}this.storage.clearStorage=this.storage.clearStorage||$empty;this.storage.clearStorage();return this}});function g(h){return h?Json.evaluate(&quot;(&quot;+h+&quot;)&quot;):null}function f(h){return h?Json.toString(h):null}function e(){return d.init()||a.init()||b.init()||c.init()||false}var d={name:&quot;Google Gears&quot;,init:function(){var h;try{h=google.gears.factory.create(&quot;beta.database&quot;);if(h){h.open(&quot;database-shopex_viewstatus&quot;);h.execute(&quot;create table if not exists status (skey text, sval text)&quot;);this.db=h;this.Master=&quot;gears&quot;}else{return false}}catch(j){return false}return this},setStorage:function(j,k){var h=this.db.execute(&quot;select * from status where skey=?&quot;,[j]);if(h.isValidRow()){var m=this.db.execute(&quot;update status set sval=? where skey=?&quot;,[k,j]);h.close()}else{var l=this.db.execute(&quot;insert into status values (?,?)&quot;,[j,k])}},getStorage:function(j,k){var h=this.db.execute(&quot;select * from status where skey=?&quot;,[j]);if(h.isValidRow()){k(h.field(1))}else{k()}h.close()},removeStorage:function(h){this.db.execute(&quot;delete from status where skey=?&quot;,[h])},clearStorage:function(){this.db.execute(&quot;drop table status&quot;)}};var b={name:&quot;globalStorage&quot;,init:function(){if(!window.globalStorage){return false}this._storage=globalStorage[location.hostname];return this},setStorage:function(h,j){this._storage.setItem(h,j);return true},getStorage:function(h,l){var j=this._storage.getItem(h);var k=j?j.value:null;l(k)},removeStorage:function(h){this._storage.removeItem(h);return true},clearStorage:function(){if(this._storage.clear){this._storage.clear()}else{for(i in this._storage){if(this._storage[i].value){this.remove(i)}}}return true}};var c={name:&quot;userdata&quot;,init:function(){this.Master=&quot;ie6+&quot;;if(!<a href=\"http:\/\/window.ie\">window.ie<\/a>){return false}this._storage=new Element(&quot;span&quot;).setStyles({display:&quot;none&quot;,behavior:&quot;url(&#39;#default#userData&#39;)&quot;}).inject(document.body);return this},setStorage:function(h,j){this._storage.setAttribute(h,j);this._storage.save(&quot;shopEX_VS&quot;);return true},getStorage:function(h,j){this._storage.load(&quot;shopEX_VS&quot;);j(this._storage.getAttribute(h))},removeStorage:function(h){this._storage.removeAttribute(h);this._storage.save(&quot;shopEX_VS&quot;);return true},clearStorage:function(){var h=new Date();h.setMinutes(h.getMinutes()-1);this._storage.expires=h.toUTCString();this._storage.save(&quot;shopEX_VS&quot;);this._storage.load(&quot;shopEX_VS&quot;);return true}};var a={name:&quot;openDatabase&quot;,init:function(){if(!window.openDatabase){return false}this._storage=window.openDatabase(&quot;viewState&quot;,&quot;1.0&quot;,&quot;ShopEX48 ViewState Storage&quot;,20000);this._createTable();return this},setStorage:function(h,j){this._storage.transaction(function(k){k.executeSql(&quot;SELECT v FROM SessionStorage WHERE k = ?&quot;,[h],function(m,l){if(l.rows.length&gt;0){m.executeSql(&quot;UPDATE SessionStorage SET v = ? WHERE k = ?&quot;,[j,h])}else{m.executeSql(&quot;INSERT INTO SessionStorage (k, v) VALUES (?, ?)&quot;,[h,j])}})});return true},getStorage:function(h,j){this._storage.transaction(function(k){v=k.executeSql(&quot;SELECT v FROM SessionStorage WHERE k = ?&quot;,[h],function(m,l){if(l.rows.length&gt;0){return j(l.rows.item(0).v)}j(null)})})},removeStorage:function(h){this._storage.transaction(function(j){j.executeSql(&quot;DELETE FROM SessionStorage WHERE k = ?&quot;,[h])});return true},clearStorage:function(){this._storage.transaction(function(h){h.executeSql(&quot;DROP TABLE SessionStorage&quot;,[])});return true},_createTable:function(){this._storage.transaction(function(h){h.executeSql(&quot;SELECT COUNT(*) FROM SessionStorage&quot;,[],$empty,function(j,k){j.executeSql(&quot;CREATE TABLE SessionStorage (k TEXT, v TEXT)&quot;,[],$empty)})})}}})();<\/p><\/blockquote>\n<div><span style=\"font-family:Simsun;font-size:medium\"> <\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>URL: http:\/\/baodao.shopex.cn\/statics\/script\/tools.js (f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":0,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}