Welcome Guest ( Log In | Register )

5664 Pages V « < 5254 5255 5256 5257 5258 > »   
Closed TopicStart new topic
> 舊中文樓, The dead and old Chinese discussion (spam) thread

 
post Aug 7 2021, 15:10
Post #105101
jy-laji



The man who became an island.
********
Group: Members
Posts: 2,930
Joined: 21-May 11
Level 500 (Ponyslayer)


QUOTE(ndamuleu @ Aug 7 2021, 20:54) *

window.dispatchEvent 这一句是分发一个自定义事件到window,其他代码可以使用window.addEventLinster捕获这个事件,进行自定义的处理。不需要自定义处理的话可以删除
下一句,移除页面刷新时保存战斗数据的动作,删除这一句会导致战斗数据保留到下一次战斗,造成数据错误。

第二句的listener在最后,也是相对原来新增的
CODE
if ( document.getElementById('textlog') || document.getElementById('riddlemaster') ) {
    Enhance();
    document.addEventListener('DOMContentLoaded', Enhance);
    window.addEventListener('beforeunload', StoreTmp); }
else { OutOfCombat(); }

估计cjj没看见
第二句大概不用删?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 15:21
Post #105102
涩谷凛



Regular Poster
*****
Group: Gold Star Club
Posts: 601
Joined: 15-May 21
Level 500 (Ponyslayer)


QUOTE(jy-laji @ Aug 7 2021, 21:10) *

第二句的listener在最后,也是相对原来新增的
CODE
if ( document.getElementById('textlog') || document.getElementById('riddlemaster') ) {
    Enhance();
    document.addEventListener('DOMContentLoaded', Enhance);
    window.addEventListener('beforeunload', StoreTmp); }
else { OutOfCombat(); }

估计cjj没看见
第二句大概不用删?

OutOfCombat里面才有移除战斗数据的代码,所以前面一个removeEventLinster似乎可有可无,没有的话也就额外保存一次数

或者你可以直接 `window.onbeforeunload=Store`,然后结束时` window.onbeforeunload=null` ,这样就是会顶掉原来的处理函数就是了。
脚本用localStorage存储JSON数据,然后读取的时候还没有保护。曾经意外改动过localStorage的数据,然后脚本就挂了。
接关闭浏览器窗口也可能破坏数据。

This post has been edited by ndamuleu: Aug 7 2021, 15:23
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 15:29
Post #105103
chjj30



🦘跳海魔女🧙王世坚🌊
***********
Group: Catgirl Camarilla
Posts: 10,989
Joined: 5-January 14
Level 500 (Ponyslayer)


感谢 2 位,我试了把
window.removeEventListener('beforeunload', StoreTmp);
这句贴回去的确能正常运行,那么带来问题的只有
window.dispatchEvent(new CustomEvent("battleEnd", {"detail":{timelog,combatlog,droplog}}));
这句了。
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 15:43
Post #105104
FCYM



Newcomer
**
Group: Members
Posts: 87
Joined: 18-November 16
Level 250 (Godslayer)


怎么就立秋了
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 15:50
Post #105105
lnstrumental



Chief of Yamazakura Operations
*****
Group: Gold Star Club
Posts: 634
Joined: 6-July 15
Level 404 (Ascended)


难过到只想昏睡
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 15:57
Post #105106
jy-laji



The man who became an island.
********
Group: Members
Posts: 2,930
Joined: 21-May 11
Level 500 (Ponyslayer)


QUOTE(chjj30 @ Aug 7 2021, 21:29) *

感谢 2 位,我试了把
window.removeEventListener('beforeunload', StoreTmp);
这句贴回去的确能正常运行,那么带来问题的只有
window.dispatchEvent(new CustomEvent("battleEnd", {"detail":{timelog,combatlog,droplog}}));
这句了。

第一句多半没用。删了就删了……
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:07
Post #105107
davidtsu



Regular Poster
******
Group: Gold Star Club
Posts: 962
Joined: 1-April 17
Level 500 (Ponyslayer)


看不懂了,今天的拍卖会,Clo44,那个魔光冰裙子,EDB 80% ,怎么一群人抢到15m了,我寻思冰和火都是新手才玩的有缺陷的法系,怎么就飙到14m了。。。真的看不懂大佬的操
作,要是这裙子属性不变,变成火的,我觉得超过3m就完全不考虑了。。。结论是HV社区,基尼系数太高了,贫富
距太大了?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:09
Post #105108
涩谷凛



Regular Poster
*****
Group: Gold Star Club
Posts: 601
Joined: 15-May 21
Level 500 (Ponyslayer)


QUOTE(jy-laji @ Aug 7 2021, 21:57) *

第一句多半没用。删了就删了……

第一句你可以这么使用:
CODE

window.addEventLinster('abc',function(e){console.log(e.detail)});
//其他代码
window.dispatchEvent(new CustomEvent('abc',{'detail':"abc"}));

然后控制台就会记录下这个事件的参数,可以自行分析处理。
Hentaiverse Battle Stats这个脚本就是这么做的,捕获battleEnd事件,自己处理。
CODE
function addStorageChangeListener() {
        window.addEventListener('battleEnd', function(e) {
        //...


This post has been edited by ndamuleu: Aug 7 2021, 16:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:28
Post #105109
shellgot



ボインパイの信者
*******
Group: Members
Posts: 1,432
Joined: 20-July 15
Level 362 (Godslayer)


QUOTE(lnstrumental @ Aug 7 2021, 21:50) *

难过到只想昏睡


那就靠Prolactin讓你不難過 (IMG:[invalid] style_emoticons/default/biggrin.gif)
(IMG:[imgur.com] https://imgur.com/oya0UBq.jpg)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:33
Post #105110
怪盗2009



中没赢=键政,中赢=没键政
*******
Group: Gold Star Club
Posts: 1,668
Joined: 5-November 17
Level 500 (Ponyslayer)


QUOTE(davidtsu @ Aug 7 2021, 22:07) *

看不懂了,今天的拍卖会,Clo44,那个魔光冰裙子,EDB 80% ,怎么一群人抢到15m了,我寻思冰和火都是新手才玩的有缺陷的法系,怎么就飙到14m了。。。真的看不懂大佬的操
作,要是这裙子属性不变,变成火的,我觉得超过3m就完全不考虑了。。。结论是HV社区,基尼系数太高了,贫富
距太大了?

Clo38] Legendary Charged Phase Robe of Mjolnir (500, Elec EDB 38%) (seller: .@_@.@_@.) sllme 8.5m #278 Extend to 14:11
[Clo39] Legendary Charged Phase Shoes of Mjolnir (500, Elec EDB 64%) (seller: rjgc) sllme 5.5m #273 Extend to 14:09

看不懂。。
这加速雷鞋数值和我的差不多,我买的时候是550k
最近拍卖价格不知道为什么都上天了。
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:34
Post #105111
sharmy



Active Poster
*******
Group: Gold Star Club
Posts: 2,373
Joined: 20-May 19
Level 500 (Ponyslayer)


QUOTE(davidtsu @ Aug 7 2021, 16:07) *

看不懂了,今天的拍卖会,Clo44,那个魔光冰裙子,EDB 80% ,怎么一群人抢到15m了,我寻思冰和火都是新手才玩的有缺陷的法系,怎么就飙到14m了。。。真的看不懂大佬的操
作,要是这裙子属性不变,变成火的,我觉得超过3m就完全不考虑了。。。结论是HV社区,基尼系数太高了,贫富
距太大了?

疯了,都疯了
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:55
Post #105112
davidtsu



Regular Poster
******
Group: Gold Star Club
Posts: 962
Joined: 1-April 17
Level 500 (Ponyslayer)


QUOTE(怪盗2009 @ Aug 7 2021, 06:33) *

Clo38] Legendary Charged Phase Robe of Mjolnir (500, Elec EDB 38%) (seller: .@_@.@_@.) sllme 8.5m #278 Extend to 14:11
[Clo39] Legendary Charged Phase Shoes of Mjolnir (500, Elec EDB 64%) (seller: rjgc) sllme 5.5m #273 Extend to 14:09

看不懂。。
这加速雷鞋数值和我的差不多,我买的时候是550k
最近拍卖价格不知道为什么都上天了。


QUOTE(sharmy @ Aug 7 2021, 06:34) *

疯了,都疯了


是的,我们对比一下,我之前说的我那个火裙子和今天的这个冰裙子:

火裙子
冰裙子

同样的魔光,同样的部位都是裙子,唯一区别是我的Evade差一些,但是PAB的加点稍微好一些,MDB,PMit等等都非常接
近,结果我的火裙子4m买的算买贵了,这个冰裙子几个土豪争风吃醋,抢到16m。。。我只能理解为冰魔法吊打火魔
。(其实假设这个冰裙子其他属性不变,就变成风裙子或者电裙子,我都觉得16m不算便宜)

其实应该是HV的贫富差距太大了,土豪们都太富有了。
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 17:15
Post #105113
Kirsi0822



Casual Poster
***
Group: Members
Posts: 107
Joined: 28-June 21
Level 380 (Dovahkiin)


笑死,每周拍卖都看不懂,但结果都一样,就是我啥也买不到
庆幸最开始捡了把还算能用的西洋,不然我现在怕不是还在用M西洋砍龙场
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 19:14
Post #105114
冥冥的冥冥



Active Poster
*******
Group: Catgirl Camarilla
Posts: 1,042
Joined: 14-February 20
Level 500 (Ponyslayer)


QUOTE(shellgot @ Aug 7 2021, 22:28) *


虽然是高P,但这个腿该舔还是得舔
prpr
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 20:00
Post #105115
lnstrumental



Chief of Yamazakura Operations
*****
Group: Gold Star Club
Posts: 634
Joined: 6-July 15
Level 404 (Ascended)


QUOTE(shellgot @ Aug 7 2021, 22:28) *

那就靠Prolactin讓你不難過 (IMG:[invalid] style_emoticons/default/biggrin.gif)

我陷入了自我否定的死循环
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 23:01
Post #105116
diyer



Newcomer
**
Group: Members
Posts: 51
Joined: 15-January 14
Level 238 (Godslayer)


好累啊, 时间过的好快
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 23:32
Post #105117
passengerX



Veteran Poster
********
Group: Members
Posts: 4,618
Joined: 24-January 10
Level 500 (Ponyslayer)


QUOTE(lnstrumental @ Aug 8 2021, 02:00) *

我陷入了自我否定的死循环

我天天都在自我否定,还是厚着脸皮活着
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 01:02
Post #105118
kaka00



Casual Poster
***
Group: Members
Posts: 225
Joined: 27-November 11
Level 406 (Godslayer)


进来就看到好康的大腿,精神顿时为之振奋
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 03:04
Post #105119
sharmy



Active Poster
*******
Group: Gold Star Club
Posts: 2,373
Joined: 20-May 19
Level 500 (Ponyslayer)


QUOTE(lnstrumental @ Aug 7 2021, 20:00) *

我陷入了自我否定的死循环

Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 03:38
Post #105120
jlima



Regular Poster
*****
Group: Members
Posts: 600
Joined: 5-September 17
Level 447 (Dovahkiin)


貌似这段时间,通货膨胀很厉害啊,什么都涨价~~~
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


5664 Pages V « < 5254 5255 5256 5257 5258 > » 
Closed TopicStart new topic
4 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 13th November 2025 - 11:23