// ==UserScript==
// @name        website-auto-redirect
// @description auto redirect to article
// @include     http://next.36kr.com/posts/*
// @include     http://toutiao.io/posts/*
// @include     http://wanqu.co/*
// @exclude     http://wanqu.co/blog/*
// @downloadURL https://raw.githubusercontent.com/goorockey/greasemonkey-scripts/master/website-auto-redirect.user.js
// @updateURL   https://raw.githubusercontent.com/goorockey/greasemonkey-scripts/master/website-auto-redirect.user.js
// @version     1.0
// @grant       none
// author       kelvingu616@gmail.com
// github       github.com/goorockey
// ==/UserScript==

var website_target = {
  'wanqu.co': '//a[@rel="external"]/@href',
  'next.36kr.com': '//a[@class="post-url"]/@href',
  'toutiao.io': '//h3[@class="title"]/a[1]/@href'
};

function getUrlByXpath(path) {
  return document.evaluate(path, document, null, XPathResult.STRING_TYPE, null).stringValue;
}

var xpath = website_target[location.host];
if (!xpath) {
  return;
}

var url = getUrlByXpath(xpath);
if (url) {
  window.location.replace(url);
}

@@ -250,16 +250,63 @@
 /blog/*%0A
+// @include     http://v.opahnet.com/*/v*.html%0A
 // @down
@@ -411,24 +411,24 @@
 ect.user.js%0A
-
 // @updateUR
@@ -555,9 +555,9 @@
   1.
-0
+1
 %0A// 
@@ -787,16 +787,16 @@
 @href',%0A
-
   'touti
@@ -836,16 +836,68 @@
 %5D/@href'
+,%0A  'v.opahnet.com': '//a%5B@class=%22play_btn%22%5D/@href',
 %0A%7D;%0A%0Afun

add auto redirect for hupu video