Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Screenshot / Code Snippet

Partial screenshot of additions

About

Add revision links, and timeline links on all questions post menus.
Intended for development features, probably useless when the feature is actually implemented.

License

probably CC-BY-SA

Download

http://userscripts.org/scripts/show/97069

Platform

Tested only on Firefox 3.6, Google Chrome 10 dev, Opera 11
(Linux versions)

Contact

S.Mark - mark at my-mm dot org

Code

Userscript (javascript) using existing Stack Overflow jQuery

source - http://userscripts.org/scripts/review/97069

share|improve this question
    
Note: if you have SEModifications installed, this userscript isn't needed. –  nyuszika7h Feb 25 '11 at 21:31
    
Hey @Mark, FYI possible bug. –  Lazer Mar 5 '11 at 8:21
1  
Thanks @Lazer, I have updated my script, please install it again. (I have moved timeline link to another line.) –  YOU Mar 5 '11 at 9:12
    
nice one! but now superseded by SEModifications which adds further features –  Tobias Kienzler Sep 17 '11 at 10:51
1  
If you're still maintaining this, I'd suggest changing the ID detection to something like id=$(this).find('a[class="short-link"]').attr("href").replace(/\/[aq]\//, "").replace(/\/\d+/, "");. That way it works on sites where you don't have an account or aren't logged in. –  mmyers Apr 2 '13 at 16:02
add comment

1 Answer

I've made a small updated fork, which is simpler. It adds only the timeline link. And it works today. And I will most likely maintain it (while I use any SEN site):

// ==UserScript==
// @name           StackExchange Timeline Links
// @namespace      stackoverflow
// @description    Add a timeline link to current question in the Stack Exchange Network
// @include        http://meta.stackoverflow.com/*
// @include        http://stackoverflow.com/*
// @include        http://superuser.com/*
// @include        http://serverfault.com/*
// @include        http://*.stackexchange.com/*
// @exclude        */reputation
// ==/UserScript==

(function(){
    var start=function(){
        $(".post-menu").each(function(){
            id = $(this).find("a.short-link")[0].href.replace(/^.*\/a\//, "").replace(/\/\d+(?:#.*)?$/, "").replace(/\D+/, "");
            rlink = $("<span class='lsep'>|</span><a href='/posts/"+id+"/timeline'>timeline</a>");
            $(this).append(rlink);
            return false;
        });
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + start + ")();";
    document.body.appendChild(script);
})();
share|improve this answer
    
nifty, thanks... –  Tshepang Oct 9 '13 at 20:31
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .