Forces YouTube links to load with a real page navigation instead of SPA routing.
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.sleazyfork.org/scripts/579644/1834066/Youtube%20Error%20fix.js
What this script does is:
Youtube automatically plays the next video. The script intercepts the click before YouTube does. It cancels YouTube’s internal SPA navigation. It tells the browser:location.href = url; The browser performs a genuine page navigation. Entire JS state gets nuked and rebuilt from scratch.