評分:0, 年:0, 月:0, 週:0, 日:0, [+1 / -1] 最後更新:2018-03-05 04:08:40
寫了一個userscript
把綜合回復成原來樣子
[aa]
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include http://rem.komica2.net/00/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function _setStyle(s) {
$('.second-style').each(function(){
$(this).attr('href', '/custom_css');
});
}
function styleChoose() {
var set = '';
try {
set = $.cookie("theme");
} catch (e) {
set = '';
}
if(set && set != '') {
$('#theme-selector').val(set);
}
$('#theme-selector').change(function() {
var theme = $(this).val();
try {
$.cookie("theme", theme, {
path: '/',
expires: 365
});
} catch(e) {}
_setStyle(theme);
});
}
const toplink = document.getElementById("toplink");
var newtoplink = "";
newtoplink += "[<a href=\"//komica.org/\" target=\"_top\">回首頁</a>] [<a href=\"pixmicat.php?mode=search\">搜尋</a>] ";
newtoplink += "[<a href=\"pixmicat.php?mode=module&load=mod_threadlist\">檔案區</a>] [<a href=\"pixmicat.php?mode=admin\">管理區</a>] [<a href=\"index.htm?\">重新整理</a>]\n";
newtoplink += "<div style=\"display:inline-block;\">\n";
newtoplink += "<select id=\"theme-selector\">\n";
newtoplink += " <option value=\"\">預設</option>\n";
newtoplink += " <option value=\"dark.css\">夜間</option>\n";
newtoplink += "</select>\n</div>";
toplink.innerHTML = newtoplink;
const postinfo = document.getElementById("postinfo");
var newpostinfo = "";
newpostinfo += "<ul><li>可附加圖檔類型:GIF, JPG, JPEG, PNG, WEBM,瀏覽器才能正常附加圖檔</li><li>附加圖檔最大上傳資料量為 3072 KB。</li><li>當檔案超過寬 250 像素、高 250 像素時會自動縮小尺寸顯示</li>\n\n";
newpostinfo += "<li>AA可使用 [aa][/aa] 防止變形</li>\n\n";
newpostinfo += "<li>鬧板、攻擊性發言、煽動性發言請無視(回應者也無視),並使用del或在貓管理部向管理員回報。</li>\n</ul>";
postinfo.innerHTML = newpostinfo;
styleChoose();
})();
[/aa]