MediaWiki讨论:Gadget-AdvancedSiteNotices.js

Gadget throwing JS errors on the mobile site

This gadget is throwing errors on mobile site e.g. https://zh.m.wikipedia.org/wiki/%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%B8%96%E7%95%8C%E5%A4%A7%E6%88%98:

Uncaught SyntaxError: Unexpected token )
    at testCriteria (<anonymous>:235:177)
    at matchCriteria (<anonymous>:235:195)
    at loadNotices (<anonymous>:235:451)
    at Object.success (<anonymous>:236:699)
    at fire (load.php?lang=zh-hk&modules=jquery&skin=minerva&version=0hmxo20:45)
    at Object.fireWith [as resolveWith] (load.php?lang=zh-hk&modules=jquery&skin=minerva&version=0hmxo20:47)
    at done (load.php?lang=zh-hk&modules=jquery&skin=minerva&version=0hmxo20:126)
    at XMLHttpRequest.<anonymous> (load.php?lang=zh-hk&modules=jquery&skin=minerva&version=0hmxo20:130)

Jdlrobson留言2019年8月7日 (三) 17:26 (UTC)回复

Fixed in Special:Diff/55559839. --Xiplus#Talk 2019年8月8日 (四) 00:14 (UTC)回复

在上方的消息“跑马灯”

以前在上面的消息“跑马灯”只要按 [关闭] 之后,在维基百科的页面之间就不会再出现了(直到下次),但现在按下 [关闭] 却只有单次有效,转到其他页面仍然出现?是强迫收看吗?--Tp0910留言2020年10月3日 (六) 20:46 (UTC)回复

too much recursion

This error is thrown on https://zh.wikipedia.org/wiki/%E5%A4%A7%E9%B1%BC%E6%B5%B7%E6%A3%A0 Anoymized stack trace:

at html/< URL1:222:664
at access URL1:193:243
at html URL1:222:504
at loadNotices/< URL2:4:168
at jQuery.speed/opt.complete URL1:242:22
at fire URL1:186:191
at fireWith URL1:187:402
at tick URL1:239:241
at jQuery.fx.tick URL1:244:750
at schedule URL1:234:991

Jon (WMF)留言2020年10月20日 (二) 21:09 (UTC)回复

编辑请求 2021-08-18

  请求已处理。--安忆Talk 2021年8月18日 (三) 02:59 (UTC)回复

第71行jQuery.trim改成String.prototype.trim,控制台一堆deprecate警告-- Sunny00217  2021年8月18日 (三) 02:52 (UTC)回复

The gadget is not in real time when using with numbers

Hello, in ckb:Template:AdvancedSiteNotices, we used if expression with two deletion categories (for admins only). It is obvious that category members increase and decrease. The problem here is that the AdvancedSiteNotices does not update at all and is not real time. I just investigated the problem a little bit and went to the ckb:Template:AdvancedSiteNotices/ajax. I cleaned it's cache up and it updated in the AdvancedSiteNotices, but I wasn't sure if it was updated only for me or for other administrators and it will updated for all admins. Can you fix this problem?--Aram留言2023年1月10日 (二) 19:29 (UTC)回复

返回到“Gadget-AdvancedSiteNotices.js”页面。