mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 06:05:37 +07:00
Compare commits
4 Commits
0011b78509
...
1.27.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79770d2aab | ||
|
|
d8da43ac29 | ||
|
|
308a2f1579 | ||
|
|
d33a86ce3c |
39
CHANGELOG.md
39
CHANGELOG.md
@@ -15,6 +15,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Require Firefox >= 55
|
||||
- Require Chrome >= 37
|
||||
|
||||
|
||||
## [1.27.3] - 2025-02-05
|
||||
|
||||
### Changed
|
||||
- Google Search `window.rwt` detection
|
||||
|
||||
### Fixed
|
||||
- Google Docs
|
||||
- [#134](https://github.com/ClearURLs/Addon/issues/134)
|
||||
- [#187](https://gitlab.com/ClearURLs/rules/-/issues/187)
|
||||
- [#387](https://github.com/ClearURLs/Addon/issues/387)
|
||||
- [#393](https://github.com/ClearURLs/Addon/issues/393)
|
||||
- [#978](https://gitlab.com/ClearURLs/ClearUrls/-/issues/978)
|
||||
- [#980](https://gitlab.com/ClearURLs/ClearUrls/-/issues/980)
|
||||
- [#1301](https://gitlab.com/ClearURLs/ClearUrls/-/issues/1301)
|
||||
- [#1302](https://gitlab.com/ClearURLs/ClearUrls/-/issues/1302)
|
||||
- [#1305](https://gitlab.com/ClearURLs/ClearUrls/-/issues/1305)
|
||||
|
||||
### Compatibility note
|
||||
- Require Firefox >= 55
|
||||
- Require Chrome >= 37
|
||||
|
||||
## [1.27.2] - 2025-01-27
|
||||
|
||||
### Fixed
|
||||
Special thanks to [SunsetTechuila](https://github.com/SunsetTechuila) for providing [PR 415](https://github.com/ClearURLs/Addon/pull/415)
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1943562
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1942909
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1942705
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1943842
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1943807
|
||||
- [#407](https://github.com/ClearURLs/Addon/issues/407)
|
||||
- [#408](https://github.com/ClearURLs/Addon/issues/408)
|
||||
- [#409](https://github.com/ClearURLs/Addon/issues/409)
|
||||
- [#410](https://github.com/ClearURLs/Addon/issues/410)
|
||||
- [#411](https://github.com/ClearURLs/Addon/issues/411)
|
||||
- [#412](https://github.com/ClearURLs/Addon/issues/412)
|
||||
- [#413](https://github.com/ClearURLs/Addon/issues/413)
|
||||
|
||||
## [1.27.1] - 2025-01-05
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -26,19 +26,36 @@
|
||||
|
||||
function injectFunction() {
|
||||
let ele = document.createElement('script');
|
||||
let s = document.getElementsByTagName('script')[0];
|
||||
if (s === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
ele.type = 'text/javascript';
|
||||
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
||||
" value: function() { return true; }," +
|
||||
" writable: false," +
|
||||
" configurable: false" +
|
||||
"});";
|
||||
ele.textContent = `
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
${hookRwtProperty.toString()}
|
||||
|
||||
s.parentNode.insertBefore(ele, s);
|
||||
const rwtDescriptor = Object.getOwnPropertyDescriptor(window, 'rwt');
|
||||
if (!('rwt' in window) || (rwtDescriptor && rwtDescriptor.configurable)) {
|
||||
hookRwtProperty();
|
||||
}
|
||||
})();
|
||||
`;
|
||||
|
||||
let s = document.getElementsByTagName('script')[0];
|
||||
if (s !== undefined) {
|
||||
s.parentNode.insertBefore(ele, s);
|
||||
}
|
||||
}
|
||||
|
||||
function hookRwtProperty() {
|
||||
try {
|
||||
Object.defineProperty(window, 'rwt', {
|
||||
configurable: false,
|
||||
writable: false,
|
||||
value: function() { return true; }
|
||||
});
|
||||
} catch (e) {
|
||||
console.debug('ClearURLs: Failed to hook rwt property', e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -65,6 +82,6 @@
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
||||
main();
|
||||
})(window);
|
||||
|
||||
@@ -347,7 +347,7 @@ function urlSearchParamsToString(searchParams) {
|
||||
|
||||
searchParams.forEach((value, key) => {
|
||||
if (value) {
|
||||
rtn.push(key + '=' + value)
|
||||
rtn.push(key + '=' + encodeURIComponent(value))
|
||||
} else {
|
||||
rtn.push(key)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "ClearURLs",
|
||||
"version": "1.27.1",
|
||||
"version": "1.27.3",
|
||||
"author": "Kevin Roebert",
|
||||
"description": "__MSG_extension_description__",
|
||||
"homepage_url": "https://docs.clearurls.xyz",
|
||||
@@ -270,6 +270,18 @@
|
||||
"*://*.google.co.zw/*",
|
||||
"*://*.google.cat/*"
|
||||
],
|
||||
"include_globs": [
|
||||
"http?://www.google.*/",
|
||||
"http?://www.google.*/#hl=*",
|
||||
"http?://www.google.*/search*",
|
||||
"http?://www.google.*/webhp?hl=*",
|
||||
"https://encrypted.google.*/",
|
||||
"https://encrypted.google.*/#hl=*",
|
||||
"https://encrypted.gogole.*/search*",
|
||||
"https://encrypted.google.*/webhp?hl=*",
|
||||
"http?://ipv6.google.com/",
|
||||
"http?://ipv6.google.com/search*"
|
||||
],
|
||||
"js": [
|
||||
"core_js/google_link_fix.js"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user