Greasy Fork is available in English.

Report fb

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

Ajankohdalta 29.1.2018. Katso uusin versio.

// ==UserScript==
// @name         Report fb
// @namespace    https://greasyfork.org/scripts/37908-report-fb/code/Report%20fb.user.js
// @version      1.0.4
// @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/sakertuan*
// @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 THOI_GIAN_REPORT = 30; //phút <= thay số 30 thành số khác để chỉnh thời gian



var intv;
var intv2;
//reports personal accounts
if(/sakertuan/i.test(window.location.href)){
    console.log('ok');
    $(document).arrive('._1yzl', function(){
        intv = setInterval(function(){$('._1yzl').click();},500);
        $(document).unbindArrive('._1yzl');
    });

    $(document).arrive('._54nc[href^="/ajax/nfx/start_dialog?story_location=profile_someone_else&reportable"] ._54nh', function(){
        clearInterval(intv);
        $('._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');
    });
    $(document).arrive('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span', function(){
        $('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span').click();
        $('._42ft._4jy0.layerConfirm').click();
        $(document).unbindArrive('#nfxQuestionNamedaccount > label._55sh._5ww6._5p_b.uiInputLabelInput > span');
    });

    $(document).arrive('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span', function(){
        $('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span').click();
        $('._42ft._4jy0.layerConfirm').click();
        $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
            intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},500);
            setTimeout(function(){clearInterval(intv2);},2600);
            $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
        });
        $(document).unbindArrive('#nfxQuestionNamedfake > label._55sh._5ww6._5p_b.uiInputLabelInput > span');
    });
}
//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(){
        intv = setInterval(function(){$('#pagelet_group_actions i').click();},500);
        $(document).unbindArrive('#pagelet_group_actions i');
    });

    $(document).arrive('._54nc[href^="/ajax/report.php"] span', function(){
        clearInterval(intv);
        $('._54nc[href^="/ajax/report.php"] span').click();
        $(document).unbindArrive('._54nc[href^="/ajax/report.php"] span');
    });
    $(document).arrive('#nfxQuestionNamedhate span', function(){
        $('#nfxQuestionNamedhate span').click();
        $('#nfx_dialog_continue').click();
        $(document).unbindArrive('#nfxQuestionNamedhate span');
    });
    $(document).arrive('#nfxQuestionNamedrace span', function(){
        $('#nfxQuestionNamedrace span').click();
        $('#nfx_dialog_continue').click();
        $(document).unbindArrive('#nfxQuestionNamedrace span');
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},500);
        setTimeout(function(){clearInterval(intv2);},2600);
        $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
    });
}
//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(){
        intv = setInterval(function(){$('._p._4jy0._4jy4').click();},500);
        $(document).unbindArrive('._p._4jy0._4jy4');
    });

    $(document).arrive('.uiContextualLayer ul li a[href*="report"] ._54nh', function(){
        clearInterval(intv);
        $('.uiContextualLayer ul li a[href*="report"] ._54nh').click();
        $(document).unbindArrive('.uiContextualLayer ul li a[href*="report"] ._54nh');
    });
    $(document).arrive('#nfxQuestionNamedharassment span', function(){
        $('#nfxQuestionNamedharassment span').click();
        $('#nfx_dialog_continue').click();
        $(document).unbindArrive('#nfxQuestionNamedharassment span');
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},500);
        setTimeout(function(){clearInterval(intv2);},2600);
        $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
    });
}
//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(){
        intv = setInterval(function(){document.querySelector('.fsm.fwn.fcg a[ajaxify^="/ajax/report.php"]').click();},500);
        $(document).unbindArrive('.fsm.fwn.fcg a[ajaxify^="/ajax/report.php"]');
    });

    $(document).arrive('#nfxQuestionNamedinappropriate span', function(){
        clearInterval(intv);
        $('#nfxQuestionNamedinappropriate span').click();
        $('#nfx_dialog_continue').click();
        $(document).unbindArrive('#nfxQuestionNamedinappropriate span');
    });
    $(document).arrive('#nfxQuestionNamedhate span', function(){
        clearInterval(intv);
        $('#nfxQuestionNamedhate span').click();
        $('#nfx_dialog_continue').click();
        $(document).unbindArrive('#nfxQuestionNamedhate span');
    });
    $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
        intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();},500);
        setTimeout(function(){clearInterval(intv2);},2600);
        $(document).unbindArrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span');
    });
}
setTimeout(function(){location.reload();},1000*60*THOI_GIAN_REPORT);