User:Dickvl/Private Browsing disable: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
(pbconfig version 1.3 , no userChrome.css code needed)
Line 1: Line 1:
===Private Browsing===
Here is a simple extension to disable the "Tools ->  Start Private Browsing" menu entry and the "Tools > Clear Recent History" menu entry in Firefox 3.5/6.<br>
Here is a simple extension to disable the "Tools ->  Start Private Browsing" menu entry and the "Tools > Clear Recent History" menu entry in Firefox 3.5/6.<br>
The extension hides these menu entries and also disables their shortcut keys and should prevent Firefox from entering Private Browsing mode. The code doesn't hide "[[Menu_differences|Tools -> Options]] -> Privacy" to start PB mode automatically and you need to add code to userChrome.css to do that. The code in userChrome.css also hides the menu entries if the extension is disabled or not installed. Current Firefox versions still process code in userChrome.css if started in [[Safe_mode]]. It is possible to clear the cache via "[[Menu_differences|Tools -> Options]] -> Advanced -> Network" and to clear history in the Library and History sidebar. See also [https://wiki.mozilla.org/Firefox3.1/PrivateBrowsing/SecurityReview]
The extension hides these menu entries and also disables their shortcut keys and should prevent Firefox from entering Private Browsing mode. The CSS code (chrome://pbdisable/content/pbdisable.css) in the extension also hides "[[Menu_differences|Tools -> Options]] -> Privacy -> Automatically start Firefox in a private browsing session" and the History setting. You can copy that code to [[userChrome.css]] if you want these entries hidden if the extension is disabled. Current Firefox versions still process code in userChrome.css if started in [[Safe_mode]]. Keep in mind that removing or disabling "Private Browsing" will not make it impossible to delete private data like visited websites (history) or cache.  It is possible to clear the cache via "[[Menu_differences|Tools -> Options]] -> Advanced -> Network" and to clear history in the Library and History sidebar. See also [https://wiki.mozilla.org/Firefox3.1/PrivateBrowsing/SecurityReview]


You can copy and paste this code in the '''"Tools > Error Console"''' to test if it is possible to toggle Private Browsing mode before and after you have installed the extension. It should not be possible, but what Firefox shows can be deceiving as it looks a bit buggy to me. You can check if new history is still kept.
You can copy and paste this code in the '''"Tools > Error Console"''' to test if it is possible to toggle Private Browsing mode before and after you have installed the extension. It should not be possible, but what Firefox shows can be deceiving as it looks a bit buggy to me. You can check if new history is still kept.
Line 9: Line 8:
pbs.privateBrowsingEnabled = !pbs.privateBrowsingEnabled;
pbs.privateBrowsingEnabled = !pbs.privateBrowsingEnabled;
void(alert('PB is '+((newPM=pbs.privateBrowsingEnabled)?'on':'off')+((oldPM==newPM)?' (failed)':'')));
void(alert('PB is '+((newPM=pbs.privateBrowsingEnabled)?'on':'off')+((oldPM==newPM)?' (failed)':'')));
</pre>
Add this code to [[userChrome.css]] below the @namespace line (only add the @namespace line if it is missing).<br>
See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
<pre>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide PB and Sanitize item in Tools menu */
#sanitizeSeparator, #privateBrowsingItem, #sanitizeItem {display:none!important;}
/* Hide AutoStart PB and some History settings in Options > Privacy */
#rememberHistoryDays,#historyDays,#rememberAfter,
#privateBrowsingAutoStart, #clearDataBox {display:none!important;}
</pre>
</pre>


Line 40: Line 27:
For full instructions, see [[Locking_preferences]]
For full instructions, see [[Locking_preferences]]


Copy and paste the full DATA code in the location bar and press the Enter key. Save the file as '''pbdisable.xpi''' (version 1.2, updated Feb 23, 2010)<br>
Copy and paste the full DATA code in the location bar and press the Enter key. Save the file as '''pbdisable-1.3-fx.xpi''' (version 1.3, updated Feb 23, 2010)<br>
You can install the extension via "File > Open File" or by dragging the file in a Firefox window.<br>
You can install the extension via "File > Open File" or by dragging the file in a Firefox window.<br>
You can move the extensions folder (pbdisable@mozillazine.org) from the extensions folder in the [[Profile_folder_-_Firefox|Profile Folder]] to the ''%AppData%\Mozilla\extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}'' folder or to the '''extensions''' folder in the Firefox program folder to make the extension work in all Firefox profiles. If you do that then you can't uninstall, but you can disable the extension. You can also drop the XPI file in that folder and the extension will be installed on the next start of Firefox [https://developer.mozilla.org/en/Installing_extensions].<br><!-- http://ehsanakhgari.org/blog/2008-11-08/prepare-your-add-private-browsing -->
You can move the extensions folder (pbdisable@mozillazine.org) from the extensions folder in the [[Profile_folder_-_Firefox|Profile Folder]] to the ''%AppData%\Mozilla\extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}'' folder or to the '''extensions''' folder in the Firefox program folder to make the extension work in all Firefox profiles. If you do that then you can't uninstall, but you can disable the extension. You can also drop the XPI file in that folder and the extension will be installed on the next start of Firefox [https://developer.mozilla.org/en/Installing_extensions].<br><!-- http://ehsanakhgari.org/blog/2008-11-08/prepare-your-add-private-browsing -->
Line 46: Line 33:
UEsDBBQAAAAIAHuYPzw3xI8ySQAAAHwAAAAPABUAY2hyb21lLm1hbmlmZXN0VVQJAAMJxmVLCcZl
UEsDBBQAAAAIAHuYPzw3xI8ySQAAAHwAAAAPABUAY2hyb21lLm1hbmlmZXN0VVQJAAMJxmVLCcZl
S1V4BADoA2QAS87PK0nNK+EsSErJLE5MyknlTM4oys9N1U+GSOjzcvFy5ZelFuUkVkKlrPT1k4ry
S1V4BADoA2QAS87PK0nNK+EsSErJLE5MyknlTM4oys9N1U+GSOjzcvFy5ZelFuUkVkKlrPT1k4ry
y4tTi+CKoHy9itIchCK4kXBlcBGQQl4uAFBLAwQUAAAACAAMa1c8Bng+p3kBAAD9AgAACwAVAGlu
y4tTi+CKoHy9itIchCK4kXBlcBGQQl4uAFBLAwQUAAAACAC5jVg80w1rs3kBAAD9AgAACwAVAGlu
c3RhbGwucmRmVVQJAAP4yINL+MiDS1V4BADoA2QAbZJRT4MwFIXfTfYfKr6ZlDJANwhjahaffDBL
c3RhbGwucmRmVVQJAAO9V4VLvVeFS1V4BADoA2QAbZJRT4MwFIXfTfYfKr6ZlDJANwhjahaffDBL
9L2Dy9ZIW9IWN2f877JCHRrfyjnfub33lmx54DV6B6WZFAtv6gfeMp9cTC6y9eoRdZ7QC29nTJMS
9L2Dy9ZIW9IWN2f877JCHRrfyjnfub33lmx54DV6B6WZFAtv6gfeMp9cTC6y9eoRdZ7QC29nTJMS
st/v/X3kS7Ul0yRJSBCSMMS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A
AQAAHAANAAAAAAABAAAA7YE3BgAAY2hyb21lL2NvbnRlbnQvcGJkaXNhYmxlLmNzc1VUBQAD8jKE
WJg/PAAAAAAAAAAAAAAAAA8ADQAAAAAAAAAQAO1BfAIAAGNocm9tZS9jb250ZW50L1VUBQADx8Vl
S1V4AABQSwUGAAAAAAYABgDKAQAAXAcAAAAA
S1V4AABQSwECFwMUAAAACABvj1g8IWXJHYQDAADcCAAAHAANAAAAAAABAAAA7YG+AgAAY2hyb21l
L2NvbnRlbnQvcGJkaXNhYmxlLnh1bFVUBQAD8lqFS1V4AABQSwECFwMUAAAACABcj1g8GV7cAyoB
AAD4AQAAHAANAAAAAAABAAAA7YGRBgAAY2hyb21lL2NvbnRlbnQvcGJkaXNhYmxlLmNzc1VUBQAD
z1qFS1V4AABQSwUGAAAAAAYABgDKAQAACggAAAAA
</pre>
</pre>


