Hide ads elements Fly.inc

Full Hide ads elements Fly.inc

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Hide ads elements Fly.inc
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Full Hide ads elements Fly.inc
// @author       Alberto
// @match        *://*/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var globalRules = [
        { selector: 'form > center', action: 'display: none' },
        { selector: 'form.text.center > center', action: 'display: none' },
        //{ selector: 'center:nth-of-type(1)', action: 'display: none' },
        //{ selector: 'center:nth-of-type(2)', action: 'display: none' },
        //{ selector: 'center:nth-of-type(3)', action: 'display: none' },
        //{ selector: 'center:nth-of-type(4)', action: 'display: none' },
        //{ selector: 'center:nth-of-type(5)', action: 'display: none' },
        { selector: 'center:nth-of-type(6)', action: 'display: none' },
        { selector: '.a', action: 'display: none' }
    ];

    var currentHostname = window.location.hostname;

    var allowedPages = [
        'allcryptoz.net',
        'batmanfactor.com',
        'crewus.net',
        'gametechreviewer.com',
        'misterio.ro',
        'phineypet.com',
        'rsadnetworkinfo.com',
        'rseducationinfo.com',
        'rshostinginfo.com',
        'rsfinanceinfo.com',
        'rsinsuranceinfo.com',
        'rssoftwareinfo.com',
        'shinbhu.net',
        'talkforfitness.com',
        'techedifier.com',
        'thumb8.net',
        'thumb9.net',
        'topcryptoz.net',
        'ultraten.net',
        'uniqueten.net'
    ];

    allowedPages.sort();

    if (allowedPages.includes(currentHostname)) {
        globalRules.forEach(function(rule) {
            var elementsToHide = document.querySelectorAll(rule.selector);
            elementsToHide.forEach(function(element) {
                element.style = rule.action;
            });
        });
    }
})();