Closed Bug 309855 Opened 19 years ago Closed 19 years ago

Backgrounds Solution

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lucianolllg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

More Complete Solution for Backgrounds;

> This is a request that might or might not be part of this bug.
> 
> I would like to be able to change pages which come with a white background to a
> grey background, to ease the eye-strain. I DON'T want to change pages with other
> background colours.
> 
> Can this be done?


This urgently lacking to an archive with extension Javascript that can be
configured by the user; so that it can modify the configuration of the pages;
Please if it will be able sends this for that they develop the code of the
navigator; this will be a great improvement for the navigator; So that all can
configure backgrounds optional; an archive can already be written with these codes;

<script>
// <![CDATA[
document.onload = function() {
var adibody = document.getElementsByTagName('body')[0];
if(document.bgColor.toLowerCase() == '#ffffff' ||
document.body.style.backgroundColor =='#ffffff' ||
window.getComputedStyle(document.body,null).getPropertyValue('background-color')
=='#ffffff') {
adibody.style.backgroundColor= '#f4fff1!important';
}

var adtab = document.getElementsByTagName('table');
for(var itab=0; itab<adtab.length; itab++) {
if(adtab[itab].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtab[itab].style.backgroundColor == '#ffffff' ||
adtab[itab].bgColor.toLowerCase() == '#ffffff') {
adtab[itab].style.backgroundColor= '#f4fff1!important';
}
}

var adtd = document.getElementsByTagName('td');
for(var itd=0; itd<adtd.length; itd++) {
if(adtd[itd].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtd[itd].style.backgroundColor == '#ffffff' || adtd[itd].bgColor.toLowerCase()
== '#ffffff') {
adtd[itd].style.backgroundColor= '#f4fff1!important';
}
}

}


// ]]>
</script>

<script>
// <![CDATA[
(function() {
var adibody = document.getElementsByTagName('body')[0];
if(document.bgColor.toLowerCase() == '#ffffff' ||
document.body.style.backgroundColor =='#ffffff' ||
window.getComputedStyle(document.body,null).getPropertyValue('background-color')
=='#ffffff') {
adibody.style.backgroundColor= '#f4fff1!important';
}

var adtab = document.getElementsByTagName('table');
for(var itab=0; itab<adtab.length; itab++) {
if(adtab[itab].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtab[itab].style.backgroundColor == '#ffffff' ||
adtab[itab].bgColor.toLowerCase() == '#ffffff') {
adtab[itab].style.backgroundColor= '#f4fff1!important';
}
}

var adtd = document.getElementsByTagName('td');
for(var itd=0; itd<adtd.length; itd++) {
if(adtd[itd].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtd[itd].style.backgroundColor == '#ffffff' || adtd[itd].bgColor.toLowerCase()
== '#ffffff') {
adtd[itd].style.backgroundColor= '#f4fff1!important';
}
}

}
)();

// ]]>
</script>


In Portuguese;
Esta faltando urgentemente um arquivo com extensão javascript que possa ser
configurado pelo usuário ; para que possa alterar a configuração das páginas;
Por favor se puder envie este para aqueles que desenvolvem o código do navegador;
este será uma grande melhoria para o navegador;
Para que todos possam configurar os backgrounds opcionais; um arquivo pode ser
já escrito com estes códigos;


Reproducible: Always

Steps to Reproduce:
1. Urgent
If you think this is important, an extension would be a more appropriate
implementation than adding it to SeaMonkey.  We already have the ability to
change the background color (always) and that's sufficient for most users who
want something like this.

