Super_preloaderPlus_one_New

Preload and Autopager

< Feedback on Super_preloaderPlus_one_New

Review: Good - script works

§
Posted:
Edited:

Script not working on non-public forum threads

(Edited)

I am a member of a forum running SMF software. The script works OK on all threads that are visible to unregistered visitors, but errors out on threads that are only visible to registered members, even when I logged in.

The debug says:

[Super-preloader] 获取下一页的主要内容失败 //div[@id='posts' or div//td/@class='postContent']/*[.//*[starts-with(@id,'post')]]|//table[@class='bordercolor']//tr[.//tr/td[starts-with(@class,'windowbg')]]|(id('posts messageList')|//ul[starts-with(@class,'conversation-list')])/li[starts-with(@id,'post') or contains(@class,'js-post')]|id('comments')/div[not(@class='item-list')]|id('quickModForm')/div[contains(@class,'windowbg') or @class='bordercolor']|//li[@class='bbp-body']/div Super_preloaderPlus_one_New.user.js:14212:22
    insertedIntoDoc moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:14212
    beforeInsertIntoDoc moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:14085
    scroll moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:14542
    XHRLoaded moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13770
    doRequest moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13961
    (Async: promise callback)
    doRequest moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13956
    autopager moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13985
    init moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:15087
    spinit moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13257
    tms_efd25177_67a9_430f_9cdf_a2b9fdc83bd2 moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13302
    (Async: promise callback)
    tms_efd25177_67a9_430f_9cdf_a2b9fdc83bd2 moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:13082
    tms_efd25177_67a9_430f_9cdf_a2b9fdc83bd2 moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:15809
    tms_efd25177_67a9_430f_9cdf_a2b9fdc83bd2 moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:15811
    n eval:3
    <anonymous> moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:1
    <anonymous> moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:1
    <anonymous> moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:15813
    <anonymous> moz-extension://eb61ac3e-ed19-4b96-93b1-d906591e63a5/userscripts/Super_preloaderPlus_one_New.user.js?id=efd25177-67a9-430f-9cdf-a2b9fdc83bd2:15815
    n eval:3
    c eval:2
    E_u eval:3
    na eval line 1 > Function:60
    create eval line 1 > Function:72
    d eval line 1 > Function:13
    (Async: setTimeout handler)
    n eval:3
    b eval:9
    sa eval line 1 > Function:12
    runListeners eval line 1 > Function:13
    anonymous eval line 1 > Function:73
    O eval:11
§
Posted:

I noticed something similar. Seems like the session cookie is not getting passed to the loaded pages.

For example: https://www.trektraxs.com/index.php?topic=12607.0 (need to create a free account first, takes less than a minute)

I will open an issue on the developer's Github.

§
Posted:

Tampermonkey on FF. Greasemonkey works OK.

§
Posted:

Pull request submitted that fixes it for Tampermonkey. Works on the trektrax link.

mach6Author
§
Posted:

@AlexO said: Pull request submitted that fixes it for Tampermonkey. Works on the trektrax link.

I merged your PR. @lurker , check if the latest version works.

§
Posted:
Edited:

Seems to be working, but I still see the following in the log:

[Super-preloader] Script Manager: Tampermonkey  v4.11.6114 Super_preloaderPlus_one_New.user.js:9734:14
[Super-preloader] Browser:  {"name":"firefox","version":"78.0.0"} Super_preloaderPlus_one_New.user.js:9735:14
[Super-preloader] url为:https://elliquiy.com/forums/index.php?topic=279995.0的页面,JS加载成功 Super_preloaderPlus_one_New.user.js:11378:16
[Super-preloader] Number of advanced rules:4023 Super_preloaderPlus_one_New.user.js:11423:20
[Super-preloader] Find rule for this website: <unavailable> Super_preloaderPlus_one_New.user.js:11435:24
[Super-preloader] Rule ID: 1333 Super_preloaderPlus_one_New.user.js:11436:24
[Super-preloader] 无法找到内容,跳过规则: <unavailable> 继续查找其他规则 Super_preloaderPlus_one_New.user.js:11540:24
[Super-preloader] Find rule for this website: <unavailable> Super_preloaderPlus_one_New.user.js:11435:24
[Super-preloader] Rule ID: 2058 Super_preloaderPlus_one_New.user.js:11436:24
[Super-preloader] 无法找到内容,跳过规则: <unavailable> 继续查找其他规则 Super_preloaderPlus_one_New.user.js:11540:24
[Super-preloader] Find rule for this website: <unavailable> Super_preloaderPlus_one_New.user.js:11435:24
[Super-preloader] Rule ID: 2256 Super_preloaderPlus_one_New.user.js:11436:24
[Super-preloader] 搜索高级规则和自动匹配过程总耗时:85ms Super_preloaderPlus_one_New.user.js:11598:18
[Super-preloader] 上一页链接: undefined Super_preloaderPlus_one_New.user.js:11607:18
[Super-preloader] 下一页链接: <unavailable> Super_preloaderPlus_one_New.user.js:11608:18
[Super-preloader] 添加鼠标手势翻页监听 Super_preloaderPlus_one_New.user.js:11649:16
[Super-preloader] Load local settings  <unavailable> Super_preloaderPlus_one_New.user.js:7756:16
[Super-preloader] 创建悬浮窗 Super_preloaderPlus_one_New.user.js:11677:18
[Super-preloader] 全部过程耗时:98ms Super_preloaderPlus_one_New.user.js:11721:16
[Super-preloader] 初始化,翻页模式. Super_preloaderPlus_one_New.user.js:11724:18
[Super-preloader] 验证是否能找到插入位置节点:成功 <unavailable> Super_preloaderPlus_one_New.user.js:10342:20
[Super-preloader] Language:  en-CA Super_preloaderPlus_one_New.user.js:10350:20
[Super-preloader] 验证是否能找到主要元素:成功 <unavailable> Super_preloaderPlus_one_New.user.js:10358:20
[Super-preloader] 获取下一页 (XHR方式) https://elliquiy.com/forums/index.php?topic=279995.25 Super_preloaderPlus_one_New.user.js:10583:20
[Super-preloader] GM_xmlhttpRequest <unavailable> Super_preloaderPlus_one_New.user.js:6825:14
[Super-preloader] 读取完成 Super_preloaderPlus_one_New.user.js:10604:22

[Super-preloader] 直接拼接 Super_preloaderPlus_one_New.user.js:10722:22
[Super-preloader] 获取下一页的主要内容成功 <unavailable> Super_preloaderPlus_one_New.user.js:10854:22

[Super-preloader] 没有找到下一页链接 (//link[//span/@class='scrollable']|//a)[@rel='next' or .='>' or .='Next ›' or .='Next >']|(//td[@class='middletext']|//div[starts-with(@class,'pagelinks') or contains(@class,'pagesclass')])/text()[contains(.,']')]/following-sibling::a[@class='navPages']|//span[contains(@class,'current')]/following-sibling::a[not(@class='go_page')]|//li[starts-with(@class,'pager-next')]/a Super_preloaderPlus_one_New.user.js:11081:22
[Super-preloader] 移除各种事件监听 Super_preloaderPlus_one_New.user.js:10418:20

Post reply

Sign in to post a reply.