hide-threads.js: further fixes and customisations, mainly due to unexpanding previously not working here, but working on another boards (4chon, etc.)
This commit is contained in:
parent
95c50ae778
commit
1a43b87315
@ -55,11 +55,12 @@ $(document).ready(function(){
|
||||
|
||||
var hidden_div = thread_container.find('div.post.op > p.intro').clone();
|
||||
hidden_div.addClass('thread-hidden');
|
||||
hidden_div.find('a[href],input').remove();
|
||||
hidden_div.find('a[href]:not([href$=".html"]),input').remove();
|
||||
hidden_div.html(hidden_div.html().replace(' [] ', ' '));
|
||||
hidden_div.html(hidden_div.html().replace(' [] ', ' '));
|
||||
|
||||
$('<a class="unhide-thread-link" style="float:left;margin-right:5px" href="javascript:void(0)">[+]</a><span> </span>')
|
||||
.insertAfter(thread_container.find('a.hide-thread-link'))
|
||||
$('<a class="unhide-thread-link" style="float:left;margin-right:5px;margin-left:0px;" href="javascript:void(0)">[+]</a><span> </span>')
|
||||
.insertBefore(hidden_div.find(':first'))
|
||||
.click(function() {
|
||||
delete hidden_data[board][id];
|
||||
store_data();
|
||||
|
@ -458,6 +458,7 @@ table.mod.config-editor input[type="text"] {
|
||||
background-color: #fff;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.thread-hidden {
|
||||
opacity: 0.5;
|
||||
p.intro.thread-hidden {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user