|
4 | 4 | // @name:zh-TW 搜尋醬 |
5 | 5 | // @name:ja 検索ちゃん - SearchJumper |
6 | 6 | // @namespace hoothin |
7 | | -// @version 1.6.6.46.4 |
| 7 | +// @version 1.6.6.46.5 |
8 | 8 | // @description Jump to any search engine quickly and easily, the most powerful, most complete search enhancement script. |
9 | 9 | // @description:zh-CN 高效搜索引擎辅助增强,在搜索时一键跳转各大搜索引擎,支持任意页面右键划词搜索与全面自定义 |
10 | 10 | // @description:zh-TW 高效搜尋引擎輔助增强,在搜尋時一鍵跳轉各大搜尋引擎,支持任意頁面右鍵劃詞搜尋與全面自定義 |
|
683 | 683 | defaultFindTab: false, |
684 | 684 | disableAutoOpen: false, |
685 | 685 | hideOnSearchEngine: false, |
686 | | - minSizeMode: false |
| 686 | + minSizeMode: false, |
| 687 | + hidePopup: false, |
| 688 | + minPopup: false |
687 | 689 | }; |
688 | 690 | function run() { |
689 | 691 | const lang = navigator.appName == "Netscape" ? navigator.language : navigator.userLanguage; |
|
1351 | 1353 | display: inline-flex!important; |
1352 | 1354 | } |
1353 | 1355 | #search-jumper>.search-jumper-searchBar.funcKeyCall>.search-jumper-type { |
1354 | | - height: auto!important; |
1355 | | - width: ${240 * this.scale}px!important; |
1356 | | - flex-wrap: wrap!important; |
1357 | | - flex-direction: row; |
| 1356 | + height: ${searchData.prefConfig.minPopup ? '24px' : 'auto'}!important; |
| 1357 | + width: ${searchData.prefConfig.minPopup ? 24 : (240 * this.scale)}px!important; |
1358 | 1358 | max-width: unset; |
1359 | 1359 | max-height: ${108 * this.scale + 10}px; |
| 1360 | + flex-wrap: wrap!important; |
| 1361 | + flex-direction: row; |
1360 | 1362 | padding: 5px; |
1361 | 1363 | box-shadow: #000000 0px 0px 10px; |
1362 | 1364 | overflow: auto; |
|
1366 | 1368 | transition: none; |
1367 | 1369 | background: #d0d0d0d0; |
1368 | 1370 | } |
| 1371 | + #search-jumper>.search-jumper-searchBar.funcKeyCall>.search-jumper-type:hover { |
| 1372 | + height: auto!important; |
| 1373 | + width: ${240 * this.scale}px!important; |
| 1374 | + } |
1369 | 1375 | #search-jumper>.search-jumper-searchBar.funcKeyCall>.search-jumper-type::-webkit-scrollbar { |
1370 | 1376 | width: 0 !important; |
1371 | 1377 | height: 0 !important; |
|
6001 | 6007 | } |
6002 | 6008 |
|
6003 | 6009 | showInPage(funcKeyCall, e) { |
6004 | | - if (this.bar.contains(targetElement) || this.inInput || this.bar.classList.contains("funcKeyCall")) { |
| 6010 | + if (this.bar.contains(targetElement) || this.inInput || (!funcKeyCall && this.bar.classList.contains("funcKeyCall"))) { |
6005 | 6011 | return; |
6006 | 6012 | } |
| 6013 | + if (searchData.prefConfig.hidePopup) funcKeyCall = false; |
6007 | 6014 | if (this.bar.parentNode && this.bar.parentNode.classList.contains("search-jumper-showall")) return; |
6008 | 6015 | if (!targetElement) targetElement = document.body; |
6009 | 6016 | let _targetElement = targetElement, children; |
|
6097 | 6104 | searchData.prefConfig.offset.y |
6098 | 6105 | ); |
6099 | 6106 | } |
| 6107 | + this.bar.classList.remove("funcKeyCall"); |
6100 | 6108 | if (firstType && firstType.parentNode.classList.contains('search-jumper-hide')) { |
6101 | 6109 | if (!searchData.prefConfig.disableAutoOpen || funcKeyCall) { |
6102 | 6110 | firstType.onmousedown(); |
|
7830 | 7838 | }); |
7831 | 7839 | dragRoundFrame.addEventListener('drop', e => { |
7832 | 7840 | if (e.target === dragLogo) { |
| 7841 | + searchBar.bar.classList.remove("funcKeyCall"); |
7833 | 7842 | searchBar.showInPage(); |
7834 | 7843 | } else if (dragSector) { |
7835 | 7844 | searchBar.searchBySiteName(dragSector.children[0].dataset.name, e); |
|
0 commit comments