Alex_Qwerty
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Код: // ==UserScript== // @include https://meduza.io/* // ==/UserScript== (function(opera){ var once = true; var ScriptName = 'meduza.io.js'; //e.element.text opera.addEventListener("BeforeExternalScript",function(e){ e.preventDefault(); if (once) once = opera.postError(ScriptName+' block: * '+e.element.src); },false); opera.addEventListener("BeforeScript",function(e){ e.preventDefault(); if (once) once = opera.postError(ScriptName+' block *'); },false); document.addEventListener('DOMContentLoaded',function(){ if (once) once = opera.postError(ScriptName); var pics = document.querySelectorAll('picture>img[src="data:image/gif;base64,R0lGODlhAQABAPAAAPLy8gAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="]'); for (var i=0; i<pics.length; i++) { var np = pics[i].previousSibling.getAttribute('srcset'); np = np&&np.match(/^(\S+)/); np = np&&np[1]; if (np) pics[i].src = np; } pics = document.querySelectorAll('div[class^="Lazy"]+noscript'); for (var i=0; i<pics.length; i++) { pics[i].parentNode.innerHTML = pics[i].innerText; } },false); })(opera) | Код: .Layout-skipLink, .Layout-bannerTop, .Skeleton-root, .UnderTheSun-root, div[data-testid="toolbar"] , .Footer-copyright, .DFPBanner-root {display:none !important} .Feed-root { display: block !important; max-width: none !important} .ImageElement-root img {width:auto !important} .Layout-footer {margin: 8px !important} .Footer-groupList li, .Footer-groupList a, .Link-root {display: inline !important} .Footer-group {display:inline-block !important} .Footer-groupList li {padding: 10px !important} .Footer-group {width: auto !important} .PictureElement-root img, [class^="Image-module_root"] img {height:auto !important; width:auto !important; position: static !important;} div[class^="Image-module_wrapper"] {padding: 8px !important; margin: auto !important}/**/ .ImageElement-root img, .RichBlock-contentWrap {position: static !important} picture, .RichBlock-content {padding: 8px !important} | |