您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hadzy - The best youtube comment picker and great tool to search for all comments, open it with 'Activate' menu button
当前为
- // ==UserScript==
- // @name [Hadzy] Youtube Comment Analytics
- // @namespace https://greasyfork.org/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);