Changeset 33046 for lang/javascript
- Timestamp:
- 05/04/09 14:21:14 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena/hatena_haiku_hidden_invalid_entries.user.js
r33024 r33046 2 2 // @name Hidden invalid entries for Hatena Haiku 3 3 // @namespace http://www.trashsuite.org/ 4 // @version 3.0.1 64 // @version 3.0.17 5 5 // @copyright 2009+, MINASE Kaede (http://www.trashsuite.org/) 6 6 // @license MIT License; http://sourceforge.jp/projects/opensource/wiki/licenses%2FMIT_license … … 205 205 { 206 206 this.NAME = 'Hidden invalid entries for Hatena Haiku' 207 this.VERSION = '3.0.1 6'207 this.VERSION = '3.0.17' 208 208 this.HATENA = unsafeWindow.Hatena 209 209 this.CONFIG_SERVER = 'http://hhhie.trashsuite.org/' … … 272 272 return (v >= 0 && v < 10) ? '0' + v.toString() : v 273 273 }).join(':') 274 } 275 276 // キャッシュ有効期限をリセット 277 this.reset_cache_expire = function() 278 { 279 this.config.expire = this.CACHE_EXPIRE + (+ new Date) 274 280 } 275 281 … … 537 543 onload : function(res) 538 544 { 539 // 304 なら終了 540 if(res.status == 304) return true 545 // 304 ならキャッシュの有効期限をリセットして終了 546 if(res.status == 304) { 547 this.reset_cache_expire() 548 return true 549 } 541 550 542 551 GM_xmlhttpRequest({ … … 551 560 this.config.hidden_words = this.config.hidden_words.concat(config.hidden_words) 552 561 this.config.last_modified = (new Date).toUTCString() 553 this. config.expire = this.CACHE_EXPIRE + (+ new Date)562 this.reset_cache_expire() 554 563 GM_setValue('config', this.config.toSource()) 555 564 }.bind(this)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)