[Hadzy] Youtube Comment Analytics

Hadzy - The best youtube comment picker and great tool to search for all comments, open it with 'Activate' menu button

目前为 2019-12-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         [Hadzy] Youtube Comment Analytics
// @namespace    https://gf.qytechs.cn/en/users/10118-drhouse
// @version      1.0
// @description  Hadzy - The best youtube comment picker and great tool to search for all comments, open it with 'Activate' menu button
// @include      https://www.youtube.com/watch?*
// @include      https://hadzy.com/analytics/youtube/
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require      https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_registerMenuCommand
// @author       drhouse
// @icon         https://www.google.com/s2/favicons?domain=youtube.com
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);

(function($){

    GM_registerMenuCommand("Activate", function(){
        if (location !== "https://hadzy.com/analytics/youtube/"){
            var here = window.location.href;
            GM_setValue("ytube", here);
            window.location.href = 'https://hadzy.com/analytics/youtube/';
        }
    }, "A");


    if (window.location.href === 'https://hadzy.com/analytics/youtube/'){
        var storedObject = GM_getValue("ytube");
        var target1 = $('body > div.page-wrapper > div > div > form > div > input');
        var target2 = $('.btn__search');
        var target3 = $('.btn__start');
        var target4 = $('#body > div.page-wrapper > div > div > div.modal-wrapper.modal--is-visible > div.modal.modal__video > section > div > div.btn-wrapper > button');
        $(target1).val(storedObject);
        $(target2).click();

        setTimeout(function(){
            $(target3).click();
        }, 1000);
    }

})(jQuery);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址