Possible Duplicate:
View Source link on all questions
I asked the following question on ServerFault:
Scott's answer describes a couple of xml tags that I can modify, but because he didn't use the back-tick to escape them they're hidden from view.
Because I don't have edit rights I can't open the source easily (no Edit link) to see if this indeed what was missing. After fiddling around looking around for another post that had revisions (to see how the revision list url was composed) I was eventually able to see the revision history for Scott's answer and then get at the raw markdown text via View Source
:
It would be nice to either provide a link that shows the revision history for questions and answers regardless of whether they had revisions or not, or, provide a View Source
link to allow us to see the raw Markdown on the revision of the post being rendered.
This would be a nice time saver because the /posts/nnnnn/revisions
link doesn't immediately commit itself in memory if used infrequently.
-
Where did that 'can' go when I wrote this :)Kev– Kev03/06/2010 15:52:54Commented Mar 6, 2010 at 15:52
-
+1 At first I thought, just flag it for the moderator, but why should you have to wait? It's already there.user141160– user14116003/06/2010 16:35:02Commented Mar 6, 2010 at 16:35
-
duplicate meta.stackexchange.com/questions/24400/…Lesmana– Lesmana08/16/2010 20:34:35Commented Aug 16, 2010 at 20:34
-
@lesmana - yep you're right, well spotted because the search didn't come up with that one when I asked.Kev– Kev08/18/2010 00:05:45Commented Aug 18, 2010 at 0:05
1 Answer 1
GreaseMonkey Script
alt text http://img704.imageshack.us/img704/1535/revisionspostmenu.png
Edit: Added links to each revision (need to reinstall to take effect)
alt text http://img691.imageshack.us/img691/8414/linkinrevisions.png
-
this needs another glyph. ;)03/06/2010 17:09:28Commented Mar 6, 2010 at 17:09
-
1hmm. also, it adds it to the post menu of the answer (which is ok, since answers have revisions too) but gives the URL of the question post (which is not, since answers have revisions too). in the case of this answer, the revisions URL should not be meta.stackoverflow.com/posts/41391/revisions but meta.stackoverflow.com/posts/41406/revisions03/06/2010 17:12:44Commented Mar 6, 2010 at 17:12
-
1Should this work in Chrome 4.0 stable (blog.chromium.org/2010/02/40000-more-extensions.html)? I see that it got added in the extensions manager but it doesn't add the revisions link.Kev– Kev03/06/2010 17:24:32Commented Mar 6, 2010 at 17:24
-
Same experience as Kev, using the tip of Chrome beta.user50049– user5004903/06/2010 17:34:50Commented Mar 6, 2010 at 17:34
-
I havn't done greasemonkey on Chrome before, but I will try to figure out.YOU– YOU03/06/2010 17:37:56Commented Mar 6, 2010 at 17:37
-
@S.Mark - your timeline GM script puts an anchor with a triangle next to each question title but no link at all for answers. Chrome's GM support not as good as expected? DOM differences?Kev– Kev03/06/2010 17:39:15Commented Mar 6, 2010 at 17:39
-
1@Kev, timeline functions don't have seperate function for answers I think, timeline page combine all the activities on both questions and answers.YOU– YOU03/06/2010 17:41:23Commented Mar 6, 2010 at 17:41
-
@~quack, revisions link for answers are fixed, userscripts.org/scripts/show/70690 , for Chrome, I need to learn how Chrome's greasemonkey is different from Firefox greasemonkeyYOU– YOU03/06/2010 17:48:00Commented Mar 6, 2010 at 17:48
-
-
@S.Mark - ok me being thick and realised 'triangle' is delta. :)Kev– Kev03/06/2010 18:00:52Commented Mar 6, 2010 at 18:00
-
@S.Mark - works ok. the if clause strikes me as wonky; i think this is cleaner for getting the post id:
id = $(this).find("a[id^=flag-post-]").attr("id").replace("flag-post-", "");
03/06/2010 18:14:51Commented Mar 6, 2010 at 18:14 -
Ah, thanks @~quack, I just updated to very similar one,
$(this).find('a[id][id^="flag-post-"]').attr("id").match(/\d+/)[0];
, but yours looks better. I am going to use itYOU– YOU03/06/2010 18:23:44Commented Mar 6, 2010 at 18:23 -
@S.Mark - should this work in Chrome now?Kev– Kev03/06/2010 18:35:40Commented Mar 6, 2010 at 18:35
-
@Kev, still can't figure out, I'm looking into some other scripts.YOU– YOU03/06/2010 18:47:22Commented Mar 6, 2010 at 18:47
-
@Kev, I can now run in Chrome too (revision script), updated, userscripts.org/scripts/show/70690 - if you installed once, may be you need to uninstall first.YOU– YOU03/06/2010 20:22:02Commented Mar 6, 2010 at 20:22
Explore related questions
See similar questions with these tags.