思 古 解 析 z y f

跳转到思 古 解 析

目前为 2020-04-19 提交的版本。查看 最新版本

// ==UserScript==
// @name         思 古 解 析 z y f
// @namespace    http://tampermonkey.net/
// @version      0.11
// @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="https://api.sigujx.com/?url=&url=";
    var realLink=location.href;
    var targetLink=searchPrefix+(realLink);
    var block;
    if(location.host==='www.iqiyi.com'){
		block=document.querySelector('.title-txt');
	}
    if(location.host==='v.youku.com'){
		block=document.querySelector('.play-fn');
	}
    if(location.host==='v.qq.com'){
		block=document.querySelector('.player_title');
	}
	var mamaLink=document.createElement('a');
	mamaLink.href=targetLink;
	mamaLink.innerText='    go to 思古解析';
	block.appendChild(mamaLink);
}

run();