FC2

FC2fuzhu

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         FC2
// @namespace    http://tampermonkey.net/
// @version      2024-02-22
// @description  FC2fuzhu
// @author       You
// @match        https://adult.contents.fc2.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=fc2.com
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    //JS 取右字符函数
    function jsright(obj,str){
        var index = obj.indexOf(str);
        obj = obj.substring(index + 1,obj.length);
        return obj;
    }
    var i,urlstr,str,addstr;
    var getclass=jQuery('.c-cntCard-110-f_thumb a');
    for(i=0;i<getclass.length;i++)
    {
        console.log(i);
        urlstr=getclass[i].href;
        console.log(urlstr);
        str =jsright(urlstr, '=');
        console.log(str);
        jQuery('.c-cntCard-110-f_price')[i].innerHTML= jQuery('.c-cntCard-110-f_price')[i].innerHTML+' <a href="https://btsow.motorcycles/search/'+str+'" target="_blank">search</a>'
        ;

    }
})();