Redirect book title links in DeVry's Books24x7 RSS feeds

The book title links in the RSS feeds don't work anymore -- this will redirect them so they do.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Redirect book title links in DeVry's Books24x7 RSS feeds
// @namespace   https://greasyfork.org/users/130-joshg253
// @description The book title links in the RSS feeds don't work anymore -- this will redirect them so they do.
// @include     http://*.*
// @include     https://*.*
// @exclude     http://devry.skillport.com/*
// @exclude     https://devry.skillport.com/*
// @version     1a
// @grant       none
// ==/UserScript==

document.body.addEventListener('click', function (e) {
  var targ = e.target || e.srcElement;
  if (targ && targ.href && targ.href.match('https?://devry.skillport.com')) {
    targ.href = targ.href.replace('https://devry.skillport.com/skillportfe/main.action?assetid=$%7BBookID%7D', 'http://skillport.books24x7.com/toc.aspx?bkid=');
  }
});