Re: [IETF] Add a link to the HTML version in i-d-announce mails ?

2012-03-06 Thread Warren Kumari

On Mar 6, 2012, at 8:41 AM, Xavier Marjou wrote:

 As a subscriber of the i-d-annou...@ietf.org list, I generally prefer
 reading the HTML version of the draft rather than the TXT version.
 
 I thus often need to manually rewrite the TXT link to fetch the HTML
 version of the draft. I can not believe I'm the only one.

Yup, you are not the only one -- this annoyed me sufficiently that I finally 
gave in and wrote a Chrome extension to do this for me.
Basically it watches the address bard and looks for www.ietf.org/id/foo and, 
depending on the setting in the options page, will redirect to the Tools or 
Datatracker.

So, if I follow a link like http://www.ietf.org/id/draft-ietf-idr-as0-03.txt 
the extension will notice and rewrite it to 
http://tools.ietf.org/html/draft-ietf-idr-as0-03 (or 
https://datatracker.ietf.org/doc/draft-ietf-idr-as0/ ).

This is my first extension/ javascript, and it's not particularity polished, 
etc but if folk are interested it is on the tools page ( http://tools.ietf.org/ 
) or, direct: 
https://chrome.google.com/webstore/detail/aiccdpabeagpjcebilebhlifplfkinao


Share and enjoy.
W

 
 Hence, would it be possible to also include a link like
 http://tools.ietf.org/html/draft-name in the mail of the announced
 draft?
 
 Cheers,
 Xavier
 ___
 Ietf mailing list
 Ietf@ietf.org
 https://www.ietf.org/mailman/listinfo/ietf
 

___
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf


Re: [IETF] Add a link to the HTML version in i-d-announce mails ?

2012-03-06 Thread Barry Leiba
 Yup, you are not the only one -- this annoyed me sufficiently that I finally 
 gave
 in and wrote a Chrome extension to do this for me.
 Basically it watches the address bard and looks for www.ietf.org/id/foo and,
 depending on the setting in the options page, will redirect to the Tools or 
 Datatracker.

Inspired by that, I wrote a completely trivial (one-line) Greasemonkey
script this afternoon, to do it for Firefox.  It's so short that I'll
just paste it below.  Works nicely.

Barry

--
// ==UserScript==
// @name   IETF draft html
// @namespace  ...whatever...
// @descriptionRedirect txt drafts to html
// @includehttp://www.ietf.org/id/*
// @includehttps://www.ietf.org/id/*
// ==/UserScript==

(function () {
window.location = new
String(window.location).replace(www.ietf.org/id,
tools.ietf.org/html).replace(.txt, );
})();
--
___
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf


Re: [IETF] Add a link to the HTML version in i-d-announce mails ?

2012-03-06 Thread Warren Kumari

On Mar 6, 2012, at 7:43 PM, Barry Leiba wrote:

 Yup, you are not the only one -- this annoyed me sufficiently that I finally 
 gave
 in and wrote a Chrome extension to do this for me.
 Basically it watches the address bard and looks for www.ietf.org/id/foo 
 and,
 depending on the setting in the options page, will redirect to the Tools or 
 Datatracker.
 
 Inspired by that, I wrote a completely trivial (one-line) Greasemonkey
 script this afternoon, to do it for Firefox.  It's so short that I'll
 just paste it below.  Works nicely.

Oooh, very cool….

W


 
 Barry
 
 --
 // ==UserScript==
 // @name   IETF draft html
 // @namespace  ...whatever...
 // @descriptionRedirect txt drafts to html
 // @includehttp://www.ietf.org/id/*
 // @includehttps://www.ietf.org/id/*
 // ==/UserScript==
 
 (function () {
window.location = new
 String(window.location).replace(www.ietf.org/id,
 tools.ietf.org/html).replace(.txt, );
 })();
 --
 

--
Don't be impressed with unintelligible stuff said condescendingly.
-- Radia Perlman.





___
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf