diff --git a/js/injection_script_1.js b/js/injection_script_1.js index caf5071..edb89b7 100644 --- a/js/injection_script_1.js +++ b/js/injection_script_1.js @@ -1721,13 +1721,16 @@ function injection_script_1() { let mz = ''; cProto.urlChanged = function () { const chatframe = this.chatframe || (this.$ || 0).chatframe; - if (!chatframe || !this.url) return; + const url = `${this.url}`; + if (!chatframe || !url) return; let loc = ''; try { loc = chatframe.contentDocument.location.href } catch (e) { } - if (loc === this.url) return; - const t = `${loc}->${this.url}`; + const kloc = loc.replace(/^https?:\/\/[\w\.\-]+\//, '/'); + const kurl = url.replace(/^https?:\/\/[\w\.\-]+\//, '/'); + if (kloc === kurl) return; + const t = `${kloc}\t${kurl}`; if (t === mz) return; mz = t; if (rz > 1e9) rz = 9; diff --git a/manifest.json b/manifest.json index 218b0e7..6eaf5fc 100644 --- a/manifest.json +++ b/manifest.json @@ -15,7 +15,7 @@ "host_permissions": [ "https://www.youtube.com/*" ], - "version": "4.70.58", + "version": "4.70.59", "web_accessible_resources": [{ "resources": ["images/*.png", "js/injection*.js", "js/content.js", "css/style_*.css"], "matches": ["https://www.youtube.com/*"] diff --git a/version.ini b/version.ini index 7a4d210..24f2db0 100644 --- a/version.ini +++ b/version.ini @@ -1 +1 @@ -4.70.58 \ No newline at end of file +4.70.59 \ No newline at end of file