// ==UserScript== // @name YouTube Web Tweaks // @version 2.0.1 // @description It speeds up YouTube by 50% by modified configs (including the removal of the Shorts button and the "Video paused. Continue watching?" popup). // @author Magma_Craft // @license MIT // @match *://*.youtube.com/* // @namespace https://greasyfork.org/en/users/933798 // @icon https://www.youtube.com/favicon.ico // @grant none // @downloadURL none // ==/UserScript== (function() { window['yt'] = window['yt'] || {}; yt['config_'] = yt.config_ || {}; yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {}; var iv = setInterval(function() { yt.config_.IS_TABLET = true; yt.config_.DISABLE_YT_IMG_DELAY_LOADING = true; yt.config_.EXPERIMENT_FLAGS.polymer_verifiy_app_state = false; yt.config_.EXPERIMENT_FLAGS.warm_load_nav_start_web = false; yt.config_.EXPERIMENT_FLAGS.kevlar_player_response_swf_config_wrapper_killswitch = false; yt.config_.EXPERIMENT_FLAGS.desktop_player_touch_gestures = false; yt.config_.EXPERIMENT_FLAGS.web_animated_like = false; yt.config_.EXPERIMENT_FLAGS.web_animated_like_lazy_load = false; yt.config_.EXPERIMENT_FLAGS.render_unicode_emojis_as_small_images = true; yt.config_.EXPERIMENT_FLAGS.kevlar_refresh_on_theme_change - false; }, 1); var to = setTimeout(function() { clearInterval(iv); }, 1000) })(); // remove the "Video paused. Continue watching?" popup var interval = setInterval(function() { window.wrappedJSObject._lact = Date.now(); }, 300000); // remove shorts button window.setTimeout( function check() { if (document.querySelector('[title="Shorts"]')) { shorts(); } window.setTimeout(check, 250); }, 250 ); function shorts() { var node = document.querySelector('[title="Shorts"]'); node.style.display = "none"; }