您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
S 모바일 메인페이지 접속 시 숨,흑백모드 자동으로 설정
// ==UserScript== // @name 모바일 숨,흑 ON S // @author 리드(http://www.suyongso.com) // @namespace http://www.suyongso.com/ // @version 1.0 // @description S 모바일 메인페이지 접속 시 숨,흑백모드 자동으로 설정 // @include *://www.suyongso.com/ // @include *://suyongso.com/ // @grant none // @run-at document-start // ==/UserScript== var hideCookie = getCookie("hide"); var battCookie = getCookie("battery"); if (hideCookie == "" || battCookie == "") { // hide, battery가 없을 경우 할 행동 setCookie('hide','Y',300); setCookie('battery','Y',300); top.location.reload(); } else { // 이미 존재할 경우 할 행동 return; } function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }