我正在嘗試將代碼注入 YouTube,以修復 YouTube 的 Magic Actions 中的錯誤。我有來自 Youtube 的 Magic Actions 的以下代碼,它修復了視頻下方的操作欄的位置,但在更新到 YouTube 后它顯示在頂部。javascript:(function(){var b=document.querySelector('#watch7-content span'),a=document.querySelector('ytd-video-primary-info-renderer'),c=a&&a.firstElementChild;b&&a&&c&&a.insertBefore(b,c)})();上面的代碼用作書簽,但我想使用 Tampermonkey 在 YouTube 視頻播放時隨時插入和運行此代碼。
Tampermonkey 在 YouTube 上運行加載和注入代碼
慕婉清6462132
2022-12-29 13:45:06