bonsaibudget.com Customizable projects for smaller budgets

25Feb/11

SCP Foundation: Add names to details pages

SCP-Banner

SCP Foundation: Add names to details pages

Adds the descriptive names from the SCP series index page to the individual detail pages.

Updated 11/21/2011: Now with Next and Previous buttons so you can navigate without going back to the index!

Current Version (2.1)

Older versions

2 thoughts on “SCP Foundation: Add names to details pages

  1. Hurtz says:

    Hello,

    Nice little script here, but there is one small bug when navigating the site through the recent posts link.

    E.g. if the URL looks like this: http://www.scp-wiki.net/scp-076/comments/show

    I’ve modified your padnumberwithzeros function like so:

    function padnumberwithzeros(number, length) {
    var str = ” + number;
    var slashIdx = str.indexOf(“/”);
    if (slashIdx > 0)
    str = str.substring(0, slashIdx);

    while (str.length < length) {
    str = '0' + str;
    }
    return str;
    }

    1. Kathy says:

      Excellent catch! I’ll make sure to update the code on UserScripts.org soon!

Leave a Reply