Skip to content

Instantly share code, notes, and snippets.

@ivellios
Last active November 20, 2023 10:14
Show Gist options
  • Save ivellios/449b30aa6cc2b2c5e232f6cf5abe1a20 to your computer and use it in GitHub Desktop.
Save ivellios/449b30aa6cc2b2c5e232f6cf5abe1a20 to your computer and use it in GitHub Desktop.
lowcygier.pl - usuwanie reklamy w tle
// ==UserScript==
// @name Lowcygier.pl - usuń reklamę tła
// @author ivellios
// @namespace http://github.com/ivellios/
// @version 0.12
// @description Wyłącza reklamę w tle strony
// @match https://lowcygier.pl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lowcygier.pl
// @installURL https://gist.githubusercontent.com/ivellios/449b30aa6cc2b2c5e232f6cf5abe1a20/raw/lowcygier-background-ad-removal.js
// @downloadURL https://gist.githubusercontent.com/ivellios/449b30aa6cc2b2c5e232f6cf5abe1a20/raw/lowcygier-background-ad-removal.js
// @updateURL https://gist.githubusercontent.com/ivellios/449b30aa6cc2b2c5e232f6cf5abe1a20/raw/lowcygier-background-ad-removal.js
// @grant none
// @run-at document-idle
// ==/UserScript==
/*
Strona Łowcy Gier (lowcygier.pl) to świetne źródło informacji o promocjach w świecie gier.
Choć osobiście nie jestem fanem blokowania reklam na ich stronie, to reklama w tle strony
wielokrotnie mnie frustrowała. Podczas czytania materiałów często klikam w tle w celu odznaczenia
zaznaczone tekstu. W tym momencie najczęściej otwieram wspomnianą reklamę. Z tego też powodu
stworzyłem ten skrypt, który usuwa TYLKO tę reklamę. Wszystkie inne reklamy nie są tak denerwujące,
dlatego zostawiam je dla dobra Łowców.
Pamiętaj, zeby wspierać działalność Łowców przez wyłączenie AdBlocka. Ich treści są dostępne za darmo dla wszystkich!
*/
(function() {
'use strict';
jQuery("<style>\
body.background-image.background-screening .left-side, \
body.background-image.background-screening .top-background, \
.top-background, body.background-image.background-screening .right-side, \
.friendly-partner-top-container {\
display: none !important; \
background-image: none !important; \
} \
body.background-image.background-screening .intro,\
html body.main-page .content-wrapper > header.intro {\
margin-bottom: 32px !important\
}\
</style>").insertAfter(".content-wrapper");
jQuery(".content-wrapper > div:has(> a[rel~='external'])").remove();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment