[ { "action": "scrolldownmore", "key": "d", "label": "下にスクロール", "sites": "", "sitesArray": [ "" ] }, { "key": "e", "label": "上にスクロール", "action": "scrollupmore", "sites": "", "sitesArray": [ "" ] }, { "action": "javascript", "code": "javascript:(function() {\n const excludedContainers = document.querySelectorAll('div#taw, table');\n excludedContainers.forEach(container => {\n container.style.display = 'none';\n });\n\n const style = document.createElement('style');\n style.textContent = `\n body { counter-reset: headline3; clear: both; }\n body::before { content: counter(headline3); }\n h3::before {\n counter-increment: headline3;\n content: counter(headline3);\n margin: 0;\n color: #ffffff;\n text-shadow: none;\n font-size: 80%;\n display: inline-block;\n background: rgb(26, 115, 232);\n margin-right: 0.3em;\n width: 1.5em;\n line-height: 1.6;\n height: 1.5em;\n text-align: center;\n vertical-align: middle;\n border-radius: 50%;\n position: relative;\n bottom: 0.1em;\n }\n .entry-content p + h3,\n .kaerebalink-box + h3,\n figure + h3 { margin-top: 4em !important; }\n .entry-content .wp-block-buttons + h3:not(.is-style-stylenone) { margin-top: 0; }\n `;\n\n document.head.appendChild(style);\n})();", "key": "ctrl+shift+N", "label": "【BM】検索順位に数字", "sites": "", "sitesArray": [ "" ] }, { "key": "ctrl+shift+S", "label": "【BM】サイト内検索窓を出現", "action": "javascript", "code": "javascript:(function() { var searchDiv = document.createElement('div'); searchDiv.style.cssText = 'position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(255, 255, 255, 0.9); padding: 45px!important; text-align: center!important; box-shadow: 0px 3px 20px rgba(100, 100, 100, 0.9)!important; z-index: 1!important;'; var searchBox = document.createElement('input'); searchBox.type = 'text'; searchBox.style.cssText = 'width: 500px!important; height: 60px!important; font-size: 20px!important; margin-bottom: 10px;'; var searchButton = document.createElement('button'); searchButton.innerHTML = '検索'; searchButton.style.cssText = 'width: 150px!important; height: 60px!important; font-size: 20px!important; background-color: #2879ff!important; border: 1px solid #2879ff!important; border-radius: 4px!important; color: #fff!important; letter-spacing: 1em!important; text-indent: 1em!important; padding: 0.5em!important; margin-top: 20px!important;'; var closeButton = document.createElement('button'); closeButton.innerHTML = '×'; closeButton.style.cssText = 'position: absolute; top: 10px!important; right: 10px!important; width: 30px!important; height: 30px!important; line-height: 1!important; font-size: 30px!important; background-color: rgb(204, 204, 204)!important; border: none!important; border-radius: 50%!important; color: rgb(255, 255, 255)!important; cursor: pointer!important; padding: 0!important;'; searchDiv.appendChild(searchBox); searchDiv.appendChild(document.createElement('br')); searchDiv.appendChild(searchButton); searchDiv.appendChild(closeButton); document.body.appendChild(searchDiv); searchBox.focus(); searchBox.addEventListener('keydown', function(event) { if (event.keyCode === 13) { event.preventDefault(); searchButton.click(); } }); searchButton.addEventListener('click', function() { var keyword = encodeURIComponent(searchBox.value); var domain = window.location.hostname; var searchUrl = 'https://www.google.com/search?q=' + keyword + '+site%3A' + domain; window.location.href = searchUrl; }); closeButton.addEventListener('click', function() { document.body.removeChild(searchDiv); });})();", "sites": "", "sitesArray": [ "" ] }, { "key": "ctrl+shift+Q", "label": "【BM】引用", "action": "javascript", "code": "javascript:(function(){var code = '\\n
\\n

' + window.getSelection() + '

\\n' + document.title + '
\\n';var ele = document.createElement('textarea');ele.value = code;document.body.appendChild(ele);ele.select();document.execCommand('copy');document.body.removeChild(ele);})();", "sites": "", "sitesArray": [ "" ] }, { "sites": "", "sitesArray": [ "" ], "key": "ctrl+shift+M", "label": "【BM】メモ用のリンク取得", "action": "javascript", "code": "javascript:(function(){var url = window.location.href;var title = document.title;var text = '■ ' + title + '\\n- - - - - - - - - - - - -\\n' + url;var dummy = document.createElement('textarea');document.body.appendChild(dummy);dummy.value = text;dummy.select();document.execCommand('copy');document.body.removeChild(dummy);})();" }, { "key": "ctrl+shift+D", "label": "【BM】辞書検索", "action": "javascript", "code": "javascript:(function() { var selectedText = window.getSelection().toString(); var sites = [ { name: 'ALC', url: 'https://eow.alc.co.jp/search?q=%27 }, { name: %27DeepL (JA to EN)%27, url: %27https://www.deepl.com/translator#ja/en/' }, { name: 'DeepL (EN to JA)', url: 'https://www.deepl.com/translator#en/ja/' }, { name: 'Weblio', url: 'https://www.weblio.jp/content/' }, { name: 'Urban Dictionary', url: 'https://www.urbandictionary.com/define.php?term=' }, { name: 'Wikipedia', url: 'https://ja.wikipedia.org/wiki/' }, { name: 'Cambridge Dictionary', url: 'https://dictionary.cambridge.org/dictionary/english/' } ]; var popupStyle = 'position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(255, 255, 255, 0.9); padding: 45px !important; text-align: center !important; box-shadow: rgba(100, 100, 100, 0.9) 0px 3px 20px !important; z-index: 100 !important;'; var linkStyle = 'font-size: 15px; background-color: rgb(40, 121, 255); border: 1px solid rgb(40, 121, 255); border-radius: 4px!important; color: rgb(255, 255, 255)!important; padding: 0.5em!important; margin: 0 5px 10px!important; text-decoration: none; display: inline-block;'; var popupHTML = '
'; for (var i = 0; i < sites.length; i++) { var searchURL = sites[i].url + encodeURIComponent(selectedText); var linkHTML = '' + sites[i].name + ''; popupHTML += linkHTML; } popupHTML += '×'; popupHTML += '
'; var popupContainer = document.createElement('div'); popupContainer.innerHTML = popupHTML; document.body.appendChild(popupContainer); var closeButton = document.getElementById('popupCloseButton'); closeButton.addEventListener('click', function() { document.body.removeChild(popupContainer); });})();", "sites": "", "sitesArray": [ "" ] }, { "key": "ctrl+shift+A", "label": "【BM】リンクテキストURL取得", "action": "javascript", "code": "javascript:(function(){var url = window.location.href;var title = document.title;var text = \"\" + title + \"\";navigator.clipboard.writeText(text);})();", "sites": "", "sitesArray": [ "" ] } ]