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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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=');
  }
});