Skip to content

Commit 9e1e30c

Browse files
committed
Update
1 parent 8bd4973 commit 9e1e30c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

force-browser-language.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Force Browser Language
3-
// @version 0.2
3+
// @version 0.3
44
// @downloadURL https://userscripts.codonaft.com/force-browser-language.js
55
// @match https://*.google.com/*
66
// ==/UserScript==
@@ -13,6 +13,6 @@
1313
if (url.searchParams.get('hl') !== lang) {
1414
window.stop();
1515
url.searchParams.set('hl', lang);
16-
window.location.href = url.toString();
16+
window.location.replace(url.toString());
1717
}
1818
})()

improve-video-quality-search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Improve Video Quality Search
3-
// @version 0.6
3+
// @version 0.7
44
// @downloadURL https://userscripts.codonaft.com/improve-video-quality-search.js
55
// @exclude-match https://spankbang.com/*/video/*
66
// @match https://spankbang.com/*
@@ -79,6 +79,6 @@
7979

8080
if (newUrl) {
8181
window.stop();
82-
window.location.href = newUrl;
82+
window.location.replace(newUrl);
8383
}
8484
})()

skip-video-intros.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Skip Video Intros
3-
// @version 0.3
3+
// @version 0.4
44
// @downloadURL https://userscripts.codonaft.com/skip-video-intros.js
55
// @match https://www.pornhub.com/view_video.php*
66
// ==/UserScript==
@@ -18,7 +18,7 @@
1818
const redirect = (min, max) => {
1919
window.stop();
2020
params.set('t', random(Math.floor(min), Math.floor(max)));
21-
window.location.href = url.toString();
21+
window.location.replace(url.toString());
2222
};
2323

2424
if (params.has('t')) {
@@ -30,7 +30,7 @@
3030
redirect(duration / 4, duration / 2);
3131
}
3232
} else {
33-
window.location.href = url.toString();
33+
window.location.replace(url.toString());
3434
}
3535
},
3636
random(2500, 3000))

0 commit comments

Comments
 (0)