resolving WONTFIX.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
(In reply to comment #0)
> I would like to be able to change pages which come with a white background to a
> grey background, to ease the eye-strain. I DON'T want to change pages with other
> background colours.
> 
> Can this be done?

Maybe with a bookmarklet? See http://www.squarefree.com/userstyles/ for more
information.
(In reply to comment #2)
> (In reply to comment #0)
> > I would like to be able to change pages which come with a white background to a
> > grey background, to ease the eye-strain. I DON'T want to change pages with other
> > background colours.
> > 
> > Can this be done?
> 
> Maybe with a bookmarklet? See http://www.squarefree.com/userstyles/ for more
> information.




In English;
The difference between one bookmarklet and one escript that it is twirling
permanently in the deep one of the page prevents that if it has that to clicar
to each time that if wants that the code is called; 
This code allows that deep configured different of # FFFFFF they permanecam
unchanged; creating more dynamism for the pages;
 If the code to be twirling continuous for brings of the pages; it shows form of
dynamic preference;
 With reference already to be formed a good set of preferences for normal users;
 Of fact; I agree; Accurately; Observed well;
 But for example the GreaseMonkey in; --- mozdev.org - greasemonkey: index ---
--- http://greasemonkey.mozdev.org/ --- a good solution;
 But altra sufficiently the configuration of paletas of the nagegador;

<h1> A practical solution; Simple; Simple solution;</h1>
 To create a folder where the users who want can introduce codes;
 Codes that twirl together with the pages;
 THAT THEY MODIFY PREFERENCES USING JAVASCRIPT;
 E NOT CSS;
<h2> TIME THAT CSS CREATES CONFIGURATIONS THAT WOULD BE STANDARD; </h2>
 A folder must exist that observes codes JAVASCRIPT of the user;
 Without good that this mode can be as EXTENSION;      But it sees;
 The CREATION OF A SIMPLE FOLDER FOR JAVASCRIPT Of the USER IS ENOUGH ONLY;




In Portutguese;
A diferença entre um bookmarklet e um escript que fique rodando permanentemente
no fundo da página evita que se tenha que clicar a cada vez que se quer que seja
chamado o código;
Este código permite que fundos configurados diferentes de #FFFFFF permanecam
inalterados;
criando mais dinamismo para as páginas;
Se o código ficar rodando contínuo por traz das páginas; mostra forma de
preferência dinâmica;


Com referência a ser já formado um bom conjunto de preferências para usuários
normais;
De fato; Concordo; Exatamente; Bem observado;

Mas por exemplo o GreaseMonkey em;
  --- mozdev.org - greasemonkey: index ---
  --- http://greasemonkey.mozdev.org/ ---
Uma boa solução;
Mas altra bastante a configuração das paletas do nagegador;

Uma solução prática; Simples; Simples solução;

Criar uma pasta onde os usuários que queiram possam introduzir códigos;
Códigos que rodem junto com as páginas;
	QUE ALTEREM PREFERÊNCIAS USANDO JAVASCRIPT; E NÃO CSS;
  VES QUE CSS CRIA CONFIGURAÇÕES QUE SERIAM PADRÃO;

Deve existir uma pasta que observe códigos JAVASCRIPT do usuário;

Sem bem que este mode pode ser como EXTENSÃO;

Mas veja;
 BASTA APENAS A CRIAÇÃO DE UMA SIMPLES PASTA PARA JAVASCRIPTS DO USUÁRIO;
(In reply to comment #2)
> (In reply to comment #0)
> > I would like to be able to change pages which come with a white background to a
> > grey background, to ease the eye-strain. I DON'T want to change pages with other
> > background colours.
> > 
> > Can this be done?
> 
> Maybe with a bookmarklet? See http://www.squarefree.com/userstyles/ for more
> information.

Report IF ;
<h1> COMMAND IF IS CONDITIONAL </h1>
if(document.bgColor.toLowerCase() == '#ffffff' ||
document.body.style.backgroundColor =='#ffffff' ||
window.getComputedStyle(document.body,null).getPropertyValue('background-color')
=='#ffffff') { Condition }
<conditional_command_user ref="example">

  IF( background is #FFFFFF ) realize conditions // NOT STANDART

</conditional_command_user>


You need to log in before you can comment on or make changes to this bug.