您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Comentarios
当前为
- // ==UserScript==
- // @name Bot
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Comentarios
- // @author Hhaz
- // @match http*://www.voxed.net/*
- // ==/UserScript==
- $('html').prepend('<style>#bot {cursor: pointer;font-size: 0.85em;}</style>');
- $('.comments-box .anon').prepend('<button id="bot" class="button">Bot</button>');
- $(document).ready(function(){
- $("#bot").click(function(){
- /*var answers = [
- "Hey",
- "Howdy",
- "Hello There",
- "Wotcha",
- "Alright gov'nor"
- ];
- var randomAnswer = answers[Math.floor(Math.random() * answers.length)];*/
- var text = prompt("El texto que querés comentar:");
- var time = prompt("Segundos:");
- setInterval(function() {
- var elements = document.getElementsByClassName("show-for-small-only");
- elements = Array.prototype.slice.call(elements);
- if(!elements.length);
- elements.forEach(function(btn) {
- $('#content').val(text); //randomAnswer si quiero con Arrays
- //$('#content').val('Hola, soy hermoso.');
- btn.click();
- });
- }, time+'000');
- });
- });