annotate japan-times-account-wall-remover.user.js @ 96:368035f2213b

Use builtin framework for document ready
author nanaya <me@nanaya.net>
date Fri, 23 Dec 2022 19:14:04 +0900
parents 47ae8c7673cb
children 2c4470b73ad9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
1 // ==UserScript==
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
2 // @name Japan Times "account wall" remover
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
3 // @namespace https://myconan.net
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
4 // @match https://www.japantimes.co.jp/*
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
5 // @grant GM_addStyle
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
6 // @version 1.0.1
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
7 // @author nanaya
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
8 // @description Removes account wall
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
9 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/japan-times-account-wall-remover.user.js
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
10 // ==/UserScript==
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
11
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
12 /* global GM_addStyle */
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
13 GM_addStyle(`
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
14 .tp-modal-open.tp-modal-open {
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
15 overflow: auto !important;
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
16 height: auto !important;
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
17 }
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
18 .tp-backdrop.tp-backdrop, .tp-modal.tp-modal {
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
19 display: none !important;
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
20 }
47ae8c7673cb Add japan times account wall remover
nanaya <me@nanaya.pro>
parents:
diff changeset
21 `)