Page MenuHomePhabricator
Feed Advanced Search

Jan 18 2020

Patrick closed T470: Whonix home page redesign as Resolved.
Jan 18 2020, 12:22 PM · html, user documentation, Whonix

Nov 21 2019

Patrick updated the task description for T470: Whonix home page redesign.
Nov 21 2019, 7:56 PM · html, user documentation, Whonix

May 10 2019

madaidan added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

Alternatively, you could change the home page to the program's interface e.g. 127.0.0.1:7657 for I2P and start the browser with a script that creates a popup box using zenity or similar that tells the user the information.

May 10 2019, 4:48 PM · html, whonix-welcome-page, Whonix

Sep 17 2018

Patrick closed T808: mediawiki foreground skin: make items in navigation clickable without drop-down and without javascript as Invalid.

merged into T809

Sep 17 2018, 7:27 PM · Whonix, javascript, website, html

Jul 10 2018

Patrick updated the task description for T808: mediawiki foreground skin: make items in navigation clickable without drop-down and without javascript.
Jul 10 2018, 6:06 AM · Whonix, javascript, website, html
Patrick renamed T808: mediawiki foreground skin: make items in navigation clickable without drop-down and without javascript from mediawiki foreground skin: make items in navigation clickable without drop-down to mediawiki foreground skin: make items in navigation clickable without drop-down and without javascript.
Jul 10 2018, 6:05 AM · Whonix, javascript, website, html

Jul 7 2018

Patrick triaged T808: mediawiki foreground skin: make items in navigation clickable without drop-down and without javascript as Normal priority.
Jul 7 2018, 12:47 PM · Whonix, javascript, website, html

May 27 2018

Patrick added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

Please reference

May 27 2018, 5:05 AM · html, whonix-welcome-page, Whonix
Patrick added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

I don't know about running multiple Tor Browser's in parallel, but as
far as this environment variable is concerned, there won't be an issue
most likely.

May 27 2018, 5:02 AM · html, whonix-welcome-page, Whonix
iry added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

The starter script of the alternative TBB instance could overwrite this

global, default environment variable.

May 27 2018, 2:50 AM · html, whonix-welcome-page, Whonix

May 26 2018

Patrick added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

The starter script of the alternative TBB instance could overwrite this
global, default environment variable.

May 26 2018, 3:05 PM · html, whonix-welcome-page, Whonix
iry added a comment to T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).

I realized the homepage was set by an environment variable.

May 26 2018, 8:53 AM · html, whonix-welcome-page, Whonix

May 8 2018

Patrick renamed T795: Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage) from Customized landing page and bookmarks I2P/Alt TBB to Customized welcome page and bookmarks for I2P / Alt TBB (keyword: homepage).
May 8 2018, 7:22 PM · html, whonix-welcome-page, Whonix

Feb 23 2017

Patrick closed T613: fix mediawiki eating leading spaces in <pre> tag as Resolved.

https://www.whonix.org/wiki/Dev/mediawiki#pre_tag_with_white_spaces

Feb 23 2017, 4:11 PM · Whonix, research, website, html
Patrick closed T614: make our mediawiki's CodeSelect compatible with | as Resolved.

Great! Updated the wiki and documented here:

Feb 23 2017, 4:03 PM · Whonix, research, website, html
fortasse added a comment to T614: make our mediawiki's CodeSelect compatible with |.

Replacing the | with {{!}} will render a | as expected. {{!}} is a "magic word" to Mediawiki, and it converts it to a pipe character.

Feb 23 2017, 4:12 AM · Whonix, research, website, html
fortasse added a comment to T613: fix mediawiki eating leading spaces in <pre> tag.

Try making the opening tag <pre style="white-space: pre-wrap;"> instead of normal <pre>. There are a number of other wrapping/whitespace options if that doesn't work for what you need.

Feb 23 2017, 4:02 AM · Whonix, research, website, html

Jan 20 2017

Patrick updated subscribers of T613: fix mediawiki eating leading spaces in <pre> tag.
Jan 20 2017, 6:42 AM · Whonix, research, website, html
Patrick created T614: make our mediawiki's CodeSelect compatible with |.
Jan 20 2017, 6:41 AM · Whonix, research, website, html
Patrick created T613: fix mediawiki eating leading spaces in <pre> tag.
Jan 20 2017, 6:35 AM · Whonix, research, website, html

Feb 10 2016

