FC2PPV.live

FC2PPV.live图片修改

Verze ze dne 10. 06. 2024. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         FC2PPV.live
// @namespace    http://tampermonkey.net/
// @version      2024-06-10
// @description  FC2PPV.live图片修改
// @author       You
// @match        https://www.fc2ppv.live/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=fc2ppv.live
// @require      http://libs.baidu.com/jquery/1.2.3/jquery.min.js
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {

    function jsleft(obj, str) {
        var index = obj.indexOf(str);
        obj = obj.substring(0, index);
        return obj;
    }

    //JS 取右字符函数
    function jsright(obj,str){
        var index = obj.indexOf(str);
        obj = obj.substring(index + 1,obj.length);
        return obj;
    }

    function jsmid(str,b,a){
        var bds=b+'(\\S*)'+a;
        return str.match(bds)[1];
    }

    var i;
    var urls =jQuery('a img');
    for (i = 0; i < urls.length; i++) {
        var url = urls[i].src;
        url=jsright(url, '&file=');
        console.log(url);
        url=url.replace( 'file=','');
        console.log(url);
        jQuery('a img')[i].src=url;
    }
})();