Сори, упс

This commit is contained in:
Egor Guslyancev 2023-11-29 16:16:17 -03:00
parent 8e1e0d6a99
commit 66baffd5b4
GPG Key ID: D7E709AA465A55F9
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ Bookmarklet — это закладка в браузере, которая за
Добавьте ссылку в закладки. Чтобы числа появились нужно открыть ссылку из панели закладок.
```js
javascript:document.querySelectorAll('input[type="checkbox"],input[type="radio"]').forEach(function(e){var s=document.createElement("span");s.innerHTML=(e.type=="radio"&&e.value==="1"?"<b>"+e.value+"</b>":e.value)+" ";e.parentNode.insertBefore(s,e.parentNode.firstChild)});
javascript:document.querySelectorAll('input[type="checkbox"],input[type="radio"]').forEach(function(e){var s=document.createElement("span");s.innerHTML=(e.type=="radio"&&e.value==="1"?"<b>"+e.value+"</b>":e.value);e.parentNode.insertBefore(s,e.parentNode.firstChild)});
```
### Userscript

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name Sorryops
// @namespace sorryops
// @version 20231129.1
// @version 20231129.2
// @description Skip the half of the fun!
// @icon https://orioks.miet.ru/favicon.ico
// @author electromagneticcyclone & angelbeautifull
@ -26,7 +26,7 @@ function actionFunction() {
boxes[i].type === 'radio' && boxes[i].value == "1"
? "<b>" + boxes[i].value + "</b>"
: boxes[i].value;
span.innerHTML = value + " ";
span.innerHTML = value;
boxes[i].parentNode.insertBefore(span, boxes[i].parentNode.children[0]);
success = true;
}