Sleazy Fork is available in English.

为Javlibrary添加跳转到thisav,thisjav,javbus的搜索结果跳转链接

search videos through javlibrary

您查看的为 2019-02-10 提交的版本。查看 最新版本

// ==UserScript==
// @name        为Javlibrary添加跳转到thisav,thisjav,javbus的搜索结果跳转链接
// @namespace    video_search_through_javlibrary
// @version      0.1
// @description  search videos through javlibrary
// @author       frost
// @match        *://www.javlibrary.com/*/?v=*
// @include      /^http:\/\/www.\w\d{2}\w.com\/\w{2}/\?v=\w{2,}/
// @grant        none
// ==/UserScript==

(function () {
    
    //get keywords
    var meta = document.getElementsByTagName('meta').keywords.content;
    var arr = meta.split(",");
    var javNo = arr[0];

    //edit links
    var thisav = "https://www.thisav.com/channel/" + javNo;
    var thisjav = "http://www.thisjav.com/zh-hant/results/?q=" + javNo;
    var javbus = "https://www.javbus.com/" + javNo;
	
    //add links on page
    var element=document.getElementById("video_favorite_edit");
    var childNode1 = document.createElement("a");
    childNode1.setAttribute("href",thisav);
    childNode1.textContent = "     thisav";
    element.appendChild(childNode1);
    var childNode2 = document.createElement("a");
    childNode2.setAttribute("href",thisjav);
    childNode2.textContent = "     thisjav";
    element.appendChild(childNode2);
    var childNode3 = document.createElement("a");
    childNode3.setAttribute("href",javbus);
    childNode3.textContent = "     javbus";
    element.appendChild(childNode3);
})();