Closed Bug 309112 Opened 19 years ago Closed 19 years ago

Script Custom Author ; My Macros Preferences

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 89016

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


This script MACRO
Custom advance configurations;
Browser Backgrounds Features;
<H3>
file:///C:/Program files/Mozilla Firefox/defaults/pref/macros.js
</H3>
My Macros Scripts ; Necessary implementation for the Browser

<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';
}
}

}

self.moveTo(0,0);
self.resizeTo(770,600);

// ]]>
</script>



This script not work into Browser;





THIS SCRIPT NOT WORK INTO BROWSER;
into automatic configurations for user preference;
INTO FILE;
<H3>
file:///C:/Program files/Mozilla Firefox/defaults/pref/macros.js
</H3>

Reproducible: Always
Reporter, can you please clarify?  I'm not understanding what symptoms you are
experiencing or what you are doing to reproduce them, nor what you are trying to do.
Maybe related to/duplicate of Core bug 89016?
(In reply to comment #1)
> Reporter, can you please clarify?  I'm not understanding what symptoms you are
> experiencing or what you are doing to reproduce them, nor what you are trying
to do.

Reply
In Portuguese
Estou tentando fazer com que as páginas abertas que contenham especificação de
fundo em cor #ffffff ; apareçam com outra configuração de cor;
 Falta para o navegador a criação de uma pasta especial onde o usuário possa
escrever os próprios códigos javascript para configurar a aparência das páginas;
Falta no navegador uma pasta criada para que o usuário possa introduzir seus
códigos javascript;
Então uma pasta com nome 'configurar' e dentro dela um arquivo com nome macro.js ;
Ou; Então; falta um arquivo com extenção 'js'
onde o usuário possa manter e criar seus códigos para mudar a aparência das páginas;



In English;
I am trying to make with that the open pages that contain deep specification of
in color # ffffff; they appear with another configuration of color; Lack for the
navigator the creation of a special folder where the user can write the proper
codes Javascript to configure the appearance of the pages; Lack in the navigator
a bred folder so that the user can introduce its codes Javascript; Then a folder
with name ' to inside configure ' and of it an archive with name macro.js; Or;
Then; it lacks to an archive with extenção ' js ' where the user can keep and
create its codes to change the appearance of the pages;
Dup of bug 89016 (confirmed by jX, who knows some Portuguese).  You can do what
you want with Greasemonkey from http://greasemonkey.mozdev.org/.

*** This bug has been marked as a duplicate of 89016 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
(In reply to comment #4)
> Dup of bug 89016 (confirmed by jX, who knows some Portuguese).  You can do what
> you want with Greasemonkey from http://greasemonkey.mozdev.org/.
> 
> *** This bug has been marked as a duplicate of 89016 ***
In Portuguese
Agradecido pela sua cordial atenção;
Felicitações; Porém GreaseMonkey só funciona até a versão 1.0 do navegador;
Estou usando a versão 1.5beta1;

In English
Greasemonkey 0.5.3 could not be installed because it is not compatible with
Firefox 1.4.
(Greasemonkey 0.5.3 wil only work Firefox versions from 0.9 to 1.0+)


(In reply to comment #4)
> Dup of bug 89016 (confirmed by jX, who knows some Portuguese).  You can do what
> you want with Greasemonkey from http://greasemonkey.mozdev.org/.
> 
> *** This bug has been marked as a duplicate of 89016 ***

Está faltando; um arquivo nativo do navegador onde possa introduzir códigos como
por exemplo com o endereço;
file:///C:/Program files/Mozilla Firefox/defaults/pref/macros.js
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
> Greasemonkey 0.5.3 could not be installed because it is not compatible with
> Firefox 1.4.

Greasemonkey 0.6.x is compatible with Firefox 1.5 Beta 1. 
http://greaseblog.blogspot.com/2005/09/firefox-15-compatible-greasemonkey.html
Yes, that's what bug 89016 is about, which is why this is a dup of bug 89016.

*** This bug has been marked as a duplicate of 89016 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.