思 古 解 析 z y f

跳转到思 古 解 析

目前為 2020-04-21 提交的版本,檢視 最新版本

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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();