A Cycling & bikes forum. CycleBanter.com

Go Back   Home » CycleBanter.com forum » rec.bicycles » Racing
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Comments to CN



 
 
Thread Tools Display Modes
  #1  
Old June 23rd 09, 03:28 PM posted to rec.bicycles.racing
DirtRoadie
external usenet poster
 
Posts: 2,915
Default Comments to CN


Ads
  #3  
Old June 23rd 09, 06:35 PM posted to rec.bicycles.racing
GoneBeforeMyTime
external usenet poster
 
Posts: 725
Default Comments to CN


"GoneBeforeMyTime" wrote in message
...

To remove spoilers from Firefox. Not my script, so try it at your own
risk...

// ==UserScript==
// @name despoil cyn
// @namespace www.random-productions.co.uk
// @description Removes spoiler headlines from Cycling News
// @include http://www.cyclingnews.com/
// ==/UserScript==


var allDivs, thisDiv;
allDivs = document.evaluate(
"//ul[@class='articles']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);

for (var i = 0; i allDivs.snapshotLength; i++)
{
thisDiv = allDivs.snapshotItem(i);
var as = thisDiv.getElementsByTagName('a');

for (var j=0;jas.length; j++)
{
if (as[j].href.indexOf('/stages/') != -1)
{
var pos = as[j].innerHTML.indexOf('Stage');
if (pos == 0)
as[j].innerHTML = as[j].innerHTML.substring(0,10);
}
}
}

To use it, install greasemonkey. Then, go to cyclingnews homepage, go to
your menu 'tools - greasemonkey - new user script', fill in & submit form,
paste the code above into your text file and save it. Then reload cycling
news.



  #4  
Old June 23rd 09, 11:59 PM posted to rec.bicycles.racing
Johnny Twelve-Point presented by JFT
external usenet poster
 
Posts: 1,628
Default Comments to CN

On Tue, 23 Jun 2009 09:54:02 -0700, "GoneBeforeMyTime"
wrote:


"DirtRoadie" wrote in message
...


Very bad idea.

That's cause your comments are kept secret at CN. Post your comments to the
forum so everyone can read them.


Dumbass.

That's right. Or post to the forum and CC the email address.
 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ES comments Just zis Guy, you know?[_2_] UK 7 June 16th 09 04:57 PM
The Best Comments Nepsis Unicycling 34 May 31st 05 09:52 PM
New to this newsgroup - Comments Dogforlife Recumbent Biking 2 February 21st 05 05:17 PM
Comments to the BBC [Not Responding] UK 0 November 16th 04 08:26 PM
Re Tent FS and other comments Not known to me UK 21 May 9th 04 03:37 PM


All times are GMT +1. The time now is 05:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 CycleBanter.com.
The comments are property of their posters.