On 21-11-2014 12:56, William Harrington wrote:
>> On Fri, November 21, 2014 12:00, Fernando de Oliveira wrote:
>>> On 20-11-2014 19:28, akhiezer wrote:
> 
>>> Also useful to know, is what config-file(s) and setting(s) handle
>>> the feature; not least for auto-config of such files, rather than
>>> death-by-a-thousand-clicks.
>>>
>>> Had a quick web-srch, but nada; and haven't installed the update to have
>>> a look.
>>>
>>> D'you happen to know that info? No probs of course if not; guess it'll
>>> be
>>> clear in time.
>>
>> No, but I agree with you, it would be fine to remove then (optional
>> instructions in the book, of course), during build.
>>
>>
>> --
>> []s,
>> Fernando
> 
> Greetings Fernando and Akhiezer,
> 
> Is it as simple as comparing the source between 31.1.1 and 31.1.0.
> 
>>From what I read, 31.1.0 had no ads, and 31.1.1 has ads.

Lucky us, I forgot to remove firefox-33.0.2 and firefox-33.0.3. I will
keep them there, while this is discussed.

I'm almost sure form experimentation thathe ads in the new tab appeared
in firefox-33.1.

> Perhaps the changes could be found since it is a very recent addition.
> 
> I have not looked at the changes in the source as I've been busy testing a
> new server build which I want to deploy soon. I may take a gander at the
> changes when I get home from work.

I could not understand exactly where I could remove the ads in the
source code.

But, after you start 33.1 and quit, following sed works:

sed -e '/browser.newtabpage.enhanced/ s/true/false/' \
    -e '/browser.newtabpage.enhanced/ \
       iuser_pref("browser.newtabpage.enabled", false);'
    -i ~/.mozilla/firefox/*.profile/prefs.js

I have also the probably most relevant places below, but don't know what
to do with it (each line starts with firefox-33.0.3 or firefox-33.1.0 -
I renamed the directories for these two names. I see places wher I could
change the first sed command, but not the second one.

$ grep -r newtabpage firefox-33.* | grep -E 'enabled|enhanced'
firefox-33.0.3/browser/app/profile/firefox.js:pref("browser.newtabpage.enabled",
true);
firefox-33.0.3/browser/base/content/test/newtab/head.js:const
PREF_NEWTAB_ENABLED = "browser.newtabpage.enabled";
firefox-33.0.3/browser/base/content/newtab/page.js:      if (aData ==
"browser.newtabpage.enhanced") {
firefox-33.0.3/browser/base/content/tabbrowser.xml:
this._browserNewtabpageEnabled =
Services.prefs.getBoolPref("browser.newtabpage.enabled");
firefox-33.0.3/browser/metro/profile/metro.js:pref("browser.newtabpage.enabled",
true);
firefox-33.0.3/toolkit/modules/DirectoryLinksProvider.jsm:const
PREF_NEWTAB_ENHANCED = "browser.newtabpage.enhanced";
firefox-33.0.3/toolkit/modules/tests/xpcshell/test_DirectoryLinksProvider.js:const
kNewtabEnhancedPref = "browser.newtabpage.enhanced";
firefox-33.0.3/toolkit/modules/NewTabUtils.jsm:const PREF_NEWTAB_ENABLED
= "browser.newtabpage.enabled";
firefox-33.0.3/toolkit/modules/NewTabUtils.jsm:const
PREF_NEWTAB_ENHANCED = "browser.newtabpage.enhanced";
firefox-33.1.0/browser/app/profile/firefox.js:pref("browser.newtabpage.enabled",
true);
firefox-33.1.0/browser/base/content/test/newtab/head.js:const
PREF_NEWTAB_ENABLED = "browser.newtabpage.enabled";
firefox-33.1.0/browser/base/content/newtab/page.js:      if (aData ==
"browser.newtabpage.enhanced") {
firefox-33.1.0/browser/base/content/tabbrowser.xml:
this._browserNewtabpageEnabled =
Services.prefs.getBoolPref("browser.newtabpage.enabled");
firefox-33.1.0/browser/metro/profile/metro.js:pref("browser.newtabpage.enabled",
true);
firefox-33.1.0/toolkit/modules/DirectoryLinksProvider.jsm:const
PREF_NEWTAB_ENHANCED = "browser.newtabpage.enhanced";
firefox-33.1.0/toolkit/modules/tests/xpcshell/test_DirectoryLinksProvider.js:const
kNewtabEnhancedPref = "browser.newtabpage.enhanced";
firefox-33.1.0/toolkit/modules/NewTabUtils.jsm:const PREF_NEWTAB_ENABLED
= "browser.newtabpage.enabled";
firefox-33.1.0/toolkit/modules/NewTabUtils.jsm:const
PREF_NEWTAB_ENHANCED = "browser.newtabpage.enhanced";



-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to