「Widget:TalkToc」:修訂間差異
imported>=海豚= 無編輯摘要 |
標籤:回退 |
||
(未顯示由 4 位使用者於中間所作的 31 次修訂) | |||
行 1: | 行 1: | ||
<noinclude>Only for | <noinclude>Only for Talk</noinclude><includeonly><!--{if !isset($wgTalkToc) || !$wgTalkToc}--><!--{assign var="wgTalkToc" value=true scope="global"}--><script> | ||
window. | window.addEventListener('jquery-ready', function() { | ||
if (location.hostname.includes("m.hmoegirl.info")) return; | |||
if (location.hostname.includes("m.hmoegirl. | |||
mw.loader.using(["oojs-ui"]).then(function() { | mw.loader.using(["oojs-ui"]).then(function() { | ||
if (!mw.config.get('talkTocLoaded', false)) { | if (!mw.config.get('talkTocLoaded', false)) { | ||
行 136: | 行 135: | ||
var self = $('#talkTocBox table'), | var self = $('#talkTocBox table'), | ||
a = $('<' + 'a/>').text(''); | a = $('<' + 'a/>').text(''); | ||
self.append('<' + 'caption/>').find('caption').append('< | self.append('<' + 'caption/>').find('caption').append('<br/>').append('').append(a).append('') | ||
.end().append('<' + 'tbody/>'); | .end().append('<' + 'tbody/>'); | ||
containers.not('.savedDiscussion').each(function(i) { | containers.not('.savedDiscussion').each(function(i) { | ||
行 261: | 行 260: | ||
}).join(', ')).attr("href", "#tocBox"); | }).join(', ')).attr("href", "#tocBox"); | ||
} | } | ||
$tocBox.css({ | $tocBox.css({ | ||
position: 'relative', | position: 'relative', | ||
行 299: | 行 292: | ||
}).trigger('hashchange'); | }).trigger('hashchange'); | ||
const g = ["sysop", "patroller"]; | const g = ["sysop", "patroller"]; | ||
} | } | ||
} | } | ||
行 322: | 行 298: | ||
</script><style> | </script><style> | ||
/* <pre> */ | /* <pre> */ | ||
@media screen and (min-width: 600px) { | |||
body { | |||
opacity: 0.95; | |||
background-image:url(https://www.hmoegirl.info/images/a/af/%E8%AE%A8%E8%AE%BA%E7%89%88%E8%AF%8D%E4%BA%91.jpg); | |||
background-repeat:no-repeat; | |||
} | |||
} | |||
#ca-nstab-project { | #ca-nstab-project { | ||
display: none; | display: none; | ||
行 382: | 行 365: | ||
.widgetTalkTocEnable #toc div.tocText { | .widgetTalkTocEnable #toc div.tocText { | ||
display: inline-block; | display: inline-block; | ||
} | } | ||
#toc:not(.toc-custom), | #toc:not(.toc-custom), | ||
行 429: | 行 396: | ||
.widgetTalkTocEnable .cbutton { | .widgetTalkTocEnable .cbutton { | ||
cursor: pointer; | cursor: pointer; | ||
} | |||
#ca-edit, #ca-editTopSection .mw-editsection { | |||
display: none !important; | |||
} | } | ||
.signInfo { | .signInfo { | ||
行 446: | 行 416: | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
#right-navigation.no-need-to-edit-whole-page ul>li# | #right-navigation.no-need-to-edit-whole-page ul>li#ca-no-need-to-edit-whole-page-notice a, | ||
#right-navigation.no-need-to-edit-whole-page ul>li# | #right-navigation.no-need-to-edit-whole-page ul>li#ca-no-need-to-edit-whole-page-notice a:visited { | ||
color: #222; | color: #222; | ||
text-decoration: none; | text-decoration: none; | ||
行 453: | 行 423: | ||
#right-navigation.no-need-to-edit-whole-page ul>li#Wikiplus-Edit-TopBtn, | #right-navigation.no-need-to-edit-whole-page ul>li#Wikiplus-Edit-TopBtn, | ||
#right-navigation.no-need-to-edit-whole-page ul>li#ca-edit, | #right-navigation.no-need-to-edit-whole-page ul>li#ca-edit, | ||
#right-navigation.no-need-to-edit-whole-page ul>li#ca-editTopSection { | #right-navigation.no-need-to-edit-whole-page ul>li#ca-editTopSection{ | ||
display: none; | display: none; | ||
} | } |
於 2023年8月18日 (五) 10:14 的最新修訂
Only for Talk