Official Everybody Edits Forums

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.

#1 2017-05-21 00:01:42

Mieaz
Member
Joined: 2016-10-14
Posts: 499

Is there a way to open all unread posts in new tabs?

greasemonkey inspect element or something else idk anything my middle click is gonna die....


ee & eeforums gibs me depression

Offline

#2 2017-05-21 12:13:20, last edited by Koya (2017-05-21 12:14:32)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Is there a way to open all unread posts in new tabs?

$(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.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#3 2017-05-21 17:07:48

Mieaz
Member
Joined: 2016-10-14
Posts: 499

Re: Is there a way to open all unread posts in new tabs?

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 //forums.everybodyedits.com/img/smilies/neutral (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

#4 2017-05-21 17:14:45

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: Is there a way to open all unread posts in new tabs?

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

hummerz51495383285660720

Board footer

Powered by FluxBB

[ Started around 1713275195.445 - Generated in 0.040 seconds, 12 queries executed - Memory usage: 1.37 MiB (Peak: 1.47 MiB) ]