Greasy Fork is available in English.

RU AdList JS Fixes

try to take over the world!

Старая: v20210116.1 - 16.01.2021 - Forgot to remove unnecessary debug message.
Новая: v20210120.0 - 20.01.2021 - Updated code for Yandex.

  • --- /tmp/diffy20240505-1226869-xutitp 2024-05-05 19:17:03.601361760 +0000
  • +++ /tmp/diffy20240505-1226869-7436dx 2024-05-05 19:17:03.601361760 +0000
  • @@ -1,7 +1,7 @@
  • // ==UserScript==
  • // @name RU AdList JS Fixes
  • // @namespace ruadlist_js_fixes
  • -// @version 20210116.1
  • +// @version 20210120.0
  • // @description try to take over the world!
  • // @author lainverse & dimisa
  • // @supportURL https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes/feedback
  • @@ -5276,7 +5276,8 @@
  • nt.define('localStorage.yandexJSPlayerApiSavedSingleVideoSessionWatchedTimeSinceAd', Math.random() * 1000);
  • // cookie cleaner
  • - let yp_keepCookieParts = /\.(sp|ygo|ygu)\./; // ygo = city id; ygu = detect city automatically
  • + let yp_keepCookieParts = /\.(sp|ygo|ygu|fblkv2)\./;
  • + // ygo = city id; ygu = detect city automatically; fblkv2 = visible sections on the main page under search
  • let _doc_proto = ('cookie' in _Document) ? _Document : Object.getPrototypeOf(_document);
  • let _cookie = Object.getOwnPropertyDescriptor(_doc_proto, 'cookie');
  • if (_cookie) {