Jump to content

Option to show hidden comments by default


base64

Recommended Posts

 

 

 

Bothering you again.  Any way to have it toggled to "Show" (rather than Hide) by default?  I am not good with computer.

Link to comment
Share on other sites

Bothering you again.  Any way to have it toggled to "Show" (rather than Hide) by default?  I am not good with computer.

You mean automatically click the "Show all hidden comments" as soon as the page is loaded?
Link to comment
Share on other sites

You mean automatically click the "Show all hidden comments" as soon as the page is loaded?

 

Yeah.  Whatever steps would lead to that result.  Save myself the one click :P

Link to comment
Share on other sites

Userscript for Greasemonkey for Firefox and Tampermonkey for Google Chrome.
 
It shows a "Show/Hide all hidden comments" link at the first post in a suggestion (with the link list at the bottom right).
It shows all hidden comments by default.

When using Google Chrome, you need to delete line #12.
When you do not want the script to show all hidden comments by default, delete line #41.
 

// ==UserScript==
// @name        BPTFAutoToggleHiddenComments
// @namespace   http://backpack.tf/ns/userscripts
// @description backpack.tf auto toggle all hidden comments
// @include     http://backpack.tf/vote/id/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @grant       none
// @version     1.12
// ==/UserScript==


this.$ = this.jQuery = jQuery.noConflict(true); // delete this line if you are using Tampermonkey with Google Chrome

function toggleAllHiddenComments() {
	var hide = btn.hasClass('hideall');

	$('div.stack-details.hide').each(function () {
		var ishidden = $(this).css('display') == 'none';

		$('div.pull-right button', $(this).next('div')).each(function () {
			if (hide != ishidden && $(this).text().search('Show hidden') >= 0) {
				$(this).click();
			}
		});
	});

	if (hide) {
		btn.removeClass('hideall');
		btn.text('Show all hidden comments');
	} else {
		btn.addClass('hideall');
		btn.text('Hide all hidden comments');
	}
}


var btn = $('<button class="btn btn-mini btn-link" type="button">Show all hidden comments</button>');
$(btn).click(toggleAllHiddenComments);
$('div.stack-info div.pull-right', $('div.stack-comment').first()).append('·', btn);

toggleAllHiddenComments(); // delete this line if you do not want to have hidden comments shown by default
Link to comment
Share on other sites

needs to have a dislike and like button, but maybe not hide comments?

have like a flag, dislike and like

and flags do-not close but alert MOD about spam offesive comments ect, to prevent spam of flag, you must provide a reason why it was flagged E.X. offensive towards jewish people ("fucking jews") 

Link to comment
Share on other sites

needs to have a dislike and like button, but maybe not hide comments?

have like a flag, dislike and like

and flags do-not close but alert MOD about spam offesive comments ect, to prevent spam of flag, you must provide a reason why it was flagged E.X. offensive towards jewish people ("fucking jews") 

 

http://forums.backpack.tf/index.php?/topic/123-ability-to-report-commentsusers/?hl=report

Link to comment
Share on other sites

  • 4 weeks later...

I hope this functions gets formally integrated into http://backpack.tf/settings

 

Most of the 83 comments from http://backpack.tf/vote/id/5162c18b4bd7b8de4f000012 were written through the process of thinking, and they are not spam. 

 

They deserve to be displayed by default even if the majority (from the 4 million+ F2P) doesn't want to comprehend them. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...