旧版: v20210116.1 - 2021-01-16 - Forgot to remove unnecessary debug message.
新版: v20210120.0 - 2021-01-20 - Updated code for Yandex.
- @@ -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://gf.qytechs.cn/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) {