mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-19 23:55:36 +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 Firefox >= 55
|
||||||
- Require Chrome >= 37
|
- 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
|
## [1.27.1] - 2025-01-05
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -26,19 +26,36 @@
|
|||||||
|
|
||||||
function injectFunction() {
|
function injectFunction() {
|
||||||
let ele = document.createElement('script');
|
let ele = document.createElement('script');
|
||||||
|
ele.type = 'text/javascript';
|
||||||
|
ele.textContent = `
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
${hookRwtProperty.toString()}
|
||||||
|
|
||||||
|
const rwtDescriptor = Object.getOwnPropertyDescriptor(window, 'rwt');
|
||||||
|
if (!('rwt' in window) || (rwtDescriptor && rwtDescriptor.configurable)) {
|
||||||
|
hookRwtProperty();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
`;
|
||||||
|
|
||||||
let s = document.getElementsByTagName('script')[0];
|
let s = document.getElementsByTagName('script')[0];
|
||||||
if (s === undefined) {
|
if (s !== undefined) {
|
||||||
return;
|
s.parentNode.insertBefore(ele, s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ele.type = 'text/javascript';
|
function hookRwtProperty() {
|
||||||
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
try {
|
||||||
" value: function() { return true; }," +
|
Object.defineProperty(window, 'rwt', {
|
||||||
" writable: false," +
|
configurable: false,
|
||||||
" configurable: false" +
|
writable: false,
|
||||||
"});";
|
value: function() { return true; }
|
||||||
|
});
|
||||||
s.parentNode.insertBefore(ele, s);
|
} catch (e) {
|
||||||
|
console.debug('ClearURLs: Failed to hook rwt property', e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ function urlSearchParamsToString(searchParams) {
|
|||||||
|
|
||||||
searchParams.forEach((value, key) => {
|
searchParams.forEach((value, key) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
rtn.push(key + '=' + value)
|
rtn.push(key + '=' + encodeURIComponent(value))
|
||||||
} else {
|
} else {
|
||||||
rtn.push(key)
|
rtn.push(key)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.27.1",
|
"version": "1.27.3",
|
||||||
"author": "Kevin Roebert",
|
"author": "Kevin Roebert",
|
||||||
"description": "__MSG_extension_description__",
|
"description": "__MSG_extension_description__",
|
||||||
"homepage_url": "https://docs.clearurls.xyz",
|
"homepage_url": "https://docs.clearurls.xyz",
|
||||||
@@ -270,6 +270,18 @@
|
|||||||
"*://*.google.co.zw/*",
|
"*://*.google.co.zw/*",
|
||||||
"*://*.google.cat/*"
|
"*://*.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": [
|
"js": [
|
||||||
"core_js/google_link_fix.js"
|
"core_js/google_link_fix.js"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user