Youtube Auto-translate Canceler

Remove auto-translated youtube titles

< 腳本Youtube Auto-translate Canceler的回應

提問/評論

§
發表於:2022-07-08

Fix to Current Bugs
2022-Jul-8
YouTube has updated a new interface causing this script to fail.
Follow these step to temporarily fix them:

  1. Update YouTube title selector
  2. Remove line 66-72 and replace it with the following:
    
    var pageTitle = document.evaluate("//h1[@class='style-scope ytd-watch-metadata']/yt-formatted-string", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
                if (titleMatch != null) {
                    if (pageTitle.innerText != titleMatch[1]){
                            console.log ("Reverting main video title '" + pageTitle.innerText + "' to '" + titleMatch[1] + "'");
                            pageTitle.innerText = titleMatch[1];
                    }
                }
    
  3. Initial bug in the code
  4. REMOVE the var in front of line 25
  5. Restart the code
  6. Click Developer>Factory Reset in Tampermonkey
§
發表於:2022-08-22

Still does not work, get Uncaught TypeError: pageTitle is null

§
發表於:2022-09-21

Weirdly enough even with your changes the script only works together with the youtube anti translate addon:
https://chrome.google.com/webstore/detail/youtube-anti-translate/ndpmhjnlfkgfalaieeneneenijondgag/related

Neither of the two work consistently by themselves for me

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址