-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2: observe page changes and inject the script before page load (#3)
* script: - add a new metadata @run-at - the script will be injected before page load - Documentation: https://www.tampermonkey.net/documentation.php?locale=en#meta:run_at Signed-off-by: Aolin <aolinz@outlook.com> * script: add a mark to specify newly added element Signed-off-by: Aolin <aolinz@outlook.com> * script: (EnsureCommentButton) create comment button only when there is no comment-button element Signed-off-by: Aolin <aolinz@outlook.com> * script: (EnsureFileLink) - rename from CreateFileLink to EnsureFileLink - add File element only when there is no file-link-span element Signed-off-by: Aolin <aolinz@outlook.com> * script: (Init) trigger EnsureFileLink and EnsureCommentButton when observing page changes Signed-off-by: Aolin <aolinz@outlook.com> * script: publish version v0.2 Signed-off-by: Aolin <aolinz@outlook.com> --------- Signed-off-by: Aolin <aolinz@outlook.com>
- Loading branch information
Showing
1 changed file
with
54 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters