Greasy Fork is available in English.

RU AdList JS Fixes

try to take over the world!

Старая: v20171120.2 - 20.11.2017 - P: https://greasyfork.org/ru/forum/discussion/31392/nekorrektno-rabotaet-na-link-alfabank-ru (alfabank defines global Ya object in one of their frames and my script does the same thing, since it's a bank it might be better to avoid running on their domain at all)
Новая: v20171120.3 - 20.11.2017 - Restore non-branding style on kinopoisk.ru

  • --- /tmp/diffy20240425-486752-19ax57 2024-04-25 10:31:46.188646476 +0000
  • +++ /tmp/diffy20240425-486752-6mzftc 2024-04-25 10:31:46.188646476 +0000
  • @@ -1,7 +1,7 @@
  • // ==UserScript==
  • // @name RU AdList JS Fixes
  • // @namespace ruadlist_js_fixes
  • -// @version 20171120.2
  • +// @version 20171120.3
  • // @description try to take over the world!
  • // @author lainverse & dimisa
  • // @match *://*/*
  • @@ -2658,6 +2658,17 @@
  • dom: () => win.addEventListener('unload', () => location.hash = 'x'+Math.random().toString(36).substr(2), true)
  • };
  • + scripts['kinopoisk.ru'] = {
  • + now: () => {
  • + // set no-branding body style
  • + createStyle('body:not(#id) { background: #d5d5d5 url(/images/noBrandBg.jpg) 50% 0 no-repeat !important }');
  • + },
  • + dom: () => {
  • + (style => style ? style.parentNode.removeChild(style) : console.log('Unable to locate branding style.')
  • + )(_de.querySelector('#branding-style'));
  • + }
  • + };
  • +
  • scripts['mail.ru'] = () => scriptLander(() => {
  • let nt = new nullTools();
  • // Trick to prevent mail.ru from removing 3rd-party styles