跳转到思 古 解 析
目前為
// ==UserScript==
// @name 思 古 解 析 z y f
// @namespace http://tampermonkey.net/
// @version 0.13
// @description 跳转到思 古 解 析
// @author hahahaha
// @include http*://www.iqiyi.com/*
// @include http*://v.youku.com/*
// @include http*://v.qq.com/*
// @grant none
// ==/UserScript==
function run(){
var searchPrefix="";
var block;
if(location.host==='www.iqiyi.com'){
block=document.querySelector('.header-link');
searchPrefix="https://api.sigujx.com/?url=&url=";
}
if(location.host==='v.youku.com'){
block=document.querySelector('.thesis-wrap');
searchPrefix="https://api.sigujx.com/?url=&url=";
}
if(location.host==='v.qq.com'){
block=document.querySelector('.player_title');
searchPrefix="https://jx.lache.me/cc/?url=&url=";
}
var realLink=location.href;
var targetLink=searchPrefix+(realLink);
var mamaLink=document.createElement('a');
mamaLink.href=targetLink;
mamaLink.innerText=' go to 思古解析';
block.appendChild(mamaLink);
}
run();