Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
greasemonkey inspect element or something else idk anything my middle click is gonna die....
ee & eeforums gibs me depression
Offline
$(document).on("click", ".openunread", function(){ /*When button is clicked*/
$(".icon.icon-new").each(function(){
window.open(window.location.protocol + "//" + window.location.host + "/" + $(this).parent().find("a").attr("href"), '_blank');
});
});
$(document).ready(function() { /*Create button to activate*/
if(window.location.href.split('#')[0] == "https://forums.everybodyedits.com/search.php?action=show_recent") {
$(".linkst").append('<a class="openunread" href="#" onclick="openUnread();" style="font-size:1.6em;">Open All Unread</a>');
}
});
Plug that into anything you want.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
I don't think there is anything wrong with the code or my browser
but when I click to open all unread posts then refresh the page (the Active/show_recent# one), only single "icon icon-new" is switched to 'topic is read' state (in my case only the bottom-most one, probably because it's opened last and so the focus is on it)
How do I know under which circumstances topic is appropriate to be marked as read?
ee & eeforums gibs me depression
Offline
Koya, side note if you will: Is there a difference between setting the event to the document... y'know, as compared to finding the element and then binding it that way? I wondered how it was that you could have bound it before creating it, but then I see you used the document.
is that the only benefit?
Offline
[ Started around 1738393227.1923 - Generated in 0.059 seconds, 13 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]