Custom rule request: nnmclub.to [RU]
The url of site https://nnmclub.to
Is your request related to a problem? Please describe. -no
Describe the result you'd like with the rule
- need to leave the top header only on the first page.
- On other scrolling pages, need to remove the top and bottom header so that the content of the pages is combined into one element
Custom rule you've tried -no
Additional context in the image, a top and bottom header that broke up the content at the end of the page
I recently found out about your script, it’s just a miracle.
Just click 'Update Online Rules', It's already added to the built-in rules library.
@hoothin This is cool, thank you very much.
I set the rule manually and it works.
-Since I deleted the default rules list and there is no reset button.
I added links manually, but for some reason they take a very long time to update.
@hoothin The main news feed works correctly, but some may need more support.
The added home page support works fine (with news page), but the scrolling script could be extended to forum pages, not just the news page
I don't know how to explain briefly. Normal behavior of forum pages.
That is, the site title, the main news, and the comment response window, and the bottom copyrights are repeated every time you scroll.
simple: https://nnmclub.to/forum/viewtopic.php?t=1735234
Screenshot:
I have no account that can reply on that bbs. So I can just try to work out.
{
"name": "Несколько стран ввели загадочный экспортный контроль над квантовыми компьютерами :: NNM-Club",
"url": "^https?://nnmclub\\.to/forum/",
"example": "https://nnmclub.to/forum/viewtopic.php?t=1735234",
"author": "Hoothin",
"pageElement": ".forumline",
"action": 0
}
You can test it yourself, and if it works, feel free to optimize and open a pr to submit it to the online rule.
@hoothin
between pages: news block repeat
end: comment response window in the end repeat
As I mentioned earlier, I'm not a user of this forum and don't have an account that can see the reply box, so I'm unable to assist you further. You'll need to examine the element structure yourself and modify the pageElement to get the desired result.
@hoothin temp acc login: pagetual pass: coolclass55
...No no no, I have already registered an account, but my rank is not high enough to reply.
@hoothin I sent you my account by email
{
"name": "NNM-Club",
"url": "^https?://nnmclub\\.to/forum/",
"example": "https://nnmclub.to/forum/viewtopic.php?t=1735234",
"author": "Hoothin",
"pageElement": ".forumline>tbody>tr:nth-child(n+5):nth-last-child(n+5)",
"action": 0
}
Take it.
does not work. and the main news page too
@hoothin yes it works, I didn’t configure the rule correctly, oops
vibe coding. added rule for Tracker (search) page
[
{
"name": "NNM-Club News",
"url": "^https?://nnmclub\\.to/$",
"example": "https://nnmclub.to/",
"pageElement": ".leftnav+td>*",
"pageAction": "eles.forEach(ele=>{let portalImg=ele.querySelector('var.portalImg');if(!portalImg)return;portalImg.innerHTML=`<img border='0' width='256' align='left' style='margin-bottom:8px;margin-right:8px;' title='pic' src='${portalImg.title}'>`})",
"action": 0
},
{
"name": "NNM-Club Tracker",
"url": "^https?://nnmclub\\.to/forum/tracker\\.php",
"example": "https://nnmclub.to/forum/tracker.php",
"pageElement": ".forumline.tablesorter",
"pageAction": "(()=>{let tables=document.querySelectorAll('.forumline.tablesorter');if(tables.length>1){let main=tables[0];let mainTbody=main.querySelector('tbody');for(let i=1;i<tables.length;i++){let tbody=tables[i].querySelector('tbody');while(tbody.firstChild){mainTbody.appendChild(tbody.firstChild);}tables[i].remove();}if($(main).hasClass('tablesorter')){$(main).trigger('update');}else{$(main).tablesorter();}}else if(tables.length===1){let main=tables[0];if($(main).hasClass('tablesorter')){$(main).trigger('update');}else{$(main).tablesorter();}}})()",
"action": 0
},
{
"name": "NNM-Club Forum",
"url": "^https?://nnmclub\\.to/forum/(?!tracker\\.php)",
"example": "https://nnmclub.to/forum/viewtopic.php?t=1735234",
"author": "Hoothin",
"pageElement": ".forumline>tbody>tr:nth-child(n+5):nth-last-child(n+5)",
"action": 0
}
]