hoothin / UserScripts

Greasemonkey scripts ( Pagetual / Picviewer CE+ / DownloadAllContent ) 油猴腳本集 ユーザースクリプト集
https://greasyfork.org/users/8227-hoothin
3.05k stars 510 forks source link

Custom rule request: nnmclub.to [RU] #587

Open shikulja opened 5 months ago

shikulja commented 5 months ago

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

  1. need to leave the top header only on the first page.
  2. 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

image

I recently found out about your script, it’s just a miracle.

hoothin commented 5 months ago

Just click 'Update Online Rules', It's already added to the built-in rules library.

shikulja commented 5 months ago

@hoothin This is cool, thank you very much. I set the rule manually and it works. image

-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. image

shikulja commented 3 months ago

@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:

image
hoothin commented 3 months ago

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.

shikulja commented 3 months ago

@hoothin

between pages: news block repeat image

end: comment response window in the end repeat image

hoothin commented 3 months ago

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.

shikulja commented 3 months ago

@hoothin temp acc login: pagetual pass: coolclass55

hoothin commented 3 months ago

...No no no, I have already registered an account, but my rank is not high enough to reply.

shikulja commented 3 months ago

@hoothin I sent you my account by email

hoothin commented 3 months ago
{
    "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.

shikulja commented 3 months ago

does not work. and the main news page too

hoothin commented 3 months ago

image

image

shikulja commented 3 months ago

@hoothin yes it works, I didn’t configure the rule correctly, oops