Skip to content

Commit cd0f5be

Browse files
committed
Add web-accessible resource for sensors analytics
Related discussion: uBlockOrigin/uAssets#30647 (comment)
1 parent cb5e9c5 commit cd0f5be

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

src/js/redirect-resources.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,7 @@ export default new Map([
190190
[ 'scorecardresearch_beacon.js', {
191191
alias: 'scorecardresearch.com/beacon.js',
192192
} ],
193+
[ 'sensors-analytics.js', {
194+
data: 'text',
195+
} ],
193196
]);
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*******************************************************************************
2+
3+
uBlock Origin - a browser extension to block requests.
4+
Copyright (C) 2025-present Raymond Hill
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see {http://www.gnu.org/licenses/}.
18+
19+
Home: https://github.com/gorhill/uBlock
20+
*/
21+
22+
(function() {
23+
'use strict';
24+
const noopfn = function() {
25+
};
26+
window.sensorsDataAnalytic201505 = {
27+
init: noopfn,
28+
quick: noopfn,
29+
register: noopfn,
30+
track: noopfn,
31+
};
32+
})();

0 commit comments

Comments
 (0)