mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 14:15:36 +07:00
Compare commits
7 Commits
c19dcc1716
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d904144ec | ||
|
|
d16a571d3a | ||
|
|
2d4711e548 | ||
|
|
bef2dd5fe6 | ||
|
|
1baab2488c | ||
|
|
79770d2aab | ||
|
|
d8da43ac29 |
22
CHANGELOG.md
22
CHANGELOG.md
@@ -15,6 +15,28 @@ 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
|
||||
|
||||
11
README.md
11
README.md
@@ -77,6 +77,8 @@ Please push your translation into the folder `_locales/{language code}/messages.
|
||||
* [Unalix](https://github.com/AmanoTeam/Unalix) small, dependency-free, fast Python package for removing tracking fields from URLs
|
||||
* [Unalix-nim](https://github.com/AmanoTeam/Unalix-nim) small, dependency-free, fast Nim package and CLI tool for removing tracking fields from URLs
|
||||
* [UnalixAndroid](https://github.com/AmanoTeam/UnalixAndroid) simple Android app that removes link masking/tracking and optionally resolves shortened links
|
||||
* [pl-fe](https://github.com/mkljczk/pl-fe) is a Fediverse client which uses ClearURLs code to clean URLs from displayed posts and recommend cleaning URLs from created posts
|
||||
* [URLCheck](https://github.com/TrianguloY/URLCheck) is an Android app to review and edit URLs before opening them. Allows to use the ClearURLs catalog.
|
||||
|
||||
## Recommended by...
|
||||
* [ghacks-user.js](https://github.com/ghacksuserjs/ghacks-user.js/wiki/4.1-Extensions)
|
||||
@@ -104,3 +106,12 @@ We use some third-party scripts in our add-on. The authors and licenses are list
|
||||
[MIT](https://github.com/Simonwep/pickr/blob/master/LICENSE)
|
||||
- [Font Awesome](https://github.com/FortAwesome/Font-Awesome/) | Copyright (c) @fontawesome |
|
||||
[Font Awesome Free License](https://github.com/FortAwesome/Font-Awesome/blob/master/LICENSE.txt)
|
||||
|
||||
|
||||
## Star History
|
||||
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ClearURLs/Addon&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ClearURLs/Addon&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ClearURLs/Addon&type=Date" />
|
||||
</picture>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -219,7 +219,7 @@ function initSettings() {
|
||||
storage.contextMenuEnabled = true;
|
||||
storage.historyListenerEnabled = true;
|
||||
storage.localHostsSkipping = true;
|
||||
storage.referralMarketing = false;
|
||||
storage.referralMarketing = true;
|
||||
storage.logLimit = 100;
|
||||
storage.domainBlocking = true;
|
||||
storage.pingBlocking = true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "ClearURLs",
|
||||
"version": "1.27.2",
|
||||
"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.google.*/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