Сори, упс
This commit is contained in:
parent
8e1e0d6a99
commit
66baffd5b4
|
@ -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
|
||||
|
|
4
user.js
4
user.js
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue