Usuwanie automatycznie class ze strony lub pewnej zawartości kodu ze strony //PL / ENG

9 views
Skip to first unread message

Gracz Szymon

unread,
Jan 6, 2017, 7:15:30 PM1/6/17
to greasemonkey-users
PL:

Witam
 
czy by się dało zamienić ten skrypt Greasemonkey:

[code]
// ==UserScript==
// @name        Anyfiles
// @namespace   Anyfiles
// @include     http://anyfiles.pl/*
// @version     1.0
// @grant       none
// ==/UserScript==
//
 
var kom = document.getElementsByClassName("adsUnbNotifer")[0];
kom.parentNode.removeChild(kom);
[/code]

tak aby działał tak samo tylko w pliku ".js" lub w pliku ".html" , tzn: na domenie anyfiles.pl ma usuwać class "adsUnbNotifer" czyli ma usuwać ze strony ten kod:

[code]<div class="adsUnbNotifer" style="color: white;position: absolute; vertical-align: middle;top: 10%;text-align: center;width: 100%;height: 40%;  background-color: #000000;opacity: 0.6;filter: alpha(opacity=60);"><h1>Uwaga !</h1><h4>Korzystasz z programu blokującego reklamy w przeglądarce<br>prosimy o jego wyłączenie</h4></div>[/code]

----------------
zrobię z tego pliku .js lub pliku .html , dodatek do chrome który po jednym kliknięciu usuwa tego classa.


ENG:


This script ** replace the file "js" OR ".html":

[code]
// ==UserScript==
// @name        Anyfiles
// @namespace   Anyfiles
// @include     http://anyfiles.pl/*
// @version     1.0
// @grant       none
// ==/UserScript==
//
 
var kom = document.getElementsByClassName("adsUnbNotifer")[0];
kom.parentNode.removeChild(kom);
[/code]

change the language , Greasemonkey --->  JS OR HTML
Reply all
Reply to author
Forward
0 new messages