AV_AD_Block

missav

Verze ze dne 18. 10. 2022. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         AV_AD_Block
// @description  missav
// @icon         https://static.missav.com/img/favicon.png
// @namespace    loadingi.local
// @version      0.1
// @author       ch
// @match        *://*missav.com/*
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_xmlhttpRequest
// @license      GPL-3.0-only
// ==/UserScript==

(function() {
    'use strict';
////missav.com
  //Block OnceClick PopUp
    var elem0 = document.querySelector("div.flex-1.order-first").children[0]
    elem0.removeAttribute('x-init')
    elem0.removeAttribute('x-data')
    var elem = document.querySelector("div.relative.-mx-4.-mt-6.sm\\:m-0").children[0]
    elem.removeAttribute(elem.attributes[0].name)
    elem.removeAttribute('@click.once')
  //Block GIF AD
    document.querySelector('div.space-y-5.mb-5').remove()
    document.querySelector('div.under_player').remove()
  //Block Video AD
    document.querySelector("button[class^=close-button]").parentElement.remove()
})();