Revision bac96457
Added by koszko over 1 year ago
src/royal_geographical_society.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 |
* Unhide RGS exhibitions page after it loads 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) 2021 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 |
document.documentElement.style.visibility = 'visible'; |
|
20 |
document.documentElement.style.opacity = '100'; |
|
18 |
const unhide_style = "visibility: visible !important; opacity: 1 !important;"; |
|
19 |
document.documentElement.setAttribute("style", unhide_style); |
Also available in: Unified diff
improve some of the fixes and add sample URLs for testing