Skip to content

Commit

Permalink
v4.70.59
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed May 3, 2024
1 parent fd5d568 commit c2a377e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions js/injection_script_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
Expand Down
2 changes: 1 addition & 1 deletion version.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.70.58
4.70.59

0 comments on commit c2a377e

Please sign in to comment.