File tree Expand file tree Collapse file tree 3 files changed +64
-12
lines changed Expand file tree Collapse file tree 3 files changed +64
-12
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
- Require Firefox >= 55
16
16
- Require Chrome >= 37
17
17
18
+
19
+ ## [ 1.27.3] - 2025-XX-XX
20
+
21
+ ### Changed
22
+ - Google Search ` window.rwt ` detection
23
+
24
+ ### Fixed
25
+ - Google Docs
26
+ - [ #134 ] ( https://github.com/ClearURLs/Addon/issues/134 )
27
+ - [ #187 ] ( https://gitlab.com/ClearURLs/rules/-/issues/187 )
28
+ - [ #387 ] ( https://github.com/ClearURLs/Addon/issues/387 )
29
+ - [ #393 ] ( https://github.com/ClearURLs/Addon/issues/393 )
30
+ - [ #978 ] ( https://gitlab.com/ClearURLs/ClearUrls/-/issues/978 )
31
+ - [ #980 ] ( https://gitlab.com/ClearURLs/ClearUrls/-/issues/980 )
32
+ - [ #1301 ] ( https://gitlab.com/ClearURLs/ClearUrls/-/issues/1301 )
33
+ - [ #1302 ] ( https://gitlab.com/ClearURLs/ClearUrls/-/issues/1302 )
34
+ - [ #1305 ] ( https://gitlab.com/ClearURLs/ClearUrls/-/issues/1305 )
35
+
36
+
37
+ ### Compatibility note
38
+ - Require Firefox >= 55
39
+ - Require Chrome >= 37
40
+
18
41
## [ 1.27.2] - 2025-01-27
19
42
20
43
### Fixed
Original file line number Diff line number Diff line change 26
26
27
27
function injectFunction ( ) {
28
28
let ele = document . createElement ( 'script' ) ;
29
+ ele . type = 'text/javascript' ;
30
+ ele . textContent = `
31
+ (function() {
32
+ "use strict";
33
+
34
+ ${ hookRwtProperty . toString ( ) }
35
+
36
+ const rwtDescriptor = Object.getOwnPropertyDescriptor(window, 'rwt');
37
+ if (!('rwt' in window) || (rwtDescriptor && rwtDescriptor.configurable)) {
38
+ hookRwtProperty();
39
+ }
40
+ })();
41
+ ` ;
42
+
29
43
let s = document . getElementsByTagName ( 'script' ) [ 0 ] ;
30
- if ( s = == undefined ) {
31
- return ;
44
+ if ( s ! == undefined ) {
45
+ s . parentNode . insertBefore ( ele , s ) ;
32
46
}
47
+ }
33
48
34
- ele . type = 'text/javascript' ;
35
- ele . textContent = "Object.defineProperty(window, 'rwt', {" +
36
- " value: function() { return true; }," +
37
- " writable: false," +
38
- " configurable: false" +
39
- "});" ;
40
-
41
- s . parentNode . insertBefore ( ele , s ) ;
49
+ function hookRwtProperty ( ) {
50
+ try {
51
+ Object . defineProperty ( window , 'rwt' , {
52
+ configurable : false ,
53
+ writable : false ,
54
+ value : function ( ) { return true ; }
55
+ } ) ;
56
+ } catch ( e ) {
57
+ console . debug ( 'ClearURLs: Failed to hook rwt property' , e ) ;
58
+ }
42
59
}
43
60
44
61
/*
65
82
}
66
83
} , true ) ;
67
84
}
68
-
85
+
69
86
main ( ) ;
70
87
} ) ( window ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"name" : " ClearURLs" ,
4
- "version" : " 1.27.2 " ,
4
+ "version" : " 1.27.3 " ,
5
5
"author" : " Kevin Roebert" ,
6
6
"description" : " __MSG_extension_description__" ,
7
7
"homepage_url" : " https://docs.clearurls.xyz" ,
270
270
" *://*.google.co.zw/*" ,
271
271
" *://*.google.cat/*"
272
272
],
273
+ "include_globs" : [
274
+ " http?://www.google.*/" ,
275
+ " http?://www.google.*/#hl=*" ,
276
+ " http?://www.google.*/search*" ,
277
+ " http?://www.google.*/webhp?hl=*" ,
278
+ " https://encrypted.google.*/" ,
279
+ " https://encrypted.google.*/#hl=*" ,
280
+ " https://encrypted.gogole.*/search*" ,
281
+ " https://encrypted.google.*/webhp?hl=*" ,
282
+ " http?://ipv6.google.com/" ,
283
+ " http?://ipv6.google.com/search*"
284
+ ],
273
285
"js" : [
274
286
" core_js/google_link_fix.js"
275
287
],
You can’t perform that action at this time.
0 commit comments