sixcious / infy-scroll

Add customized infinite scrolling to websites and auto load the next page.
Other
163 stars 18 forks source link

[request] needs improvement Rule Setup UI Popup and toolbar click action #97

Open DandyClubs opened 2 weeks ago

DandyClubs commented 2 weeks ago

Description

  1. if Not On

    setup PopUI when Infy Scroll icon click

  2. show Turn On Off icon when cancle click

  3. i want to direct show Turn On/Off when toolbar Infy Scroll icon click

and

  1. disappears rule setup UI Popup when lost tab focus (window.onblur)

  2. need keep Popup before close by user

https://github.com/user-attachments/assets/6b7345e0-fba4-4ca3-a6ce-8749318feb6a

URL

ex

Version

8

Browser

firefox edge

OS

windows 11

Device

PC

Adherence

sixcious commented 1 week ago

Hi again DandyClubs, thanks for opening this issue and for the video πŸ’œ

1 2 3

When the app isn't enabled (ON) on a specific site/tab, the assumption is that you want to set it up, not turn it off, as it is not turned on yet for the tab, and it doesn't make sense to show the buttons at that point. What is your use-case for wanting to have immediate access to the Power Off Button when it is not turned on for the current tab?

4 5

Yes, I totally understand and agree. The browser controls how the Popup closes and I have no control over this unfortunately. I don't save your changes until you click the ACCEPT Button due to how complex the app is and due to the sheer number of settings, as well as needing to validate your settings all at once. I understand your issue though and I'll keep this in mind for the future.

Does this helps explain things? Please let me know if you have any other questions!

DandyClubs commented 1 week ago

1.

i make new site rules... but somesite not ON

The URL matches but does not turn on.

same nextLink and pageElement

Try xpath But Not Work. Icon Off

Try Select But Not Work. Icon Off

Try "append": "ajax", Mode Icon ON

https://yandex.com/search/?text=aaa&lr=10635&search_source=yacom_desktop_common

{
  "id": 10,
  "name": "Yandex",
  "url": "https://yandex.com/search?text",
  "type": "pattern",
  "date": "2024-10-02T11:56:28.302Z",
  "action": "next",
  "append": "element",
  "duplicateStop": true,
  "nextLink": "//div[@class ='Pager-Content']/div[./a[@class='Pager-Item_current']]/following-sibling::div[1]/a",
  "pageElement": "//div[@class='main__center']/div[@class='main__container']/div[@class='main__content']/div[@class='content i-bem']/div[@class='content__left']"
}

Icon Not ON

If you change from Off to ON need direct Infy scroll On/Off and blacklist On/Off

sixcious commented 1 week ago

Hi again! Well, that save has no chance of working with the example URL you posted because it won't match the URL. The url pattern should be: https://yandex.com/search/?text. (Note the missing / inside the search? part.) Also, from what I'm experiencing, that's a pretty hostile/defensive site that does checks to ensure you're not loading the next page too quickly.

If that isn't the issue, then I'm real sorry because I don't think I understand what you're trying to say in English. Can you write your post in your native language so I can machine translate it?

DandyClubs commented 1 week ago

κ·œμΉ™μ΄ μ‘΄μž¬ν•˜λŠ” νŽ˜μ΄μ§€μ˜ 경우 ON μΌλ•Œ

μΌμ‹œμ μœΌλ‘œ OFF 둜 λ³€κ²½ν•˜κ³  λ‚œ ν›„..

λ‹€μ‹œ ON을 ν•˜λ €κ³  ν•˜λ©΄

κ·œμΉ™μƒμ„± 창이 λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

sixcious commented 1 week ago

Hi, I'm going to try and summarize your use-case:

  1. It is currently ON
  2. The user turns it OFF
  3. The user closes the Popup
  4. The user re-opens the Popup and wishes to see the Buttons (not the Setup)

If so, I can make it re-open the Popup showing the Buttons, so long as it was previously ON at least once.

Please confirm if that is correct and acceptable.

DandyClubs commented 1 week ago

Yes!

  1. It is currently ON
  2. The user turns it OFF
  3. i want to show ON/Off Button if already has Site Rule.