Skip to content

Commit 6af8a45

Browse files
committed
Add nitropay_ads.js shim
Related issue: uBlockOrigin/uAssets#30991
1 parent 0fb845d commit 6af8a45

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
@@ -112,6 +112,9 @@ export default new Map([
112112
} ],
113113
[ 'hd-main.js', {
114114
} ],
115+
[ 'nitropay_ads.js', {
116+
data: 'text',
117+
} ],
115118
[ 'nobab.js', {
116119
alias: [ 'bab-defuser.js', 'prevent-bab.js' ],
117120
data: 'text',
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) 2019-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+
if ( window.nitroAds ) { return; }
24+
const noopfn = function() {
25+
;
26+
}.bind();
27+
const nitroAds = {
28+
createAd: noopfn,
29+
queue: [],
30+
};
31+
window.nitroAds = nitroAds;
32+
})();

0 commit comments

Comments
 (0)