Report fb

Script report facebook lũ vô văn hoá chửi team bạn

Versión del día 31/01/2018. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         Report fb
// @namespace    https://greasyfork.org/scripts/37908-report-fb/code/Report%20fb.user.js
// @version      1.0.6
// @description  Script report facebook lũ vô văn hoá chửi team bạn
// @author       You
// @match        *://*.facebook.com/BanHoiVozerTraLoi*
// @match        *://*.facebook.com/beatvn.page*
// @match        *://*.facebook.com/beatvn.troll*
// @match        *://*.facebook.com/zoom.beatvn*
// @match        *://*.facebook.com/beatvn.quotes*
// @match        *://*.facebook.com/beatvn.world*
// @match        *://*.facebook.com/tu4nsaker*
// @match        *://*.facebook.com/groups/phongthutoibeatvn*
// @match        *://*.facebook.com/groups/kysuduongpho*
// @match        *://*.facebook.com/groups/780485565464752*
// @match        *://*.facebook.com/groups/phongtrutgianbeatvn*
// @match        *://*.facebook.com/groups/tuyettinhcocbeatvn*
// @match        *://*.facebook.com/groups/BEATGAMER*
// @match        *://*.facebook.com/pg/BanHoiVozerTraLoi*
// @match        *://*.facebook.com/groups/370023386751036*
// @match        *://apps.facebook.com/beat_vn*
// @match        *://*.facebook.com/BeatVN.sport*
// @run-at       document-start
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @require      https://greasyfork.org/scripts/37907-arrive-js/code/arrivejs.js?version=246397
// @grant        none
// ==/UserScript==

var MIN = 15; // số phút tối thiểu để auto rp
var MAX = 30; // số phút tối đa auto rp
var RANDOM_THOI_GIAN_CLICK = true; //giả lập click giống con người bằng cách random thời gian click

function randomize(a,b) {
    if (RANDOM_THOI_GIAN_CLICK === false) {return 0;}
    return Math.floor(Math.random() * (b-a)) + a;
}
var intv;
var intv2;
//reports personal accounts
if(/tu4nsaker/i.test(window.location.href)){
    console.log('ok');
    $(document).arrive('._1yzl', function(){
        setTimeout(function() {
            intv = setInterval(function(){$('._1yzl').click();},1000);
            $(document).unbindArrive('._1yzl');
        },randomize(200,1100));
    });
    $(document).arrive('._54nc[href^="/ajax/nfx/start_dialog?story_location=profile_someone_else&reportable"] ._54nh', function(){
        clearInterval(intv);
        setTimeout(function() {
            $('._54nc[href^="/ajax/nfx/start_dialog?story_location=profile_someone_else&reportable"] ._54nh').click();
            $(document).unbindArrive('._54nc[href^="/ajax/nfx/start_dialog?story_location=profile_someone_else&reportable"] ._54nh');
        },randomize(1200,2100));
    });
    $(document).arrive('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span').click();
            setTimeout(function() {
                $('._42ft._4jy0.layerConfirm').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span');
        },randomize(1200,2100));
    });

    $(document).arrive('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span').click();
            setTimeout(function() {
                $('._42ft._4jy0.layerConfirm').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span');
        },randomize(1200,2100));
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        setTimeout(function() {
            intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},1000);
            setTimeout(function(){clearInterval(intv2);},2100);
            $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
        },randomize(200,1100));
    });
}
//reports groups
if(/370023386751036|phongthutoibeatvn|kysuduongpho|780485565464752|phongtrutgianbeatvn|tuyettinhcocbeatvn|BEATGAMER/i.test(window.location.href)){
    console.log('ok 2');
    $(document).arrive('#pagelet_group_actions i', function(){
        setTimeout(function() {
            intv = setInterval(function(){$('#pagelet_group_actions i').click();},1000);
            $(document).unbindArrive('#pagelet_group_actions i');
        },randomize(200,1100));
    });

    $(document).arrive('._54nc[href^="/ajax/report.php"] span', function(){
        clearInterval(intv);
        setTimeout(function() {
            $('._54nc[href^="/ajax/report.php"] span').click();
            $(document).unbindArrive('._54nc[href^="/ajax/report.php"] span');
        },randomize(1200,2100));
    });
    $(document).arrive('#nfxQuestionNamedhate span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedhate span').click();
            setTimeout(function() {
                $('#nfx_dialog_continue').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedhate span');
        },randomize(1200,2100));
    });
    $(document).arrive('#nfxQuestionNamedrace span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedrace span').click();
            setTimeout(function() {
                $('#nfx_dialog_continue').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedrace span');
        },randomize(1200,2100));
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        setTimeout(function() {
            intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},1000);
            setTimeout(function(){clearInterval(intv2);},2100);
        },randomize(200,1100));
    });
}
//reports pages
if(/beatvn\.world|zoom\.beatvn|beatvn\.quotes|BanHoiVozerTraLoi|beatvn\.troll|beatvn.page|beatvn.sport/i.test(window.location.href)){
    console.log('ok 3');
    $(document).arrive('._p._4jy0._4jy4', function(){
        setTimeout(function() {
            intv = setInterval(function(){$('._p._4jy0._4jy4').click();},1000);
            $(document).unbindArrive('._p._4jy0._4jy4');
        },randomize(200,1100));
    });

    $(document).arrive('.uiContextualLayer ul li a[href*="report"] ._54nh', function(){
        clearInterval(intv);
        setTimeout(function() {
            $('.uiContextualLayer ul li a[href*="report"] ._54nh').click();
            $(document).unbindArrive('.uiContextualLayer ul li a[href*="report"] ._54nh');
        },randomize(1200,2100));
    });
    $(document).arrive('#nfxQuestionNamedharassment span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedharassment span').click();
            setTimeout(function() {
                $('#nfx_dialog_continue').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedharassment span');
        },randomize(1200,2100));
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        setTimeout(function() {
            intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},1000);
            setTimeout(function(){clearInterval(intv2);},2100);
            $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
        },randomize(200,1100));
    });
}
//report app
if(/beat_vn/i.test(window.location.href)){
    console.log('ok 4');
    $(document).arrive('.fsm.fwn.fcg a[ajaxify^="/ajax/report.php"]', function(){
        setTimeout(function() {
            intv = setInterval(function(){document.querySelector('.fsm.fwn.fcg a[ajaxify^="/ajax/report.php"]').click();},1000);
            $(document).unbindArrive('.fsm.fwn.fcg a[ajaxify^="/ajax/report.php"]');
        },randomize(200,1100));
    });

    $(document).arrive('#nfxQuestionNamedinappropriate span', function(){
        clearInterval(intv);
        setTimeout(function() {
            $('#nfxQuestionNamedinappropriate span').click();
            setTimeout(function() {
                $('#nfx_dialog_continue').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedinappropriate span');
        },randomize(1200,2100));
    });
    $(document).arrive('#nfxQuestionNamedhate span', function(){
        setTimeout(function() {
            $('#nfxQuestionNamedhate span').click();
            setTimeout(function() {
                $('#nfx_dialog_continue').click();
            },randomize(1200,2100));
            $(document).unbindArrive('#nfxQuestionNamedhate span');
        },randomize(1200,2100));
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        setTimeout(function() {
            intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},1000);
            setTimeout(function(){clearInterval(intv2);},2100);
            $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
        },randomize(200,1100));
    });
}
var THOI_GIAN_REPORT = Math.round(Math.random() * (MAX - MIN) + MIN);
setTimeout(function(){location.reload();},1000*60*THOI_GIAN_REPORT);