您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Добавление кнопки ответить как прочитанные на верх страницы. Так-же скрывает шапку на всех страницах кроме первой под spoiler .
当前为
// ==UserScript== // @name iks: virtonomica форум // @namespace virtonomica // @description Добавление кнопки ответить как прочитанные на верх страницы. Так-же скрывает шапку на всех страницах кроме первой под spoiler . // @include http://*virtonomica*.*/*/forum/forum_new/*/view* // @include http://*virtonomica*.*/*/forum/forum_new/*/topic/*/view* // @version 1.03 // @grant none // ==/UserScript== var run = function() { $("div#content > table").each(function() { if($(this).html().indexOf('Создать тему') + 1 ) $(this).append('<tr><td colspan="2">' + '<small>' + $('div#content > table.pagingContainer > tbody > tr > td > table.paging > tbody > tr > td').html().replace(/Страница:/g, '') + '</small>' + $('div#content > table.pagingContainer > tbody > tr > td').html() +'</td></tr>'); }); } var topic = function() { if( parseInt( $('#content > table.pagingContainer > tbody > tr > td > table.paging > tbody > tr > td > div > span.selected').html() ) > 1 ) { var id = $('#content > table:nth-child(9).message_color2 > tbody > tr > td.forum_message_content'); var str = $(id).html(); $(id).html( '<div class="bbSpoiler"><div class="bbSpoilerTitle">' +'<a href="#" onclick="return xbbSpoiler(this)"><span><strong>' + str.substring(0, 70).replace(/<br\s*[\/]?>/g, ' ') + '...</strong></span><span style="display:none"><strong>[-] Свернуть</strong></span></a></div>' +'<div class="bbSpoilerText" style="display: none;">'+ str + '</div></div>'); } } if(window.top == window) { if( window.location.href.indexOf('/topic') + 1 ) $( '<script/>', { text: '(' + topic.toString() + ')()' } ).appendTo('head'); else $( '<script/>', { text: '(' + run.toString() + ')()' } ).appendTo('head'); }