Bitcoin Forum

Other => Meta => Topic started by: subSTRATA on October 07, 2018, 01:39:55 PM



Title: Small QOL change to consider
Post by: subSTRATA on October 07, 2018, 01:39:55 PM
Could we possibly get a bigger text box on the report page as opposed to the 1 liner size one we have right now? Not exactly a pressing issue, but it'd be nice to be able to see what I type when writing up some larger reports or have to include multiple links and such.

Like this
https://i.imgur.com/kPdmmgI.png
or something like that.


Title: Re: Small QOL change to consider
Post by: BitCoinDream on October 07, 2018, 01:44:23 PM
Existing database will require a field alteration.


Title: Re: Small QOL change to consider
Post by: subSTRATA on October 07, 2018, 02:44:03 PM
Existing database will require a field alteration.
ah is that so? darn shame. wouldve been nice, but it's not a big deal.


Title: Re: Small QOL change to consider
Post by: suchmoon on October 07, 2018, 02:52:31 PM
I created a small browser extension for FireFox / Tor Browser that basically does this:

Code:
if (window.location.href.startsWith("https://bitcointalk.org/index.php?action=reporttm")) {
    document.getElementsByName("comment")[0].style.width = "80%";
}

Looks like this:

https://meem.link/i/a/s6rdqj.jpg
Edited 2020-11-29 to fix a broken image

It's still one line but good enough for me. Replacing it with a multiline text area could be done with createElement/replaceChild.

Would be nice to have a proper solution though.

Existing database will require a field alteration.

I don't think so. You can type a lot into that poor little textbox - the field size in the DB seems to be fairly large.


Title: Re: Small QOL change to consider
Post by: subSTRATA on October 07, 2018, 03:08:52 PM
-
dunno if the exact code will work on chrome, but i guess it's a simple matter of writing a few lines. would be nice to actually have the code changed, but i guess this'll do for now.


Title: Re: Small QOL change to consider
Post by: suchmoon on October 07, 2018, 04:25:25 PM
-
dunno if the exact code will work on chrome, but i guess it's a simple matter of writing a few lines. would be nice to actually have the code changed, but i guess this'll do for now.

I think it should work. You can either google a "hello world" example of how to create a browser extension, or use something like Tampermonkey to inject javascript into the page. Or use Stylebot to change the width of the box. I didn't want any third-party extensions in my Tor Browser so I rolled my own.


Title: Re: Small QOL change to consider
Post by: suchmoon on October 07, 2018, 05:36:29 PM
Existing database will require a field alteration.

There's an ugly solution which is storing enter as "\n" on comment field.
Also, we actually don't know the field type and perhaps it already supports enter.

It's a matter of how moderators see it. I think it comes over as a PM, so newlines and perhaps even bbcode could work.


Title: Re: Small QOL change to consider
Post by: Quickseller on October 07, 2018, 08:58:25 PM
Existing database will require a field alteration.
I am not expert, however I would think this would be a simple display issue.


Title: Re: Small QOL change to consider
Post by: subSTRATA on October 08, 2018, 02:06:14 AM
Existing database will require a field alteration.

There's an ugly solution which is storing enter as "\n" on comment field.
Also, we actually don't know the field type and perhaps it already supports enter.

It's a matter of how moderators see it. I think it comes over as a PM, so newlines and perhaps even bbcode could work.
iirc i've been told in the past that the mods have a page where they view reports, not via pm.


Title: Re: Small QOL change to consider
Post by: suchmoon on October 08, 2018, 02:17:45 AM
iirc i've been told in the past that the mods have a page where they view reports, not via pm.

Yeah that would make more sense...