你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/550666-reddit-notifications-dropdown/discussions/309790,源站連結 點此以跳轉。
add notifications dropdown to reddit
< 脚本 Reddit notifications dropdown 的反馈
Hey, thanks for the feedback. I understood your idea and just updated the script. Links should now open natively, meaning:
Left click = Current window
Shift + Left click = New window
Ctrl + Left click = New tab
Middle mouse = New tab
Thanks! You're so awesome. I understand if you don't want to be bothered any more about this, but two other real minor things I noticed:
I understand if you don't want to be bothered any more about this
It's ok.
Clicking outside of the popup frame should probably dismiss it, right? Currently the only way I can see to dismiss it is to click the notification icon a second time.
Added this, it should dismiss when clicking outside the popup.
After clicking "Mark All As Read" in the popup, is it possible to remove the unread counter on the notification icon?
I added a similar behavior, natively. If you view the notifications popup, it already removes the counter in the backend. So if I added it only when clicking "Mark All As Read" and you don’t click but view the popup and reload, the counter is already gone. Therefore, the script will remove it when clicking on notifications.
Thanks for the feedback. I really appreciate the ideas.
Added a line to your 2nd-to-last function so that ctrl+click still opens links in new tabs (rather than the parent frame) like it normally would. (I could not figure out how to make shift+click open links in a new window, though)