main
side
curve
  1. In Memory of LAJ_FETT: Please share your remembrances and condolences HERE

Resource [Firefox Add-On] Redirecting IGN links to XenForo

Discussion in 'Fan Fiction and Writing Resource' started by lazykbys_left, Jan 2, 2013.

Thread Status:
Not open for further replies.
  1. lazykbys_left

    lazykbys_left Jedi Padawan star 4

    Registered:
    Feb 17, 2005
    Short story: I got tired of changing IGN URLs to XenForo each time I clicked on a pre-Move link, so I googled and voila! The Maker (i.e., Einar Egilsson) be praised!

    Please note that this works only on Firefox. There may be similar extensions for other browsers - in fact, I'm sure there are. Feel free to google for them [face_lazy]

    BTW, IGN URLs look like these:
    http://boards.theforce.net/fan_fiction_resource/b10304/23543413/?1138
    http://boards.theforce.net/anywhere/b42/27095403/p4
    http://boards.theforce.net/a/b1/5216694/r5676195

    http://boards.theforce.net/message.asp?topic=8042800
    http://boards.theforce.net/ASP/Message.aspx?topic=10587852&replies=27
    . . . and so on.


    Instructions


    1. Download the add-on

    The Redirector add-on can be found here:
    https://addons.mozilla.org/en-us/firefox/addon/redirector/

    Click the button that says Add to Firefox to download. However, please keep in mind that not all add-ons are safe. Implement at your own risk and responsibility.

    Once the add-on has finished downloading, you will need to reboot Firefox to activate it.


    2. Create a file for import settings

    Copy and paste the contents of the following box into Notepad or some other text editor and save as jc_redirects.rjson or something. The name doesn't matter, but the file extension does.

    Code:
    
    {
        "createdBy": "Redirector v2.7.1",
        "createdAt": "2013-01-02T11:32:18.267Z",
        "redirects": [
            {
                "exampleUrl": "http://boards.theforce.net/fan_fiction_resource/b10304/25809540/p12/?436",
                "includePattern": "http://boards.theforce.net/[^/]+/b[0-9]+/([0-9]+)/p([0-9]+).*",
                "excludePattern": "",
                "redirectUrl": "http://boards.theforce.net/threads/$1/page-$2",
                "patternType": "R",
                "disabled": false
            },
            {
                "exampleUrl": "http://boards.theforce.net/comms/b10006/34875894/r34878453/?33",
                "includePattern": "http://boards.theforce.net/[^/]+/b[0-9]+/[0-9]+/r([0-9]+).*",
                "excludePattern": "",
                "redirectUrl": "http://boards.theforce.net/posts/$1/",
                "patternType": "R",
                "disabled": false
            },
            {
                "exampleUrl": "http://boards.theforce.net/fan_fiction_resource/b10304/25809540/?4",
                "includePattern": "http://boards.theforce.net/[^/]+/b[0-9]+/([0-9]+).*",
                "excludePattern": "http://boards.theforce.net/[^/]+/b[0-9]+/([0-9]+)/(r|p)([0-9]+).*",
                "redirectUrl": "http://boards.theforce.net/threads/$1/",
                "patternType": "R",
                "disabled": false
            },
            {
                "exampleUrl": "http://boards.theforce.net/ASP/Message.aspx?topic=65535",
                "includePattern": "http://boards.theforce.net/.*?topic=([0-9]+).*",
                "excludePattern": "http://boards.theforce.net/.*?topic=[0-9]+&(page|start)=[0-9]+.*",
                "redirectUrl": "http://boards.theforce.net/threads/$1/",
                "patternType": "R",
                "disabled": false
            },
            {
                "exampleUrl": "http://boards.theforce.net/ASP/Message.aspx?topic=65535&page=13",
                "includePattern": "http://boards.theforce.net/.*?topic=([0-9]+)&page=([0-9]+).*",
                "excludePattern": "",
                "redirectUrl": "http://boards.theforce.net/threads/$1/page-$2",
                "patternType": "R",
                "disabled": false
            },
            {
                "exampleUrl": "http://boards.theforce.net/ASP/Message.aspx?topic=65535&start=77777",
                "includePattern": "http://boards.theforce.net/.*?topic=[0-9]+&start=([0-9]+)",
                "excludePattern": "",
                "redirectUrl": "http://boards.theforce.net/posts/$1/",
                "patternType": "R",
                "disabled": false
            }
        ]
    }
    
    

    3. Open the Redirector Extension Settings page

    Click on Tools > Add-ons from your menu to open the add-on manager.

    Find Redirector from the list and click the button that says settings - I think. Sorry, but my Firefox is set to Japanese and I haven't been able to figure out how to set it to English. A new tab should open with the title "Redirector Extension Settings".


    4. Import the settings file

    Click on the button that says Import, then find the file you saved in Step 2. It should say something along the lines of "6 redirects were imported".


    5. Tell me if it doesn't work

    I hope I made the instructions clear, but explaining stuff just ain't my fore-tay, if you get my drift. Please leave a comment in this thread if you can't get it to work properly.
     
Thread Status:
Not open for further replies.