One Man Left Studios Community Forums
Outwitters-OSN Redirection Utility [1.31] - Printable Version

+- One Man Left Studios Community Forums (http://www.onemanleft.com/forums)
+-- Forum: General (/forumdisplay.php?fid=1)
+--- Forum: Outwitters (/forumdisplay.php?fid=11)
+--- Thread: Outwitters-OSN Redirection Utility [1.31] (/showthread.php?tid=673)

Pages: 1 2 3


Outwitters-OSN Redirection Utility [1.31] - QuantumApocalypse - 10-01-2012 02:35 PM

Features:
  • Redirects "outwitters://" URLs to the Outwitters Sports Network
  • Automatically changes plain text "outwitters://" URLs into clickable links
  • Notifies of invalid replays
  • Corrects incorrect links

Installation:
Step 1
This script is based on Javascript, and as such you will need some add-on or tweak for your browser to run it. Firefox and Chrome both have mainstream add-ons available to execute this script, however, other browsers may require manual tweaks to enable use.
  • For Firefox - Greasemonkey:
    Get it now!
    Note: Greasemonkey needs to be switched on by pressing the button so the monkey is no longer faded.
  • For Chrome - Tampermonkey:
    Get it now!
  • For Safari (Mac) - Greasekit:
    Greasekit Installation Guide
    *Untested* I do not have access to a Mac, so I cannot confirm whether or not this add-on will successfully run the script.
Step 2
After installing one of the aforementioned utilities, or one that you found yourself, simply click on this link:
Outwitters-OSN Redirect
Visiting the page should trigger an installation prompt from your add-on. Allow an install, and you're ready! View the Compatible Links Gallery below to check that the script is functioning.

Note: You may need to restart your browser for changes to be applied

This script is only enabled for the onemanleft.com domain due to lack of activity elsewhere. You need to reload any current pages in order for this script to change them.


Compatible Links Gallery
Reformats and Corrects:
outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20Y1JOWAgw
outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20Y1JOWAgw
Harti! vs Riptor
http://outwitters//viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20YjfGFAgw
Notifies Invalid Links:
outwitters://viewgame?id=aag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20Y1JOWAgw
outwitters://viewgame?id=g5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20YjfGFAgw
outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20YjfGFAgw
outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20YjfGFAgw
outwitters://viewgame?id=1
http://outwitters//viewgame?id=asdf



Change Log:
Version 1.0 (1/10/2012)
-Script released

Version 1.01 (2/10/2012)
-Minor adjustments to reduce code

Version 1.1 (25/12/2012)
-Transforms plain text outwitters:// addresses into clickable links!
-Replaces labels of transformed text with "Outwitters Replay" (does not apply to existing links)
-TouchArcade.com domain removed

Version 1.11 (29/12/2012)
-Fixed replays of forum abbreviated links

Version 1.2 (25/1/2013)
-Notifies invalid replay links
-Faster linkification
-Quick edit menu is no longer hidden

Version 1.3 (26/1/2013)
-Properly identifies invalid linkified URLs
-Corrects incorrect links

Version 1.31 (27/1/2013)
-Fixed detection of invalid and corrected URLs



RE: Greasemonkey Script - open replay links quickly in your browser! - pookywb - 10-01-2012 02:56 PM

It changes the links. But then tells me the site is blacklisted by some sort of settings.


RE: Greasemonkey Script - open replay links quickly in your browser! - QuantumApocalypse - 10-01-2012 02:57 PM

(10-01-2012 02:56 PM)pookywb Wrote:  It changes the links. But then tells me the site is blacklisted by some sort of settings.

What browser are you using? And what program says it's blacklisted?

Works fine for me on Win 7, Firefox, Waterfox and Chrome...

Could you check that you can access the base site: http://osn.codepenguin.com/replays/
And then: http://osn.codepenguin.com/replays/view/ag5vdXR3aXR0ZXJzZ2FtZXIQCxIIR2FtZVJvb20Ymqx5DA


RE: Greasemonkey Script - open replay links quickly in your browser! - CombatEX - 10-01-2012 03:07 PM

Works perfectly! Thanks. This saves a ton of time =)


RE: Greasemonkey Script - open replay links quickly in your browser! - pookywb - 10-02-2012 04:08 AM

Well it's working just fine for me now. So yay! Big Grin

What was happening before was when I clicked on the link, the page would not load. Subsequently, clicking the Tampermonkey logo would display that message.


RE: Greasemonkey Script - open replay links quickly in your browser! - IronMagus - 10-02-2012 09:24 AM

Awesome, thanks! I was looking for something like this just the other day. I'm glad you know more about computers than I do, because I was just looking for something I could do from within Firefox, I had no idea about Greasemonkey.


RE: Greasemonkey Script - Updated! Linkify+redirect simultaneously! - QuantumApocalypse - 12-25-2012 08:54 PM

Updated to change plain text outwitters:// addresses into links as well as redirecting! No more unclickable links for replays!

Go here to install/update the script or check for updates in Tampermonkey or Greasemonkey to get the latest version.

Links like this:
outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20Y1JOWAgw

Will turn into this:
Outwitters Replay


RE: Outwitters-OSN Redirect Script - Updated! Linkify+redirect simultaneously! - GoHeat 3 - 12-26-2012 01:02 AM

Awesome! Thanks QuantumApocalypse!Smile


RE: Outwitters-OSN Redirect Script - Updated! Linkify+redirect simultaneously! - Gf!sh - 12-26-2012 01:05 AM

Orange understrike under blue text? Lolwut?


RE: Outwitters-OSN Redirect Script - Updated! Linkify+redirect simultaneously! - pookywb - 12-28-2012 05:25 PM

I think when people paste the hyperlink as the iPhone specific address without adding text to it, the script is bugged.

The forum abbreviates the hyperlink as something like "outwitters://viewgame?id=ag5vdXR3aXR0ZXJ...20Y9L2ZAgw" instead of "outwitters://viewgame?id=ag5vdXR3aXR0ZXJzZ2FtZXIRCxIIR2FtZVJvb20Y9L2ZAgw" (you'll have to view this without the script running)

The script then sees that text, converts it to an osn replay link, and we wind up with "http://osn.codepenguin.com/replays/view/ag5vdXR3aXR0ZXJ...20Y9L2ZAgw"


Am I making sense?