Newsgator Title Fix

By Gareth Andrew Last update Nov 20, 2006 — Installed 129 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0
// ==UserScript==
// @name          Newsgator Title Fix
// @namespace     http://freegarethandrew.org/projects/userScripts/
// @description   Adds the feed title to the page title
// @include       http://www.newsgator.*/ngs/subscriber/WebEd2.aspx?fid=*
// ==/UserScript==

var titleXPath = "//div[@id='FeedBanner']//*/a[@href]";
var titleString = document.evaluate(titleXPath,
                                 document, 
                                 null, 
                                 XPathResult.FIRST_ORDERED_NODE_TYPE, 
                                 null).singleNodeValue.innerHTML;

document.title = titleString + " - Newsgator Online";