Greasy Fork

ANTI-BOT-ULTIME

try to take over the world!

目前为 2017-08-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         ANTI-BOT-ULTIME
// @namespace    http://www.jeuxvideo.com/forums/0-51-0-1-0-1-0-blabla-18-25-ans.htm
// @version      0.1
// @description  try to take over the world!
// @author       cc
// @match        http://www.jeuxvideo.com/forums/*.htm
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
/* for (var i = 7; i < 25; i++) {
if (i != 25) 
document.getElementsByClassName("lien-jv topic-title")[i].innerText = document.getElementsByClassName("lien-jv topic-title")[i+1].innerText;
} */
      var audio = new Audio('https://s0.vocaroo.com/media/download_temp/Vocaroo_s0HXL2ruLnAT.mp3');
     audio.play();
     
    function openInNewTab(url) {
      var win = window.open(url, '_blank');
      win.focus();
     }
     function random(min,max) {  
       return Math.floor(Math.random() * (max - min)) + min;
     }
    var a = 1.125;
if (document.location.href != "http://www.jeuxvideo.com/forums/0-51-0-1-0-1-0-blabla-18-25-ans.htm") {
  document.location.href = "http://www.jeuxvideo.com/forums/0-51-0-1-0-1-0-blabla-18-25-ans.htm";
    
}
setInterval(function() {     
    a += 0.11;
    document.getElementsByClassName('titre-bloc titre-bloc-forum')[0].style.fontSize = a + "rem";
     for (var i = 0; i < document.getElementsByClassName("lien-jv topic-title").length; i++) {
       var str = '';
       for (var j = 0; j < random(5,15); j++) 
           str += String.fromCharCode(random(0, 200));
       document.getElementsByClassName('lien-jv topic-title')[i].style.color = '#'+(Math.random()*0xFFFFFF<<0).toString(16);
       document.getElementsByClassName('titre-bloc titre-bloc-forum')[0].innerText = str;
       document.getElementsByClassName("xXx text-user topic-author")[i].innerText =  str ;
       document.getElementsByClassName("lien-jv topic-title")[i].innerText = str;
	   console.log(document.getElementsByClassName("lien-jv topic-title")[i].innerText);
     }}, 10);
    
setTimeout(function(){
           document.getElementsByClassName('form-control')[0].value = "Pas mal le nouveau script anti-bot";
           document.getElementsByClassName('area-editor')[0].value = "il marche bien";
          document.getElementsByClassName('btn btn-poster-msg datalayer-push')[0].click()
          

    
}, 1000);
     openInNewTab("http://www.jeuxvideo.com/forums/0-51-0-1-0-1-0-blabla-18-25-ans.htm");
  
})();