[綜合]無題 無名 ID:Fekuf34U 2018/03/04(日) 19:59:27.821 No.11021691
評分: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]
無題 無名 ID:Fekuf34U 2018/03/04(日) 20:01:01.726 No.11021706
重貼
// ==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();
})();
無題 無名 ID:vEW12wvw 2018/03/04(日) 20:06:45.733 No.11021772 是還不錯啦
不過怎麼那些自體高潮的外來種沒半個理你?
這次不是夜間垃圾板我就不裝了
純推不下
無題 無名 ID:tqOq/24w 2018/03/04(日) 20:11:28.006 No.11021819
無題 無名 ID:vEW12wvw 2018/03/04(日) 20:39:27.394 No.11022113