- #36
Dembadon
Gold Member
- 659
- 89
The new look is definitely growing on me. Thank you for all of the hard work you do to keep this site's quality high.
dkotschessaa said:Is the forum having a little indigestion with the changes? Seemed to be bouncing with 500 internal server errors this morning.
Looks fine to me.epenguin said:As you say you cannot please everybody. I soon noticed superscript + looks rather like a - as in [H+] and [OH-], involved in about 50% of the Chemistry and Biology questions, or is it only me needing new glasses?
jedishrfu said:will you be adding the colorizing of program source code to posts?
Geshi works well:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
.
echo "import antigravity" | pygmentize -l python -f bbcode
// ==UserScript==
// @name Physics Forums
// @namespace physicsforums
// @include [PLAIN]https://www.physicsforums.com/*[/PLAIN]
// @version 1
// @grant none
// ==/UserScript==
document.body.style.background = "none";
page = document.getElementsByClassName("page")[0];
page.style.width = "95%";
rightcontainer = document.getElementById ("right-container");
if (rightcontainer) rightcontainer.parentNode.removeChild (rightcontainer);
leftcontainer = document.getElementById ("left-container");
if (leftcontainer) leftcontainer.style.width = "100%";
posts = document.getElementsByClassName ("last-post");
for (i = 0; i < posts.length; i++) {
post = posts[i];
post.parentNode.width = "425px";
post.style.width = "400px";
link = post.children[0].children[0].children[0].children[0];
title = link.title;
title = title.substr (35);
title = title.substr (0, title.length - 1);
if (title.length > 55) title = title.substr (0, 55) + "...";
link.children[0].innerHTML = title;
}
pre = document.getElementsByTagName ("pre");
for (i = 0; i < pre.length; i++) {
if (pre[i].style.width == "640px") pre[i].style.width = "100%";
}
Why? Longer lines of text are harder to read.rubi said:i have a wide screen and it sucks that the design doesn't adapt to the window size.
Yes, you can. It's called Greasemonkey. Get it from here: https://addons.mozilla.org/de/firefox/addon/greasemonkey/Borg said:Uh... Did you apply it to a saved copy of the page? You can't get a script on your computer to apply itself to whatever page you choose on the internet.
Well, if you like shorter lines, then just change the number "95%" in the script to whatever you like better. The new design was just a bit too small for me. But it's a matter of taste i think.Fredrik said:Why? Longer lines of text are harder to read.
I knew I should have qualified that statement. Yeah, I guess if you're willing to modify the browser's functionality...rubi said:Yes, you can. It's called Greasemonkey. Get it from here: https://addons.mozilla.org/de/firefox/addon/greasemonkey/
Fredrik said:Why? Longer lines of text are harder to read.
posts = document.getElementsByTagName ("div");
for (i = 0; i < posts.length; i++) {
if (posts[i].id.substr (0,12) == "post_message") posts[i].style.width = "747px";
}
rubi said:I've made a Greasemonkey script for everyone who likes a flexible design. It also gets rid of the sidebar on the front page. I've attached a screenshot of the changes.
But here's a warning: I'm not a webdesigner, so maybe this is a very dilletantish way to do it, but it works for me. I also haven't tested this for more than 5 minutes and i didn't try it with other browsers than Firefox. So use it on your own risk.
Code:// ==UserScript== // @name Physics Forums // @namespace physicsforums // @include [PLAIN]https://www.physicsforums.com/*[/PLAIN] // @version 1 // @grant none // ==/UserScript== document.body.style.background = "none"; page = document.getElementsByClassName("page")[0]; page.style.width = "95%"; rightcontainer = document.getElementById ("right-container"); if (rightcontainer) rightcontainer.parentNode.removeChild (rightcontainer); leftcontainer = document.getElementById ("left-container"); if (leftcontainer) leftcontainer.style.width = "100%"; posts = document.getElementsByClassName ("last-post"); for (i = 0; i < posts.length; i++) { post = posts[i]; post.parentNode.width = "425px"; post.style.width = "400px"; link = post.children[0].children[0].children[0].children[0]; title = link.title; title = title.substr (35); title = title.substr (0, title.length - 1); if (title.length > 55) title = title.substr (0, 55) + "..."; link.children[0].innerHTML = title; } pre = document.getElementsByTagName ("pre"); for (i = 0; i < pre.length; i++) { if (pre[i].style.width == "640px") pre[i].style.width = "100%"; }
Fredrik said:Why? Longer lines of text are harder to read.
dlgoff said:Sure is a lot of trouble IMO. I have to agree with...
rubi said:I'm not saying this modified design is better. I just find it better personally and i thought i'd share it with everyone, who also thinks so.
ehild said:Greg, everything is very nice and works good, but that "Homework Help" looks strange. Does it mean a person? We are recognized as Homework Helpers. Can you add that little "er" back?
There would be less problems if you made the form a bit wider. It is not true that compressing the text into a narrow place is good to the eyes. I feel it quite bad, staring at small faint letters. There are other people feeling the same. I widened the whole thing from the Browser menu so as it fills the width of my screen, and it is much better now, but with big empty places in the first column. Enough place for "Homework Helper" under my name.
ehild
x2791258 said:There was a topic about the recognition titles: https://www.physicsforums.com/showthread.php?t=681029
I agree with you that "Homework help" doesn't sound/look good.