===Byte Shift JavaScript===
==Byte Shift JavaScript==
You can use this JavaScript code to encode (+13) and decode (-13) the file ''mozila.cfg''
You can use this JavaScript program to encode ''mozila.cfg.txt'' to ''mozilla.cfg'' and decode ''mozila.cfg'' to ''mozilla.cfg.txt''.
<pre>/* Paste this file into Firefox's JavaScript console and evaluate it encode or decode the file mozilla.cfg via a byte shift of 13 - dickvl@kb.mozillazine.org */
<pre>/*
* Paste this file into Firefox's JavaScript console and click the Evaluate button to run the script - dickvl@kb.mozillazine.org
* use a byte shift of 13 to encode the file mozilla.cfg.txt to mozilla.cfg
* use a byte shift of -13 to decode mozilla.cfg to mozilla.cfg.txt
*/
(function(){
(function(){
  var Cc = Components.classes;
  var Cc = Components.classes;
Line 111: Line 105:
  stream.close();
  stream.close();


  if((s=prompt('Shift value:','13'))!=null){
  if((s=prompt('Byte Shift value (13 to encode and -13 to decode):','13'))!=null){
   sV=parseInt(s,10);
   sV=parseInt(s,10);
   for(i=0;i<input.length;i++){output+=String.fromCharCode(input.charCodeAt(i)+sV)}
   for(i=0;i<input.length;i++){output+=String.fromCharCode(input.charCodeAt(i)+sV)}

Revision as of 18:10, 24 February 2010

Here is a simple extension to disable the "Tools -> Start Private Browsing" menu entry and the "Tools > Clear Recent History" menu entry in Firefox 3.5/6.
The extension hides these menu entries and also disables their shortcut keys and should prevent Firefox from entering Private Browsing mode. The CSS code (chrome://pbdisable/content/pbdisable.css) in the extension also hides "Tools -> Options -> Privacy -> Automatically start Firefox in a private browsing session" and the History setting. You can copy that code to userChrome.css if you want these entries hidden if the extension is disabled. Current Firefox versions still process code in userChrome.css if started in Safe_mode. Keep in mind that removing or disabling "Private Browsing" will not make it impossible to delete private data like visited websites (history) or cache. It is possible to clear the cache via "Tools -> Options -> Advanced -> Network" and to clear history in the Library and History sidebar. See also [1]

You can copy and paste this code in the "Tools > Error Console" to test if it is possible to toggle Private Browsing mode before and after you have installed the extension. It should not be possible, but what Firefox shows can be deceiving as it looks a bit buggy to me. You can check if new history is still kept.

var pbs = Components.classes["@mozilla.org/privatebrowsing;1"].getService(Components.interfaces.nsIPrivateBrowsingService);
var oldPM = pbs.privateBrowsingEnabled;
var newPM;
pbs.privateBrowsingEnabled = !pbs.privateBrowsingEnabled;
void(alert('PB is '+((newPM=pbs.privateBrowsingEnabled)?'on':'off')+((oldPM==newPM)?' (failed)':'')));

You can lock some history prefs and reset pref browser.privatebrowsing.autostart to false with this version of the file mozilla.cfg.
Copy and paste the full DATA code in the location bar and press the Enter key. Save the file as mozilla.cfg (updated Feb 23, 2010) and copy the file to the Firefox program folder.

data:application/octet-stream;base64,
PDwaF31/cnM1L29/fISAcn87fX92g26Bcm9/fISAdnt0O26CgXyAgW5/gS85LXNueYByNkgaF3l8
cHhdf3JzNS9vf3yEgHJ/O3V2gIF8f4ZscoV9dn9ybHFuhoAvOS0+RT02SBoXeXxweF1/cnM1L29/
fISAcn87dXaAgXx/hmxyhX12f3JscW6GgGx6dnsvLTlGPTZIGhd5fHB4XX9yczUvfXlucHKAO3V2
gIF8f4Y7cntub3lycS85LYF/gnI2SBoXeXxweF1/cnM1L31/doNucIY7cHlybn9ce2B1goFxfIR7
O3V2gIF8f4YvOS1zbnmAcjZIGhd5fHB4XX9yczUvfX92g25whjtwfXE7dXaAgXx/hi85LXNueYBy
NkgaF3l8cHhdf3JzNS99f3aDbnCGO4Bue3aBdodyO4Bue3aBdodyXHtgdYKBcXyEey85LXNueYBy
NkgaFw==

You need to create a file local-settings.js with this line:

pref("general.config.filename", "mozilla.cfg");

Copy the file local-settings.js to the grefprefs folder or the defaults\pref folder in the Firefox program folder.
Prefs that are locked show as italic with Status is Locked on the about:config page and can't be changed.
For full instructions, see Locking_preferences

Copy and paste the full DATA code in the location bar and press the Enter key. Save the file as pbdisable-1.3-fx.xpi (version 1.3, updated Feb 23, 2010)
You can install the extension via "File > Open File" or by dragging the file in a Firefox window.
You can move the extensions folder (pbdisable@mozillazine.org) from the extensions folder in the Profile Folder to the %AppData%\Mozilla\extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384} folder or to the extensions folder in the Firefox program folder to make the extension work in all Firefox profiles. If you do that then you can't uninstall, but you can disable the extension. You can also drop the XPI file in that folder and the extension will be installed on the next start of Firefox [2].

data:application/octet-stream;base64,
UEsDBBQAAAAIAHuYPzw3xI8ySQAAAHwAAAAPABUAY2hyb21lLm1hbmlmZXN0VVQJAAMJxmVLCcZl
S1V4BADoA2QAS87PK0nNK+EsSErJLE5MyknlTM4oys9N1U+GSOjzcvFy5ZelFuUkVkKlrPT1k4ry
y4tTi+CKoHy9itIchCK4kXBlcBGQQl4uAFBLAwQUAAAACAC5jVg80w1rs3kBAAD9AgAACwAVAGlu
c3RhbGwucmRmVVQJAAO9V4VLvVeFS1V4BADoA2QAbZJRT4MwFIXfTfYfKr6ZlDJANwhjahaffDBL
9L2Dy9ZIW9IWN2f877JCHRrfyjnfub33lmx54DV6B6WZFAtv6gfeMp9cTC6y9eoRdZ7QC29nTJMS
st/v/X3kS7Ul0yRJSBCSMMSqrLD+EIYesNBXXp9Jgf+KcXlkdU1tNgyCmAA/Ba+87i6UrUAXijWm
awHR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Bke+upoY
cgdYk6ZBCSmDYUzmpEqLFGo2fv+uVO3ekG0JXxo2WmzGPnh6Mi6GJOhl8n3vYV5JWEt7pM4NB0c6
YpVpgElEt3Pr6iOK3othCqtWu2x+zSVy5DaUOsoSG86Gh/vihpjv9D7ZIyHTHQ9h/jxpotISpiUK
LsL5v0Q/UEsBAhcDFAAAAAgAe5g/PDfEjzJJAAAAfAAAAA8ADQAAAAAAAQAAAO2BAAAAAGNocm9t
ZS5tYW5pZmVzdFVUBQADCcZlS1V4AABQSwECFwMUAAAACAC5jVg80w1rs3kBAAD9AgAACwANAAAA
AAABAAAA7YGLAAAAaW5zdGFsbC5yZGZVVAUAA71XhUtVeAAAUEsBAhcDCgAAAAAADaV2OwAAAAAA
AAAAAAAAAAcADQAAAAAAAAAQAO1BQgIAAGNocm9tZS9VVAUAA6mTCUtVeAAAUEsBAhcDCgAAAAAA
WJg/PAAAAAAAAAAAAAAAAA8ADQAAAAAAAAAQAO1BfAIAAGNocm9tZS9jb250ZW50L1VUBQADx8Vl
S1V4AABQSwECFwMUAAAACABvj1g8IWXJHYQDAADcCAAAHAANAAAAAAABAAAA7YG+AgAAY2hyb21l
L2NvbnRlbnQvcGJkaXNhYmxlLnh1bFVUBQAD8lqFS1V4AABQSwECFwMUAAAACABcj1g8GV7cAyoB
AAD4AQAAHAANAAAAAAABAAAA7YGRBgAAY2hyb21lL2NvbnRlbnQvcGJkaXNhYmxlLmNzc1VUBQAD
z1qFS1V4AABQSwUGAAAAAAYABgDKAQAACggAAAAA

Byte Shift JavaScript

You can use this JavaScript program to encode mozila.cfg.txt to mozilla.cfg and decode mozila.cfg to mozilla.cfg.txt.

/*
 * Paste this file into Firefox's JavaScript console and click the Evaluate button to run the script - dickvl@kb.mozillazine.org 
 * use a byte shift of 13 to encode the file mozilla.cfg.txt to mozilla.cfg
 * use a byte shift of -13 to decode mozilla.cfg to mozilla.cfg.txt
*/
(function(){
 var Cc = Components.classes;
 var Ci = Components.interfaces;

 var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
 var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream);
 var streamIO = Cc["@mozilla.org/scriptableinputstream;1"].createInstance(Ci.nsIScriptableInputStream);
 var input,output='',i,s,sV=13;

 fp.init(window, "", fp.modeOpen);
 fp.appendFilter("", "*.txt; *.cfg");
 
 if (fp.show() == fp.returnCancel) return;

 stream.init(fp.file, 0x01, 0444, null);
 streamIO.init(stream);
 input = streamIO.read(stream.available());
 streamIO.close();
 stream.close();

 if((s=prompt('Byte Shift value (13 to encode and -13 to decode):','13'))!=null){
  sV=parseInt(s,10);
  for(i=0;i<input.length;i++){output+=String.fromCharCode(input.charCodeAt(i)+sV)}

  fp.init(window,"",Ci.nsIFilePicker.modeSave);
  fp.defaultString="mozilla.cfg";
  if (fp.show() == fp.returnCancel) return;

  var stream=Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
  stream.init(fp.file,0x04|0x08,0644,0);
  stream.write(output,output.length);
  stream.close();
 }
})();