Skip to main content
allow for https replacing `:` with `*` - hopefuly it will be good now
Source Link
cregox
  • 191
  • 1
  • 8

Here's a small and simpler updated fork. It adds only the timeline link:

// ==UserScript==
// @name          Stack Exchange Timeline Link
// @namespace     stackoverflow
// @description   Add a 'timeline' link to Stack Exchange / Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include       http:http*//*stackexchange.com/*
// @include       http:http*//*stackoverflow.com/*
// @include       http:http*//*serverfault.com/*
// @include       http:http*//*superuser.com/*
// @include       http:http*//*askubuntu.com/*
// @include       http:http*//*mathoverflow.net/*
// @include       http:http*//*onstartups.com/*
// @include       http:http*//*nothingtoinstall.com/*
// @include       http:http*//*seasonedadvice.com/*
// @include       http:http*//*stackapps.com/*
// @exclude       http:http*//chat*stackexchange.com/*
// @exclude       http:http*//chat*stackoverflow.com/*
// @exclude       http:http*//api*stackexchange.com/*
// @exclude       http:http*//data*stackexchange.com/*
// @exclude       */reputation
// @grant         none
// ==/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);
        });
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + start + ")();";
    document.body.appendChild(script);
})();

Here's a small and simpler updated fork. It adds only the timeline link:

// ==UserScript==
// @name          Stack Exchange Timeline Link
// @namespace     stackoverflow
// @description   Add a 'timeline' link to Stack Exchange / Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include       http://*stackexchange.com/*
// @include       http://*stackoverflow.com/*
// @include       http://*serverfault.com/*
// @include       http://*superuser.com/*
// @include       http://*askubuntu.com/*
// @include       http://*mathoverflow.net/*
// @include       http://*onstartups.com/*
// @include       http://*nothingtoinstall.com/*
// @include       http://*seasonedadvice.com/*
// @include       http://*stackapps.com/*
// @exclude       http://chat*stackexchange.com/*
// @exclude       http://chat*stackoverflow.com/*
// @exclude       http://api*stackexchange.com/*
// @exclude       http://data*stackexchange.com/*
// @exclude       */reputation
// @grant         none
// ==/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);
        });
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + start + ")();";
    document.body.appendChild(script);
})();

Here's a small and simpler updated fork. It adds only the timeline link:

// ==UserScript==
// @name          Stack Exchange Timeline Link
// @namespace     stackoverflow
// @description   Add a 'timeline' link to Stack Exchange / Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include       http*//*stackexchange.com/*
// @include       http*//*stackoverflow.com/*
// @include       http*//*serverfault.com/*
// @include       http*//*superuser.com/*
// @include       http*//*askubuntu.com/*
// @include       http*//*mathoverflow.net/*
// @include       http*//*onstartups.com/*
// @include       http*//*nothingtoinstall.com/*
// @include       http*//*seasonedadvice.com/*
// @include       http*//*stackapps.com/*
// @exclude       http*//chat*stackexchange.com/*
// @exclude       http*//chat*stackoverflow.com/*
// @exclude       http*//api*stackexchange.com/*
// @exclude       http*//data*stackexchange.com/*
// @exclude       */reputation
// @grant         none
// ==/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);
        });
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + start + ")();";
    document.body.appendChild(script);
})();
[Edit removed during grace period]
Source Link
cregox
  • 191
  • 1
  • 8
update sites supported and answers along with question timeline, thanks to @bwDraco
Source Link
cregox
  • 191
  • 1
  • 8

I've made a small updated fork (mirror), which is simplerHere's a small and simpler updated fork. 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          Stack StackExchangeExchange Timeline LinksLink
// @namespace      stackoverflow
// @description    Add a timeline'timeline' link to current questionStack inExchange the/ Stack ExchangeOverflow Networkposts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include       http://*stackexchange.com/*
// @include       http://meta*stackoverflow.stackoverflowcom/*
// @include       http://*serverfault.com/*
// @include       http://*superuser.com/*
// @include       http://stackoverflow*askubuntu.com/*
// @include       http://*mathoverflow.net/*
// @include       http://superuser*onstartups.com/*
// @include       http://*nothingtoinstall.com/*
// @include       http://serverfault*seasonedadvice.com/*
// @include       http://*stackapps.com/*
// @exclude       http://chat*stackexchange.com/*
// @exclude       http://chat*stackoverflow.stackexchangecom/*
// @exclude       http://api*stackexchange.com/*
// @exclude       http://data*stackexchange.com/*
// @exclude       */reputation
// @grant         none
// ==/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);
})();

I've made a small updated fork (mirror), 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);
})();

Here's a small and simpler updated fork. It adds only the timeline link:

// ==UserScript==
// @name          Stack Exchange Timeline Link
// @namespace     stackoverflow
// @description   Add a 'timeline' link to Stack Exchange / Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include       http://*stackexchange.com/*
// @include       http://*stackoverflow.com/*
// @include       http://*serverfault.com/*
// @include       http://*superuser.com/*
// @include       http://*askubuntu.com/*
// @include       http://*mathoverflow.net/*
// @include       http://*onstartups.com/*
// @include       http://*nothingtoinstall.com/*
// @include       http://*seasonedadvice.com/*
// @include       http://*stackapps.com/*
// @exclude       http://chat*stackexchange.com/*
// @exclude       http://chat*stackoverflow.com/*
// @exclude       http://api*stackexchange.com/*
// @exclude       http://data*stackexchange.com/*
// @exclude       */reputation
// @grant         none
// ==/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);
        });
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + start + ")();";
    document.body.appendChild(script);
})();
update URL, thanks to edit suggestion from @Tshepang
Source Link
cregox
  • 191
  • 1
  • 8
Loading
fix small bug
Source Link
cregox
  • 191
  • 1
  • 8
Loading
add code in here too
Source Link
cregox
  • 191
  • 1
  • 8
Loading
Source Link
cregox
  • 191
  • 1
  • 8
Loading