0

当我单击此自动声明 zynga.com 奖励的小书签时,它什么也没做,但它的创建者可以正常工作。我知道的不够多,无法弄清楚为什么它对我不起作用。创作者使用了Firefox,我在Firefox和Chrome中都试过了,它什么也没做。我尝试更新浏览器和所有插件,但没有任何效果。如果可以,请查看代码,看看是否有任何问题会导致问题,谢谢。

var classesPublic='zui_list_itemsContainer zui_zdc_gameboard_rts_rtsList_itemsContainer zui_zdc_gameboard_rts_rtsPublicList_itemsContainer';var classesNeighbors='zui_list_itemsContainer zui_zdc_gameboard_rts_rtsList_itemsContainer zui_zdc_gameboard_rts_rtsNeighborList_itemsContainer';var classesButtons='zui zui_button zui_enabled zui_button_enabled zui_zdc zui_button_zdc zui_zdc_enabled zui_button_zdc_enabled zui_button_tiny zui_button_white';var unclaimedRewardsNeighbors,unclaimedRewardsPublic;var unclaimedNeighborsInit=unclaimedPublicInit=true;function collectRewardsNeighbors(){for(unclaimedIndex=0;unclaimedIndex=1){if(unclaimedNeighborsInit){unclaimedNeighborsInit=false;collectRewardsNeighbors();}else{setTimeout('collectRewardsNeighbors()',1000);}}},false);var parentUnclaimedPublic=document.getElementsByClassName(classesPublic)[0];parentUnclaimedPublic.addEventListener('DOMSubtreeModified',function(){unclaimedRewardsPublic=parentUnclaimedPublic.getElementsByClassName(classesButtons);if(unclaimedRewardsPublic.length>=1){if(unclaimedPublicInit){unclaimedPublicInit=false;collectRewardsPublic();}else{setTimeout('collectRewardsPublic()',1000);}}},false);
4

1 回答 1

1

for(unclaimedIndex=0;unclaimedIndex=1)是不正确的语法或逻辑。那可能是你的错误。

提示:

使用JS Beautifier之类的工具将单行 JS 转换为格式正确、易于阅读的代码。

我使用JS Bin来检查警告和语法错误。

于 2012-09-09T01:32:21.623 回答