COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 10-02-2015, 06:23 PM   #1
przemoc
Human being with feelings
 
przemoc's Avatar
 
Join Date: Sep 2015
Location: Poland
Posts: 23
Default Efficiently viewing new posts in the forum

I was tired with ineffective forum checking, so I came up with simple oneliner in JS.

Works in:
  • Google Chrome
  • Mozilla Firefox (sometimes locks)

Steps:
  1. Go to New Posts:
    http://forum.cockos.com/search.php?do=getnew
  2. Select last page.
  3. Hit F12, copy-paste into console:
    Code:
    Array.prototype.forEach.call($$('a[href^="showthread.php?goto=newpost&"'),function(el){window.open(el.href);});
    and hit Enter. All threads with new posts listed on current page are opened in new tabs.
    (In Chrome once used code stays in history, so you can grab it later using Up arrow key on your keyboard.)
  4. Repeat with next page.
I do it quickly for all pages and Mark Forums Read, because otherwise I get later posts I already read, when I click New Posts, which is extremely irritating.
__________________
@SoundCloud | ReaScripts @GitHub | ReaScripts @Forum | SP4-7 ReaBank @Stash | Viewing new posts | Feature requests: Time units with samples (Minutes:Seconds:Samples)
ThinkPad T430 (2344-56G) | Windows 7 Pro 64-bit | REAPER 5/x64
przemoc is offline   Reply With Quote
Old 10-02-2015, 06:59 PM   #2
Fergler
Human being with feelings
 
Fergler's Avatar
 
Join Date: Jan 2014
Posts: 3,903
Default

Can you add stuff to ignore posts from the Newbies section and lounge?
__________________
Check out my hip-hop, funk-rock band Theatre Crisp
Fergler is offline   Reply With Quote
Old 10-03-2015, 03:20 PM   #3
przemoc
Human being with feelings
 
przemoc's Avatar
 
Join Date: Sep 2015
Location: Poland
Posts: 23
Default

Quote:
Originally Posted by Fergler View Post
Can you add stuff to ignore posts from the Newbies section and lounge?
Sure, below you can find special version just for you.
Code:
unwanted=['newbieland','REAPER lounge'];Array.prototype.forEach.call($$('a[href^="showthread.php?goto=newpost&"'),function(el){f=el.parentNode.parentNode.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.childNodes[0].text;if(unwanted.indexOf(f)<0)window.open(el.href);});
It's not pretty, but it works and you can easily add other unwanted forums yourself, if needed.
__________________
@SoundCloud | ReaScripts @GitHub | ReaScripts @Forum | SP4-7 ReaBank @Stash | Viewing new posts | Feature requests: Time units with samples (Minutes:Seconds:Samples)
ThinkPad T430 (2344-56G) | Windows 7 Pro 64-bit | REAPER 5/x64
przemoc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.