This (The Guardian) has a small frame that displays in the lower right corner of the page, with code similar to this:
<div class="initially-off social-cta-overlay"> <div class="social-cta-overlay-content"></div> </div>
I hid the inner contents of the inner divbecause it is not important. I wrote a Greasemonkey script that uses jQuery to hide this field because it appears on every page:
div
// ==UserScript== // @name hide-guardian-ad // @namespace guardian // @description Hides the Guardian social media frame // @version 1 // @grant none // ==/UserScript== // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js $(".social-cta-overlay").hide()
I installed the script but nothing happens and the field is still there.
That the script has 3 problems (worst of all):
@require
@include
@match
@grant none
script :
// ==UserScript== // @name hide-guardian-ad // @include http://www.theguardian.com/* // @description Hides the Guardian social media frame // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js // @grant GM_addStyle // ==/UserScript== $(".social-cta-overlay").hide()
:
$(document).find(".social-cta-overlay").hide();
Source: https://habr.com/ru/post/1528794/More articles:Display error messages directly in Vaadin 7 - validationEfficient C # Substring Validation Method - stringjqGrid refreshes the current page - jqgridClose AngularStrap popover - angularjsaverage number of characters per word in a list - pythonRenaming to IAR Embedded Work Bench - iarWhat is the correct method to destroy jqGrid to avoid detaching DOM nodes? - jqgridDoes GNU cpp consider the odd C99 standard for macros null arguments? - ccss3 animation brand does not work automatically - html5Опрос() на именованной трубе возвращается с POLLHUP постоянно и сразу - cAll Articles