您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide all the created races on the gamelist page
// ==UserScript== // @name KG_HideAllGamesInGamelist // @namespace klavogonki // @include https://klavogonki.ru/gamelist/* // @include http://klavogonki.ru/gamelist/* // @author NoNe // @description Hide all the created races on the gamelist page // @version 0.1 // ==/UserScript== if (!document.getElementById('KTS_HAGIGL')) { if (localStorage['KTS_HAGIGL'] && localStorage['KTS_HAGIGL'] != 'NULL') { var s = document.createElement('style'); s.id = 'KTS_HAGIGL_STYLE'; s.innerHTML = localStorage['KTS_HAGIGL']; document.body.appendChild(s); } var createElem = document.createElement('span'); createElem.innerHTML = ' <input title="Скрыть заезды" type="button" value="Скрыть Заезды" />'; document.getElementById('delete').parentNode.insertBefore(createElem, document.getElementById('delete').nextSibling); createElem.onclick = function() { var e = document.getElementById('KTS_HAGIGL_STYLE'); if (e) { if (e.innerHTML == '#gamelist-active{display:none;}') { localStorage['KTS_HAGIGL'] = e.innerHTML = '#gamelist{display:none;}'; } else { document.body.removeChild(document.getElementById('KTS_HAGIGL_STYLE')); localStorage['KTS_HAGIGL'] = 'NULL'; } } else { var s = document.createElement('style'); s.id = 'KTS_HAGIGL_STYLE'; localStorage['KTS_HAGIGL'] = s.innerHTML = '#gamelist-active{display:none;}'; document.body.appendChild(s); } }; var tmp_elem = document.createElement('div'); tmp_elem.id = 'KTS_HAGIGL'; tmp_elem.style.display = 'none'; document.body.appendChild(tmp_elem); }