您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
뽐뿌 전자담배포럼에서 장터글을 숨기거나 보이도록 설정할 수 있습니다.
// ==UserScript== // @name Hide market entries in ppomppu e-cig forum // @name:ko 전담포럼 장터글 숨김 // @namespace // @description 뽐뿌 전자담배포럼에서 장터글을 숨기거나 보이도록 설정할 수 있습니다. // @include http://www.ppomppu.co.kr/zboard/zboard.php?id=e_cig* // @include http://ppomppu.co.kr/zboard/zboard.php?id=e_cig* // @version 1.0 // @grant GM_getValue // @grant GM_setValue // @run-at document-end // ==/UserScript== var optionsEnum = { "COLLAPSE":1, "HIDE":2, "SHOW":3 }; function showhide(flag) { var key=document.querySelectorAll('td .han4'); for (var i in key) { if (key[i].textContent==='장터') { // key[i].parentNode.parentNode.style.visibility = (flag==1)?'collapse':(flag==2)?'hidden':'visible'; // use 'display:none' instead of 'visibility:collapse' due to a defect of chrome. key[i].parentNode.parentNode.style.display = (flag==optionsEnum.COLLAPSE) ? 'none':''; key[i].parentNode.parentNode.style.visibility = (flag==optionsEnum.HIDE) ? 'hidden':''; if (flag==optionsEnum.HIDE) key[i].style.visibility = 'visible'; } } } // 검색중이거나 장터탭이 아닐 때만 if (! /category=4|search_type=/.test(window.location) ) { var flag = GM_getValue('hideMarketEntries', optionsEnum.SHOW); var optSelector = document.createElement('div'); optSelector.style.display = 'inline-block'; optSelector.style.color = 'red'; optSelector.innerHTML='장터글\ <select id="marketFlag">\ <option value="1">숨김\ <option value="2">가리기\ <option value="3">보이기\ '; document.getElementById('navlist').appendChild(optSelector); marketFlag.selectedIndex = flag-1; marketFlag.onchange=function(){GM_setValue('hideMarketEntries',flag=this.value); showhide(flag);}; showhide(flag); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址