Skip to content

Commit 5943163

Browse files
committed
Update pagetual.user.js
1 parent 30cdb26 commit 5943163

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Pagetual/pagetual.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6361,6 +6361,7 @@
63616361
root_domain = /^\w+\:\/\/\/?[^\/]+/.exec(root_page)[0],
63626362
absolute_regex = /^\w+\:\/\//;
63636363
this.updateUrl = false;
6364+
src = src.replace(/^\/(\.\.\/)+/, "/");
63646365
while (src.indexOf("../") === 0) {
63656366
src = src.substr(3);
63666367
root_page = root_page.replace(/\/[^\/]+\/$/, "/");

0 commit comments

Comments
 (0)