Patrick created T470: Whonix home page redesign.
Feb 10 2016, 7:38 PM · html, user documentation, Whonix

Feb 10 2015

Patrick closed T93: copy to clipboard button for mediawiki code boxes as Resolved.
Feb 10 2015, 2:01 PM · javascript, html, research, website, Whonix
Linostar added a comment to T93: copy to clipboard button for mediawiki code boxes.

Closeable.

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

Closeable or anything left to do here?

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

Yes.

Feb 10 2015, 12:35 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, 12:28 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Okay, I see. So without having this feature natively supported by the skin or even mediawiki itself, there is no way?

Feb 10 2015, 11:38 AM · 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, 10:43 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Could it be done using https://www.whonix.org/wiki/MediaWiki:Common.css or the theme?

Feb 10 2015, 10:20 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, 9:01 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

To use less space between text and [select code], I was thinking to introduce some "invisible table" in the whole textarea. Normal text lines get the left 95% of space. And [select code] on the right gets the rest 5% (or how little) space.

Feb 10 2015, 8:09 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, 7:45 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Looks better. Yes. Makes sense.

Feb 10 2015, 1:56 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, 6:13 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

It looks better.

Feb 9 2015, 2:43 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, 2: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, 9:37 PM · javascript, html, research, website, Whonix

Feb 3 2015

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

Please read this security advice about editing MediaWiki:Common.css:
https://www.whonix.org/wiki/Dev/CSS

Feb 3 2015, 11:16 PM · javascript, html, research, website, Whonix
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, 8:36 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

As a personal matter of taste, instead of writing the following style (a)

Feb 3 2015, 6:06 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, 5:51 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Awesome, nice and simple fix!

Feb 3 2015, 4:47 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, 11:25 AM · 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, 7:07 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Without javascript, it's too much scrolling. Just two lines are visible. The rest needs to be scrolled.

Feb 1 2015, 4:57 AM · javascript, html, research, website, Whonix

Jan 30 2015

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, 11:43 AM · 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, 1:41 PM · javascript, html, research, website, Whonix
Patrick 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, 12:38 PM · javascript, html, research, website, Whonix
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, 12:26 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

We needed to disable raw html (the <html> tag) for security reasons [otherwise evil javascript could steal admin cookies due to edits by non-admin users] and are now using the safer Extension:Widgets.

Jan 29 2015, 12:08 PM · javascript, html, research, website, Whonix

Jan 24 2015

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

Looks perfect.

Jan 24 2015, 5:58 PM · javascript, html, research, website, Whonix
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, 8:01 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

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

Jan 24 2015, 2:56 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, 2:21 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Can the number of rows be auto detected?

Jan 23 2015, 1:42 PM · javascript, html, research, website, Whonix

Jan 22 2015

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, 7:32 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Nice template!

Jan 22 2015, 6:49 PM · javascript, html, research, website, Whonix

Jan 21 2015

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, 6:52 PM · javascript, html, research, website, Whonix

Jan 19 2015

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

Yes, you are now wiki admin.

Jan 19 2015, 4:13 PM · javascript, html, research, website, Whonix
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, 4:10 PM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

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, 3:57 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, 3:49 PM · javascript, html, research, website, Whonix
crackman added a comment to T93: copy to clipboard button for mediawiki code boxes.

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.

Jan 19 2015, 5:15 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Forgot to say... This shouldn't make things worse for users that have javascript disabled or using browser that don't have that feature yet.

Jan 19 2015, 1:56 AM · javascript, html, research, website, Whonix
crackman added a comment to T93: copy to clipboard button for mediawiki code boxes.

Hey guys,
if we wait a while it might become more commonplace and then we could potentially get this to work.
there's api support within HTML5 called ClipboardEvent.
it's currently supported by Firefox only, but i'm hoping other browsers will add support.

Jan 19 2015, 1:23 AM · javascript, html, research, website, Whonix
Patrick added a comment to T93: copy to clipboard button for mediawiki code boxes.

Okay. If that is most we can do, then we should go for it. I think I saw such a box before somewhere. Dunno where. But it's useful, no?

Jan 19 2015, 12:53 AM · 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, 7:28 AM · javascript, html, research, website, Whonix

Jan 16 2015

Patrick added projects to T93: copy to clipboard button for mediawiki code boxes: html, javascript.
Jan 16 2015, 9:41 PM · javascript, html, research, website, Whonix