Update Elements with ID lister to 1.0.8

- Fix text wrapping with really long IDs, like the ones on
  https://wiki.archiveteam.org/index.php/ArchiveTeam_Warrior
This commit is contained in:
blankie 2023-06-07 15:04:30 +07:00
parent d188f3c1c9
commit 1bac1977a5
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@
// @grant GM_getResourceURL // @grant GM_getResourceURL
// @require https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.js#sha256-cec1a2e320aab77e28bad4ad6bc5e532a6ef5757345c19bb5158aa880b7162a6 // @require https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.js#sha256-cec1a2e320aab77e28bad4ad6bc5e532a6ef5757345c19bb5158aa880b7162a6
// @resource dialogPolyfillCSS https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.css#sha256-4dcb3ab62e545f30bf06a4824c253641ee889ca85ca28d5447590557922496ab // @resource dialogPolyfillCSS https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.min.css#sha256-4dcb3ab62e545f30bf06a4824c253641ee889ca85ca28d5447590557922496ab
// @version 1.0.7 // @version 1.0.8
// @author blankie // @author blankie
// @description A userscript that adds a "Show elements popup" option to the Monkey Menu which lists all elements with an ID // @description A userscript that adds a "Show elements popup" option to the Monkey Menu which lists all elements with an ID
// @inject-into content // @inject-into content
@ -29,10 +29,12 @@ dialog {
position: fixed; position: fixed;
min-width: 25em; min-width: 25em;
max-height: 90%; max-height: 90%;
max-width: 90%;
font-size: 11pt; font-size: 11pt;
text-align: left; text-align: left;
color-scheme: dark; color-scheme: dark;
overflow-y: auto; overflow-y: auto;
overflow-wrap: break-word;
} }
dialog, dialog.polyfilled button { dialog, dialog.polyfilled button {
color: white; color: white;
@ -50,6 +52,10 @@ dialog::backdrop, dialog + .backdrop {
.align-right { .align-right {
text-align: right; text-align: right;
} }
button {
/* https://stackoverflow.com/a/27722954 */
display: inline;
}
a { a {
color: ${ACCENT_COLOR}; color: ${ACCENT_COLOR};