Reddit notifications dropdown

add notifications dropdown to reddit

< Feedback on Reddit notifications dropdown

Review: قالتىس - قوليازما ئىشلەيدۇ

§
يوللانغان ۋاقتى: 2025-09-29
تەھرىرلەنگەن ۋاقتى: 2025-09-29

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)

function setupIframeLinkHandler() {
    document.addEventListener("click", (event) => {
        const targetA = event.target.closest("a[href]");
        if (targetA) {
            event.preventDefault();
            console.log(unsafeWindow.top);
            if (event.ctrlKey) {
                unsafeWindow.open(targetA.href);
            } else {
                unsafeWindow.top.navigation.navigate(targetA.href);
            }
        }
    });
}
hdyzenئاپتور
§
يوللانغان ۋاقتى: 2025-09-29
تەھرىرلەنگەن ۋاقتى: 2025-09-29

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

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.