FlyerTalk Forums - View Single Post - Encounters with the post-transition web site: Tips to boost survival odds
Old May 26, 2011 | 3:04 pm
  #8  
ftnoob
Moderator, Southwest Airlines and Choice Privileges
All eyes on you!
15 Years on Site
 
Join Date: Mar 2008
Location: Central Texas
Posts: 3,112
Do you miss the time stamp on the OLCI "too soon" error? Do you find the huge Oops graphic and two paragraphs of error message text more than a bit over-the-top in that situation?

Below is a simple user script to change the too early page to look like this:


The input fields were edited, without resubmitting the form, after the improved form was displayed. The script does nothing if the error message doesn't contain the phrase 'more than 24 hours.' The time stamp is the web server time, which at one time was known to vary from the time on the back end servers.

Here is the GreaseMonkey user script:
Code:
// ==UserScript==
// @name           SWA OLCI Too Early Fixer
// @author         wnProTips
// @namespace      http://www.flyertalk.com/forum/members/ftnoob.html
// @description    Replaces two paragraphs of explanation with less obtrusive message, and adds Time Stamp.
// @license        Creative Commons Attribution License
// @version	   Beta 0.1
// @released       2011-05-26
// @updated         
// @include        http://www.southwest.com/flight/retrieveCheckinDoc.html*
// ==/UserScript==


(function() {
  var d = document.getElementById('submitButton').parentNode.parentNode, e=document.getElementById('errors');
  if(e.innerHTML.indexOf('more than 24 hours')>-1){
    e.parentNode.style.display='none';
    d.innerHTML='<p class=required>Too soon: '+document.lastModified +'</p>'+d.innerHTML;
  }
}()
)
ftnoob is offline