Revision 8b2190dc
Added by koszko about 1 year ago
src/accuweather-com-fix/accuweather.js | ||
---|---|---|
1 | 1 |
/** |
2 |
* SPDX-License-Identifier: Apache-2.0
|
|
2 |
* SPDX-License-Identifier: CC0-1.0
|
|
3 | 3 |
* |
4 |
* Copyright © 2021 jahoti <jahoti@tilde.team>
|
|
4 |
* View Accuweather forecasts without nonfree js.
|
|
5 | 5 |
* |
6 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 |
* you may not use this file except in compliance with the License. |
|
8 |
* You may obtain a copy of the License at |
|
6 |
* Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> |
|
9 | 7 |
* |
10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
8 |
* This program is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the CC0 1.0 Universal License as published by |
|
10 |
* the Creative Commons Corporation. |
|
11 | 11 |
* |
12 |
* Unless required by applicable law or agreed to in writing, software |
|
13 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 |
* See the License for the specific language governing permissions and |
|
16 |
* limitations under the License. |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* CC0 1.0 Universal License for more details. |
|
17 | 16 |
*/ |
18 | 17 |
|
19 |
for (var nonAd of document.querySelectorAll('.ads-not-loaded .non-ad')) nonAd.style.visibility = 'visible'; |
|
18 |
for (const node of [...document.getElementsByClassName("non-ad")]) |
|
19 |
node.classList.remove("non-ad"); |
Also available in: Unified diff
update the Accuweather fix