LiveSearch

Powered by vanilla & lovin' it!

    •  
      CommentAuthorurbansurgeon
    • CommentTimeJul 29th 2008 edited
     
    cut & paste the following and put it into a bookmark

    i can post it as a link as the forum rejects inline javascript

    this works better than the link on the left which just marks the first page of recent posts as read - this will take any page of links and mark them as read. so this could be a list of search results for instance.

    enjoy

    javascript:
    var ds=document.getElementById('Discussions').getElementsByTagName('a');
    var pan=document.getElementById('Panel');
    var ifr=new Array();
    for(n=0;n<ds.length;n++){
    ifr[n]=document.createElement('iframe');
    ifr[n].style.width=1+'px';
    ifr[n].style.height=1+'px';
    ifr[n].style.display='none';
    ifr[n].id=n+'Frame';
    ifr[n].setAttribute('name',ds[n].parentNode.parentNode.parentNode.id);
    pan.appendChild(ifr[n]);
    }
    for (i=0;i<ds.length;i++){
    ifr[i].setAttribute('src',ds[i].href);
    ifr[i].setAttribute('onload','killFrame('+i+')');
    }
    function killFrame(m){
    var k=document.getElementById(m+'Frame');
    var p=document.getElementById('Panel');
    var l=document.getElementById(k.getAttribute('name'));
    p.removeChild(k);
    l.setAttribute('class','Discusson Read');
    var ps=p.getElementByTagName('iframe');
    if (ps.count==0) {
    window.stop();
    }
    }


    YMMV
    •  
      CommentAuthorbaseisdead
    • CommentTimeJul 29th 2008
     
    Lets all do it at the same time and kill the web server :D
  1.  
    indeed
    •  
      CommentAuthorbaseisdead
    • CommentTimeJul 29th 2008
     
    ready...
  2.  
    it only does one page
    •  
      CommentAuthorurbansurgeon
    • CommentTimeJul 29th 2008 edited
     
    i took out the loop which read in how many unread posts there are eva - it crashed safari
    •  
      CommentAuthorblueshead
    • CommentTimeJul 29th 2008
     
    What the fuck does this do?
    •  
      CommentAuthorchris
    • CommentTimeJul 30th 2008
     
    have you tried guessing, blues? go on, i dare you! :D
    •  
      CommentAuthormick
    • CommentTimeJul 30th 2008
     
    thank you, urban. :)
  3.  
    anyone using this? i was just wondering whether to bother making improvements?
    •  
      CommentAuthorzippie
    • CommentTimeAug 9th 2008
     
    nah :D
  4.  
    helpful - thanks zip
    •  
      CommentAuthorzippie
    • CommentTimeAug 9th 2008
     
    easiest way to see if anyone is using it is to switch it off and see if anyone complains ;)
  5.  
    nothing to switch off - its a bookmarklet silly
    •  
      CommentAuthormick
    • CommentTimeAug 10th 2008
     
    i used it a couple of times, but the volume on this forum isn't enough for me to really find it useful. your work is still appreciated, urban.

    x
    • CommentAuthorrbernato
    • CommentTimeAug 12th 2008 edited
     
    Could be I am too thick but can you give me a idiot proof step by step guide of how to use that?