Page MenuHomePhabricator

Linostar (Linostar)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 17 2015, 6:59 AM (252 w, 5 d)

Recent Activity

Feb 10 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Closeable.

Feb 10 2015, 2:19 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1816, @Patrick wrote:

What about moving [select code] inside the codebox? Is that even possible? Optically non-ideal, but in my opinion still better than the gap. Users who manually select select all, would they also select the text [select code] or could that be made exempt?

Feb 10 2015, 1:28 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Making only the lines before a CodeSelect shorter is not possible, because you can't know what element comes next or before in css. Making all lines shorter is possible perhaps, but will likely break the layout of other elements and the page.

Feb 10 2015, 11:43 AM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Nope. Controlling something outside the widget is not possible from inside the widget, especially when the lines outside are put in <p> element, which is an element that does not possess a width attribute.

Feb 10 2015, 10:01 AM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

You mean you want [select code] link inside the box instead of outside?

Feb 10 2015, 8:45 AM · javascript, html, research, website, Whonix

Feb 9 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1727, @Patrick wrote:

It looks better.
Do you think the extra spaces can be further reduced?
See:
https://www.whonix.org/wiki/Security_Guide#Updates
(Between "Should look similar to this." and the next code block there is too much space for my taste.)

Feb 9 2015, 7:13 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

I have decided to give it another chance, and got some results. I found that the problem wasn't in the <div> tags, but because of the <textarea>. It turns out that <textarea> has a default margin-bottom value of 10px. I changed that value to 0, which shortened the distance between the CodeSelect box and the line(s) after.

Feb 9 2015, 3:24 PM · javascript, html, research, website, Whonix

Feb 4 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1398, @Patrick wrote:

Please read this security advice about editing MediaWiki:Common.css:
https://www.whonix.org/wiki/Dev/CSS
Then... Perhaps you could make the required css changes on the https://www.whonix.org/wiki/MediaWiki:Common.css page? I'd speculate, that you have a lot more freedom there.
And if all cords break, I think using mediawiki skins (we are using this one: https://github.com/OSAS/strapping-mediawiki which is open source) one has an almost unlimited options for customization?

Feb 4 2015, 10:37 PM · javascript, html, research, website, Whonix

Feb 3 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Within the CodeSelect area, it adds an extra empty line after "sudo apt-get update" at the bottom. Can this be fixed?

Fixed.

Feb 3 2015, 9:36 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Unfortunately, it is necessary to keep it. Without it, any code that contains a '=' will face a problem.

Feb 3 2015, 6:51 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

I was too blind to see the most obvious solution! No need to use mediawiki extensions even.

Feb 3 2015, 12:25 PM · javascript, html, research, website, Whonix

Feb 1 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

The problem is that mediawiki doesn't allow full access (or any access) to the window object in javascript. That's why I am unable to select the contents of an element unless it is an input text or a textarea, both containing an embedded selecting function and don't need to use the window object.

Feb 1 2015, 8:07 AM · javascript, html, research, website, Whonix

Jan 30 2015

Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

Yes, I think it is. Consider the case where the time is around midnight. It may look confusing otherwise.

Jan 30 2015, 2:07 PM · usability, Whonix 10, Whonix, tb-updater
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

I've added the auto-resizing feature. You can test with js enabled/disabled to see how it would look on:
https://www.whonix.org/wiki/Translatetest5

Jan 30 2015, 12:43 PM · javascript, html, research, website, Whonix

Jan 29 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1312, @Patrick wrote:

Does not seem that widgets allow html/js code on their own when raw html is disabled, as in your:
https://www.whonix.org/wiki/Widget:Share

Not sure I understand. The raw html is not correctly rendered on that https://www.whonix.org/wiki/Widget:Share page. But the calling page https://www.whonix.org/wiki/Template:Share shows the correctly rendered html that is based on the widget page's html code.

Perhaps you should enable <html> tags only in template pages instead? (if that's possible)

Unfortunately, that's not possible. (Not saying it's impossible, but would require writing a mediwiki extension for that and html extensions getting right seems very hard - judged by all the attempts that were made in past.)

Jan 29 2015, 2:41 PM · javascript, html, research, website, Whonix
Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

They sound logical to me.

Jan 29 2015, 1:28 PM · usability, Whonix 10, Whonix, tb-updater
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Does not seem that widgets allow html/js code on their own when raw html is disabled, as in your:
https://www.whonix.org/wiki/Widget:Share

Jan 29 2015, 1:26 PM · javascript, html, research, website, Whonix

Jan 24 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1114, @Patrick wrote:

I am afraid not. Yes, it can be done with javascript, but if javascript is disabled, the code boxes will just look ugly.

How does the <pre> tag do this then? Would require a mediawiki extension then?

Jan 24 2015, 9:01 AM · javascript, html, research, website, Whonix

Jan 23 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1110, @Patrick wrote:

Can the number of rows be auto detected?

Jan 23 2015, 3:21 PM · javascript, html, research, website, Whonix
Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

Perhaps we can cross out the word 'Downloaded', so they become:

Previous Signature Creation Date:
Last Signature Creation Date:
Jan 23 2015, 2:37 PM · usability, Whonix 10, Whonix, tb-updater
Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

Nope, I am not a native English speaker. In that case, your last suggestion is better:

Creation date of the last downloaded signature:
Jan 23 2015, 7:43 AM · usability, Whonix 10, Whonix, tb-updater

Jan 22 2015

Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

Simply "Creation date of the last downloaded signature"?

Jan 22 2015, 8:39 PM · usability, Whonix 10, Whonix, tb-updater
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

I made a change that gets '=' to display properly instead of being a treated as a part of the template. As consequence, the new syntax for the template has become:
{{CodeSelect|number_of_rows|code=actual_code_goes_here}}

Jan 22 2015, 8:32 PM · javascript, html, research, website, Whonix
Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

Simply "Creation date of the last downloaded signature"?

Jan 22 2015, 8:01 PM · usability, Whonix 10, Whonix, tb-updater

Jan 21 2015

Linostar added a comment to T104: tb-updater signature/install confirmation screen usability review.

I see the phrasing and the sentences are very clear.

Jan 21 2015, 8:52 PM · usability, Whonix 10, Whonix, tb-updater
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

I managed to do it. I found that there are some constraints on javascript code in wikimedia and the normal selecting methods don't work. As a workaround, I had to substitue the <pre> element with a <textarea> element and changed the style of the latter to look like the former.

Jan 21 2015, 7:52 PM · javascript, html, research, website, Whonix

Jan 19 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1046, @Patrick wrote:

Javascript is enabled and the test popup is working. Security is not an issue here. We are using FlaggedRevs extension. New edits won't be shown to regular users by default as long as admins have not confirmed these changes.

Jan 19 2015, 5:10 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.
In T93#1044, @crackman wrote:

Patrick,
Trying a bit now. Can you enable javascript in the wiki settings somewhere for the testing to work?
As it stands I cannot make any javascript work - it gets read as text rather than a script.
Make sure you can only enable in that one page, lest someone try to hijack the site.
If we cannot get Javascript to work, we'll have to just leave it as "user selects, copies, pastes themselves"

Jan 19 2015, 4:49 PM · javascript, html, research, website, Whonix

Jan 17 2015

Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Actually, that is an issue that has caused frustration to many js developers over the years.

Jan 17 2015, 8:28 AM · javascript, html, research, website, Whonix