Old VK design

Returns old VK design for PC after 9 october 2020 update.

当前为 2021-08-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         Old VK design
// @namespace    only for real men
// @version      1.3.2
// @description  Returns old VK design for PC after 9 october 2020 update. 
// @author       Me
// @include      *://vk.com/*
// @include      *://vkontakte.ru/*
// @include      *://vk.me/*
// @grant        none
// ==/UserScript==

(function() {
    if (window.once) {
        return;
    }

    var gobno = document.querySelector('body.new_header_design').className, i=0;
    document.querySelector('body.new_header_design').className = gobno.replace("new_header_design","");
    var timer = setInterval(function(){
       try{document.querySelector('head > link[href="https://st3-13.vk.com/css/al/common.33b8fc60ebb70a678c51.css"]').remove()}catch(e){console.log('e')}; // notify icon fix
       try{document.querySelector('body.new_header_design').className = gobno.replace("new_header_design","");}catch(e){/*console.log('no')*/}
       try{document.querySelector('.TopNavBtn .TopNavBtn__icon').style.color = "var(--text_link)";}catch(e){}
       try{document.querySelectorAll('.top_audio_player_btn').forEach((el)=>{el.children[0].style.color = "var(--white)"})}catch(e){}
       try{document.querySelector('.top_audio_player_title').style.color = "var(--white)";}catch(E){}
       try{document.querySelector('#ts_input').style.backgroundColor = "var(--blue_600)";}catch(E){}
       try{document.querySelector("#top_profile_link > div.TopNavBtn__profileName").style.color = "var(--white)";}catch(e){}
    },3000);
    var poisq = document.querySelector('.input_back');
    poisq.style.padding = "6px 6px 6px 19px"; poisq.style.margin = "7px 0 7px 8px"; // fix poiska


    window.once = true;
})();