<!DOCTYPE html>
<html xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="height=device-height, width=device-width,
    initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,
    user-scalable=no, target-densitydpi=device-dpi, shrink-to-fit=no">
  <!-- <style>* {-webkit-text-size-adjust: none}</style> -->

  <!-- *************************************

       Interactive view, compare, and more for Firefox user.js

       Name         : userjs-tool.html
       Project      : https://github.com/icpantsparti2/firefox-user.js-tool
       Version      : 2022.04.08
       File         : https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/userjs-tool.html
       On-line      : https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html
       License (MIT): https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/LICENSE
       Disclaimer   : Use with care at your own risk, and verify any results

       Open on-line or save for off-line use.
       Visit the project page for updates/issues/etc.
       Other sources: shown in the code (libraries/functions)

       ************************************* -->

  <title>userjs-tool.html</title>

  <script type="text/javascript">
    var date_time_stamp;
    // keep track of the section selected to help overcome focus loss
    var section_focus, return_to_panel;
    var arkenfoxRepoMode = "";
  </script>

  <link rel="stylesheet" href="css/userjs-tool.css" />
  <link rel="stylesheet" type="text/css" href="css/userjs-tool-themes.css" />
  <link rel="stylesheet" type="text/css" href="css/userjs-tool-af-mode.css" />
  <link rel="stylesheet" type="text/css" href="css/userjs-tool-userjs-table-view.css" />
  <!-- 3rd party JavaScript library (used when saving textarea contents to a file) -->
	<script type="text/javascript" src="js/download.js"></script>
  <!-- 3rd party JavaScript library (used to show text differences between two user.js)  -->
  <script type="text/javascript" src="js/jsdiff-modified.js"></script>
  <script type="text/javascript" src="js/userjs-tool.js"></script>
  <script type="text/javascript" src="js/userjs-tool-common.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-viewer.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-compare.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-table-view.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-append.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-reduce.js"></script>
  <script type="text/javascript" src="js/userjs-tool-userjs-to-value-groups.js"></script>
  <script type="text/javascript" src="js/userjs-tool-collect-mode.js"></script>
  <script type="text/javascript" src="js/userjs-tool-event-listeners.js"></script>
  <script type="text/javascript" src="js/userjs-tool-file-loading.js"></script>
  <script type="text/javascript" src="js/userjs-tool-af-mode.js"></script>
  <script type="text/javascript" src="js/userjs-tool-start-up.js"></script>

</head>

<body onload="userjstoolStart()">

<!-- hidden heading (H1/H3/DL tags for bookmarks import compatibility) -->
<div class="hidden"><H1>Bookmarks Menu</H1></div><DL>
<!-- >>>> date is inserted here later <<<< -->
<div id="hiddendate" class="hidden"><H3>--userjs_</H3></div><DL>




<!-- *************************************
     top_buttons_bar
     ************************************* -->

<div id="top_buttons_bar">

<!-- index_select -->
<!-- the first option is used as a title/label -->
<select class="controls borders top_buttons" id="index_select"
title="Go to section">
<!-- >>>> section headings (between here) are replaced later <<<< -->
  <option value="" disabled selected hidden>&#x25BE;Index</option>
  <option>(TOP) / Introduction</option>
<!-- >>>> section headings (between here) are replaced later <<<< -->
</select>

<!-- groups_button -->
<button type="button" class="controls borders top_buttons"
id="groups_button" title="Show/hide about:config Groups panel"
>Groups</button>

<!-- size_select -->
<!-- the first option is used as a title/label
     and changes to show the current font size percent -->
<select class="controls borders top_buttons" id="size_select"
title="Change font size">
  <option value="" disabled selected hidden>&#x25BE;100%</option>
  <option>-10%</option>
  <option>+10%</option>
  <option>50%</option>
  <option>75%</option>
  <option>100%</option>
  <option>125%</option>
  <option>150%</option>
  <option>175%</option>
  <option>200%</option>
  <option>250%</option>
  <option>300%</option>
</select>

<!-- menu_select -->
<!--
      some of these option names (the prefix symbol) will alter when toggled
      the menu_select addEventListener matches option name keywords not indexes
      the first option is used as a title/label
      options are prefixed with unicode characters:
        &#x25EB; WHITE SQUARE WITH VERTICAL BISECTING LINE  (not a toggle)
        &#x25A2; WHITE SQUARE WITH ROUNDED CORNERS  (off/false)
        &#x25A3; WHITE SQUARE CONTAINING BLACK SMALL SQUARE  (on/true)
        &#x00A0; (blank/space) as leading/multi-spaces are lost
        &hellip; symbol for '...'  (not used, looks too small)
        &#x205D; TRICOLON  (vertical ...) (not used)
-->
<select id="menu_select" class="controls borders top_buttons"
title="Select menu option">
  <option value="" disabled selected hidden>&#x25BE;Menu</option>
  <option>&#x25EB;&#x00A0;&#x00A0;Collapse all</option>
  <option>&#x25EB;&#x00A0;&#x00A0;Expand all</option>
  <option>&#x25EB;&#x00A0;&#x00A0;Collapse current/headings</option>
  <option value="" disabled></option>
  <option>&#x25A2;&#x00A0;&#x00A0;[Actions] (input panel)</option>
  <option>&#x25A2;&#x00A0;&#x00A0;[Groups] (about:config search)</option>
  <option>&#x25A2;&#x00A0;&#x00A0;[Links] (template/profiles/etc)</option>
  <option>&#x25A2;&#x00A0;&#x00A0;[about:config Functions]</option>
  <option>&#x25A2;&#x00A0;&#x00A0;[Help/Info]</option>
  <option value="" disabled></option>
  <option>&#x25A2;&#x00A0;&#x00A0;Wrap text</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Prefix about:config links</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Function about:config links</option>
  <option value="" disabled></option>
  <option>&#x25A2;&#x00A0;&#x00A0;Expand all on view</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Show Groups on view</option>
  <option>&#x25A2;&#x00A0;&#x00A0;View+ style on view</option>
  <option value="" disabled></option>
  <option>&#x25A2;&#x00A0;&#x00A0;Theme: default</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Theme: dark</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Theme: light</option>
  <option>&#x25A2;&#x00A0;&#x00A0;Theme: arkenfox</option>
  <option>&#x25EB;&#x00A0;&#x00A0;Other themes</option>
</select>

<button type="button" id="back_button" class="controls borders top_buttons"
title="Close panel" onclick="backButton();"><b>&lt;</b>Back</button>

</div><!-- end: top_buttons_bar -->




<!-- *************************************
     top of body / view_area
     ************************************* -->

<div id="body_offset"><br><br><br><br></div>
<div id="collect_mode_pad"><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br>Note: a very basic overrides collector, click value/"user_pref" to toggle.<br>
You can also edit box 2 above, and don't forget to save what you do.<br><br></div>

<div id="view_area">
<!-- >>>> section contents (between here) are replaced later <<<< -->
  <button type="button" class="controls borders heading_buttons"
id="TOP-Introduction">(TOP) / Introduction</button>
  <div class="content">
Please add user.js content under [Menu]&gt;[Actions],
then use [View], [Table View], or [Compare].
  </div>
<!-- >>>> section contents (between here) are replaced later <<<< -->
</div><!-- end: view_area -->




<!-- *************************************
     actions_panel
     ************************************* -->

<div id="actions_panel" class="panels borders">
<span class="close_panel_x" onclick="toggleActionsPanel();"
title="Close [Actions] panel">&times;</span>
<!-- hidden heading (H1/H3/DL tags for bookmarks import compatibility) -->
<div class="hidden"><H3>[Actions]</H3></div>
<b>[Actions] (Firefox user.js view, compare and more)</b> ([X] closes)<br>
(Please see "Hints" below, scroll down)<br><br>

<!-- actions_buttons_bar -->

<div id="actions_buttons_bar"><!--

--><button type="button" class="controls borders" id="div_1_template_button"
title="Display Template box (eg arkenfox user.js)">Box 1<br>Template</button><!--

--><button type="button" class="controls borders" id="div_2_overrides_button"
title="Display user-overrides.js box">Box 2<br>Overrides</button><!--

--><button type="button" class="controls borders" id="div_3_userjs_button"
title="Display user.js box">Box 3<br>user.js</button><!--

--><button type="button" class="controls borders" id="div_4_other_button"
title="Display Other box (eg prefs.js/etc)">Box 4<br>Other</button><!--

--><button type="button" class="controls borders" id="all_button"
title="Show all boxes">All</button><!--

--></div><!-- end: actions_buttons_bar -->

<!-- div_1_template -->

<div id="div_1_2">

<div id="div_1_template"><table><tr><td class="td1_actions">
<b>Box 1</b><!--
-->&nbsp;&nbsp;<div id="box_1_template_ro">&#x25A2;ro</div><br>

<button type="button" class="controls borders" id="view_template_button"
title="View box content with HTML, links, etc">View</button><br>

<button type="button" class="controls borders" id="tableview_template_button"
title="View box content in a table (for arkenfox user.js)">Table View</button><br>

<select class="controls borders" id="loadsave_template_select"
title="Select a file and load contents into the box">
<option value="" disabled selected hidden>&#x25BE;Load/Save</option>
</select><br>

<button type="button" class="controls borders" id="select_template_button"
title="Select all text in the box">Select</button><br>

<button type="button" class="controls borders" id="clear_template_button"
title="Clear the text in the box">Clear</button>

<input class="hidden controls borders" type="file" multiple="multiple"
name="file" accept=".js" id="load_template_input" />

</td><td class="td2_actions">
<a target="_blank" rel="external noopener noreferrer"
class="local_folder" href="user-template.js">Template</a> eg
<a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js">arkenfox</a>
<textarea id="box_1_template" autofocus="true"
ondrop="dropHandler1(event);" ondragover="dragOverHandler(event);"
placeholder="&#10; Add user.js template here (Use [Load] button, drag/drop or paste)&#10;&#10; Then use [View], [Table View], [Compare], or another action button"
></textarea>
</td></tr></table></div>

<!-- div_2_overrides -->

<div id="div_2_overrides" class="hidden"><table><tr><td class="td1_actions">
<b>Box 2</b><!--
-->&nbsp;&nbsp;<span id="box_2_overrides_ro">&#x25A2;ro</span><br>

<!-- End Collect button is hidden until needed -->
<button type="button" class="controls borders" id="endcollect_button"
title="End the point and click overrides collection"
>End Collect</button><br id="endcollect_br">

<button type="button" class="controls borders" id="view_overrides_button"
title="View box content with HTML, links, etc">View</button><br>

<button type="button" class="controls borders" id="tableview_overrides_button"
title="View box content in a table (for arkenfox user.js)">Table View</button><br>

<select class="controls borders" id="loadsave_overrides_select"
title="Select a file and load contents into the box">
<option value="" disabled selected hidden>&#x25BE;Load/Save</option>
</select><br>

<button type="button" class="controls borders" id="select_overrides_button"
title="Select all text in the box">Select</button><br>

<button type="button" class="controls borders" id="clear_overrides_button"
title="Clear the text in the box">Clear</button><br>

<input class="hidden controls borders" type="file" multiple="multiple"
name="file" accept=".js" id="load_overrides_input" />

</td><td class="td2_actions">
<a target="_blank" rel="external noopener noreferrer"
class="local_folder" href="user-overrides.js">user-overrides.js</a>
<textarea id="box_2_overrides"
ondrop="dropHandler2(event);" ondragover="dragOverHandler(event);"
placeholder="&#10; Add user-overrides.js here (Use [Load] button, drag/drop or paste)&#10;&#10; (or used for action button input/output)"
></textarea>
</td></tr></table></div>

</div>

<!-- div_3_userjs -->

<div id="div_3_4">

<div id="div_3_userjs" class="hidden"><table><tr><td class="td1_actions">
<b>Box 3</b><!--
-->&nbsp;&nbsp;<span id="box_3_userjs_ro">&#x25A2;ro</span><br>

<button type="button" class="controls borders" id="view_userjs_button"
title="View box content with HTML, links, etc">View</button><br>

<button type="button" class="controls borders" id="tableview_userjs_button"
title="View box content in a table (for arkenfox user.js)">Table View</button><br>

<select class="controls borders" id="loadsave_userjs_select"
title="Select a file and load contents into the box">
<option value="" disabled selected hidden>&#x25BE;Load/Save</option>
</select><br>

<button type="button" class="controls borders" id="select_userjs_button"
title="Select all text in the box">Select</button><br>

<button type="button" class="controls borders" id="clear_userjs_button"
title="Clear the text in the box">Clear</button><br>

<input class="hidden controls borders" type="file" multiple="multiple"
name="file" accept=".js" id="load_userjs_input" />

</td><td class="td2_actions">
<a target="_blank" rel="external noopener noreferrer"
class="local_folder" href="user.js">user.js</a>
<textarea id="box_3_userjs"
ondrop="dropHandler3(event);" ondragover="dragOverHandler(event);"
placeholder="&#10; Add user.js here (Use [Load] button, drag/drop or paste)&#10;&#10; (or used for action button input/output)"
></textarea>
</td></tr></table></div>

<!-- div_4_other -->

<div id="div_4_other" class="hidden"><table><tr><td class="td1_actions">
<b>Box 4</b><!--
-->&nbsp;&nbsp;<span id="box_4_other_ro">&#x25A2;ro</span><br>

<button type="button" class="controls borders" id="view_other_button"
title="View box content with HTML, links, etc">View</button><br>

<button type="button" class="controls borders" id="tableview_other_button"
title="View box content in a table (for arkenfox user.js)">Table View</button><br>

<select class="controls borders" id="loadsave_other_select"
title="Select a file and load contents into the box">
<option value="" disabled selected hidden>&#x25BE;Load/Save</option>
</select><br>

<button type="button" class="controls borders" id="select_other_button"
title="Select all text in the box">Select</button><br>

<button type="button" class="controls borders" id="clear_other_button"
title="Clear the text in the box">Clear</button><br>

<input class="hidden controls borders" type="file" multiple="multiple"
name="file" accept=".js" id="load_other_input" />

</td><td class="td2_actions">
<a target="_blank" rel="external noopener noreferrer"
class="local_folder" href=".">Other</a><!--

-->/<a target="_blank" rel="external noopener noreferrer"
class="local_folder" href="prefs.js">prefs.js</a>

<textarea id="box_4_other"
ondrop="dropHandler4(event);" ondragover="dragOverHandler(event);"
placeholder="&#10; Add other/user.js here (Use [Load] button, drag/drop or paste)&#10;&#10; (or used for action button input/output)"
></textarea>
</td></tr></table></div>

</div>

<!-- actions_buttons_div -->

<div id="actions_buttons_div"><!--

--><button type="button" class="controls borders" id="view_arkenfox_button"
title="View current arkenfox user.js in a table (Load in Box 1)">View arkenfox &gt;1</button><!--

--><button type="button" class="controls borders" id="load_arkenfox_button"
title="Load current arkenfox user.js into Box 1">Load arkenfox &gt;1</button><!--

--><select class="controls borders" id="compare_select"
title="Compare the user_pref of 2 boxes">
<option value="" disabled selected hidden>&#x25BE;Compare</option>
<option>Compare box 1 &amp; 1 &#x00A0;&#x00A0;A-Z</option>
<option>Compare box 1 &amp; 2 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 1 &amp; 3 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 1 &amp; 4 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 2 &amp; 1</option>
<option>Compare box 2 &amp; 2 &#x00A0;&#x00A0;A-Z</option>
<option>Compare box 2 &amp; 3 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 2 &amp; 4 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 3 &amp; 1</option>
<option>Compare box 3 &amp; 2</option>
<option>Compare box 3 &amp; 3 &#x00A0;&#x00A0;A-Z</option>
<option>Compare box 3 &amp; 4 &#x00A0;&#x00A0;&#x25E6;</option>
<option>Compare box 4 &amp; 1</option>
<option>Compare box 4 &amp; 2</option>
<option>Compare box 4 &amp; 3</option>
<option>Compare box 4 &amp; 4 &#x00A0;&#x00A0;A-Z</option>
</select><!--

--><button type="button" class="controls borders" id="append_button"
title="Append/apply overrides onto template to form user.js"
>Append 1+2&gt;3</button><!--

--><button type="button" class="controls borders" id="skeleton_button"
title="Create a user-overrides.js skeleton"
>Skeleton 1&gt;2</button><!--

--><button type="button" class="controls borders" id="collect_button"
title="Point and click overrides collector"
>Collect 1&gt;+2</button><!--

--><button type="button" class="controls borders" id="reduce_button"
title="Reduce user.js to just user_pref lines"
>Reduce 1&gt;4</button><!--

--><button type="button" class="controls borders" id="clean_button"
title="Remove user.js user_pref from another .js"
>Clean 4-3&gt;4</button><!--

--><button type="button" class="controls borders" id="byvalue_button"
title="Group user_pref by value (eg for Android about:config)"
>By Value 3&gt;4</button><!--

--><button type="button" class="controls borders" id="togroup_button"
title="Preference list to about:config?filter= group"
>To Group 4&gt;4</button><!--

--><select class="controls borders" id="encode_select"
title="Encode/Decode text (Base64, URI)">
<option value="" disabled selected hidden>&#x25BE;Encode 4&gt;4</option>
<option>Encode text to Base64 (multi line)</option>
<option>Encode text to Base64</option>
<option>Decode Base64 to text</option>
<option>Encode URI Component</option>
<option>Decode URI Component</option>
<option>Encode URI</option>
<option>Decode URI</option>
<option>Escape for RegExp</option>
</select><!--

--><button type="button" class="controls borders" id="functions_button"
title="Functions for about:config (find (filter/list)/reset/set)"
>a:c Functions</button><!--

--><button type="button" class="controls borders" id="links_button"
title="Display some useful links (eg: arkenfox user.js, auto-load, profile folders)"
>Links</button><!--

--><button type="button" class="controls borders" id="help_button"
>Help/Info</button>

<br><br><br>Hints:<br>

<ul>

<br><li><a target="_blank" rel="external noopener noreferrer"
href="?at"
>To view the current arkenfox user.js in a table</a>
<br>Click the [View arkenfox] button, or use the above link.</li>

<br><li><a target="_blank" rel="external noopener noreferrer"
href="?a&action=collect"
>To collect/create Overrides from arkenfox user.js</a>
<br>Click [Load arkenfox] then [Collect], or use the above link.</li>

<br><li><b>What do the buttons do?</b>
<br>Hover mouse over buttons for their info, or click [Help/Info].</li>

<br><li><b>How to return here to [Actions]?</b>
<br>Click [Menu] choose [Actions], or try the [<b>&lt;</b>Back] button.</li>

<br><li><b>View or compare user.js</b>
<br>Place user.js text into the box(es) above using the [Load] button (or
drag/drop, copy/paste) then click [View], [Table View] or [Compare].</li>

<br><li><b>To append your user-overrides.js</b>
<br>Place the user.js template in Box 1 (or click [Load arkenfox]), place your
overrides in Box 2, then click [Append], resulting user.js will be in Box 3.</li>

<br><li><b>What are the numbers on some buttons?</b>
<br>It indicates "input>output" boxes, contents of the output box are
usually replaced, [Collect] amends the output box.</li>

<br><li><b>[Index] = section jump, [Groups] = about:config search patterns</b>
<br>These are updated after [View]/[Table View]/[Compare] are used.</li>

<br><li><a target="_blank" rel="external noopener noreferrer"
href="https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/userjs-tool-aboutconfig-functions.js"
>To get more out of about:config (eg: find, filter, list, save to file, etc)</a>
<br>Click [a:c Functions], or use the above link.</li>

<br><li><a target="_blank" rel="external noopener noreferrer"
href="?at&groups=true"
>For searching arkenfox user.js preferences in about:config</a>
<br>Click [View arkenfox] then [Groups], or use the above link.</li>

<br><li><a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=togroup&load4=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/scratchpad-scripts/troubleshooter.js"
>For searching arkenfox troubleshooter.js preferences in about:config</a>
<br>Place troubleshooter.js in Box 4 click [To Group], or use the above link.</li>

</ul>
<br><br><br><br><br>
</div><!-- end: actions_buttons_div -->

</div><!-- end: actions_panel -->




<!-- *************************************
     groups_panel
     ************************************* -->

  <div id="groups_panel" class="panels borders">
<span class="close_panel_x" onclick="toggleGroupsPanel();"
title="Close [Groups] panel">&times;</span>
<!-- hidden heading (H1/H3/DL tags for bookmarks import compatibility) -->
<div class="hidden"><H3>[Groups] (copy/paste into about:config search box)</H3></div>
<b>[Groups] (copy/paste into about:config search box)</b> ([X] closes)<br>
(shortcut: right click link, L, hold Ctrl: T, V, Enter, V<br>
ie: right click, Copy Link, new tab, paste in url box, enter, paste in search box)<br>
<!-- (if bookmarked: right click, c, left click, Ctrl+V)<br> -->
<br>
<!-- >>>> user pref groups (between here) are replaced later <<<< -->
<div id="groups_container">
Please add user.js content under [Menu]&gt;[Actions],
then use [View], [Table View], or [Compare].
</div>
<!-- >>>> user pref groups (between here) are replaced later <<<< -->
<br><br><br><br><br>
</div><!-- end: groups_panel -->




<!-- *************************************
     links_panel
     ************************************* -->

<div id="links_panel" class="panels borders">
<span class="close_panel_x" onclick="toggleLinksPanel();"
title="Close [Links] panel">&times;</span>
<!-- hidden heading (H1/H3/DL tags for bookmarks import compatibility) -->
<div class="hidden"><H3>[Links]</H3></div>
<b>[Links]</b> ([X] closes)

<br><br>
When choosing a user.js template you need to consider if
it is suitable, good quality, and up to date. &nbsp;(At your own risk)<br>


<br><br>
user.js template example
<table class="table_links">
<tr><td class="td1_links">
<a target="_blank" rel="external noopener noreferrer"
href="https://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
>arkenfox user.js #</a>
<br><br>(read their wiki) (listed on privacytools.io)
<br><br><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js/issues/123"
>arkenfox user.js deprecated-removed-legacy prefs (list)</a>
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js"
><span class="hidden">__arkenfox user.js </span>project page</a>
<br><br><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js/wiki"
><span class="hidden">__arkenfox user.js </span>wiki</a>
<br><br><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js/issues?q=sort%3Aupdated-desc"
><span class="hidden">__arkenfox user.js </span>issues</a>



</td></tr>
</table>


<!-- note about URL parameters -->
<br><br>
Auto-loading (also see [Menu]&gt;[Help/Info]&gt;Initial states)
<table class="table_links">

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?a&box=a"
>Load current arkenfox user.js</a>
(or specific <a target="_blank" rel="external noopener noreferrer"
href="?box=a&load1=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
><span class="hidden">Load current arkenfox user.js/</span>URL</a>)
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?at"
>View current arkenfox user.js in a table</a>
(or specific <a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=table1&load1=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
><span class="hidden">View current arkenfox user.js in a table/</span>URL</a>)
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?av"
>View current arkenfox user.js with styling</a>
(or specific <a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=view1&load1=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
><span class="hidden">View current arkenfox user.js with styling/</span>URL</a>)
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?a&action=collect"
>Overrides collector (using arkenfox)</a> (by clicking values/"user_pref")
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?load2=data:text/plain;base64,Ly8gdGhpcyB0ZXh0IHdhcyBpbiB0aGUgbGluay9ib29rbWFyayAodXNpbmcgQmFzZTY0KQovLyAoZG8gbm90IHB1dCBhbnl0aGluZyBwcml2YXRlKQoKLy8gdXNlci1vdmVycmlkZXMuanMKLy8vLyAtLS0gYWRkLW92ZXJyaWRlLWNvbW1lbnQgLS0tCi8qKiogVElUTEUgKioqLwp1c2VyX3ByZWYoInByZWYubmFtZSIsIG51bGwpOwovLy8vIC0tLSBjb21tZW50LW91dCAtLS0gJ3ByZWYubmFtZScK"
>load some non private text (?load2=data:text/plain;base64,...)</a>
</td></tr>
</table>


<!-- example links for preference groups -->
<br><br>
Auto-load about:config Groups (for about:config search box to display multiple preferences)
<table class="table_links">

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?at&groups=true"
>Groups from arkenfox user.js by section</a>
(or specific <a target="_blank" rel="external noopener noreferrer"
href="?groups=true&box=a&action=table1&load1=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
><span class="hidden">Groups from arkenfox user.js by section/</span>URL</a>)
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=byvalue&load3=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/user.js"
>Groups from arkenfox user.js by value</a>
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=togroup&load4=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/scratchpad-scripts/troubleshooter.js"
>Groups from arkenfox troubleshooter.js</a>
</td></tr>

<tr><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="?box=a&action=togroup&load4=%68ttps://raw.githubusercontent.com/arkenfox/user.js/master/scratchpad-scripts/arkenfox-cleanup.js"
>Groups from arkenfox-cleanup.js</a>
</td></tr>

</table>


<!-- ***** profile locations ***** -->
<br><br>
Profile Locations (see <a target="_blank" rel="external noopener noreferrer"
href="about:profiles">about:profiles</a> in a new tab)
<table class="table_links">
<tr><td class="td1_links">
file:///C:/Users/USERNAME/AppData/Roaming/Mozilla/Firefox/Profiles
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="file:///C:/Users/USERNAME/AppData/Roaming/Mozilla/Firefox/Profiles"
><span class="hidden">Firefox profile: </span>Windows</a>
</td></tr>

<tr><td class="td1_links">
file:///data/data/org.mozilla.firefox/files/mozilla
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="file:///data/data/org.mozilla.firefox/files/mozilla"
><span class="hidden">Firefox profile: </span>Android</a>
</td></tr>

<tr><td class="td1_links">
file:///data/data/org.mozilla.fenix/files/mozilla
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="file:///data/data/org.mozilla.fenix/files/mozilla"
><span class="hidden">Firefox profile: </span>Android Nightly</a>
</td></tr>

<tr><td class="td1_links">
file:///Users/USERNAME/Library/Application Support/Firefox/Profiles
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="file:///Users/USERNAME/Library/Application%20Support/Firefox/Profiles"
><span class="hidden">Firefox profile: </span>OS X</a>
</td></tr>

<tr><td class="td1_links">
file:///home/USERNAME/.mozilla/firefox
</td><td class="td2_links">
<a target="_blank" rel="external noopener noreferrer"
href="file:///home/USERNAME/.mozilla/firefox"
><span class="hidden">Firefox profile: </span>Linux</a>
</td></tr>
</table>


<br><br><br><br><br></div><!-- end: links_panel -->




<!-- *************************************
     functions_panel
     ************************************* -->

<div id="functions_panel" class="panels borders">
<span class="close_panel_x" onclick="toggleFunctionsPanel();"
title="Close [Functions] panel">&times;</span>
<b>[about:config Functions]</b> ([X] closes)<br><br>
<button type="button" class="controls borders" id="select_functions_button"
title="Select all text in the box">Select</button>
<br><br><br><textarea id="functions_panel_textarea" autofocus="true"></textarea>
<br><br><br><br><br></div><!-- end: functions_panel -->




<!-- *************************************
     help_panel (visible when JavaScript is off)
     ************************************* -->

<div id="help_panel" class="panels borders">
<span class="close_panel_x" onclick="toggleHelpPanel();"
title="Close [Help] panel">&times;</span>
<!-- hidden heading (H1/H3/DL tags for bookmarks import compatibility) -->
<div class="hidden"><H3>[Help/Info]</H3></div>
<b>[Help/Info] (userjs-tool.html)</b> ([X] closes)<br><br>


<!-- javascript off message -->
<div id="help_panel_nojs_div" class="borders">
Hi! This requires JavaScript for dynamically rendering the HTML
interface, interactions and calculations.<br>
<br>
If you see this message perhaps JavaScript is off, or controlled by
an extension such as: uBlock Origin, uMatrix, NoScript.<br>
</div><hr>


<!-- version/links -->
<br>
Interactive view, compare, and more for Firefox user.js (eg arkenfox user.js).<br>
<br>
Version&nbsp;&nbsp;&nbsp;: 2022.04.08<br>

Project&nbsp;&nbsp;&nbsp;:
<a target="_blank" rel="external noopener noreferrer"
href="https://github.com/icpantsparti2/firefox-user.js-tool"
>firefox-user.js-tool (GitHub)</a> (updates/issues/etc)<br>

File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
<a target="_blank" rel="external noopener noreferrer"
href="https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/userjs-tool.html"
>userjs-tool.html (<span class="hidden">file/</span>GitHub)</a><br>

On-line&nbsp;&nbsp;&nbsp;:
<a target="_blank" rel="external noopener noreferrer"
href="https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html"
>userjs-tool.html (<span class="hidden">on-line/</span>GitHub Pages)</a><br>

License&nbsp;&nbsp;&nbsp;:
<a target="_blank" rel="external noopener noreferrer"
href="https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/LICENSE"
><span class="hidden">firefox-user.js-tool - </span>MIT License (GitHub)</a><br>

Disclaimer: Use with care at your own risk, and verify any results
<br><br>This is coded in HTML/CSS/JavaScript with no cross domain dependency.
&nbsp;Open on-line or save the html/css/js files for off-line use.
<br><br><hr>


<!-- Introduction -->
<br><details><summary>Introduction</summary>
<div class="indentdiv"><br>

Display a Mozilla Firefox user.js settings file contents
in your Firefox browser, with:<br>

<ul>

<br><li>highlighting, links, themes*, re-size, wrap,
about:config links/regex/groups</li>

<br><li>expanding sections, and index to go to sections
(with compatible user.js projects)</li>

<br><li>compare preferences in two user.js, in a table format with
order/layout options and bold cell border around differences</li>

<br><li>actions including: user-overrides.js* append* (with
comment-out*), point and click overrides collector, skeleton,
prefs.js cleaner*, group by values</li>

<br><li>load/save, drag/drop, or copy/paste user.js files
(can load from some on-line URLs too)</li>

<br><li>functions for find (filter/list)/reset/set on about:config
Web Console (Firefox/forks/Thunderbird/SeaMonkey)</li>

<br><li>coded in HTML/CSS/JavaScript with no cross domain dependency</li>

<br><li>open userjs-tool.html on-line or save for off-line use</li>

</ul>

<br>(*<a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js"
>arkenfox user.js &#128142;</a> inspired, see "Acknowledgments" section below.
&nbsp;Please visit them and read their wiki/info, they
have nice scripts for append/clean/troubleshoot.)

<br><br>This started as an over the top experiment for learning some
HTML/CSS/JavaScript (first released 2019.01.02, compare added 2020.02.22).
<br>This is a viewer/tool, and not an editor/installer.

<br><br></div><hr></details>


<!-- user.js (and user-overrides.js) -->
<br><details><summary>user.js (and user-overrides.js)</summary>
<div class="indentdiv"><br>

A user.js file can be used by Mozilla Firefox (some forks and Thunderbird)
for configuration. &nbsp;It allows you to enforce preference settings
(user_pref) on browser start up. &nbsp;These are the settings
accessed when you type 'about:config' into the URL address box.
&nbsp;(See: <a target="_blank" rel="external noopener noreferrer"
href="http://kb.mozillazine.org/User.js_file"
>mozillaZine User.js file</a>
and <a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js/wiki"
>arkenfox user.js wiki</a>)

<br><br>The user.js file needs to be placed in your Firefox
profile folder, type 'about:profiles' into the URL address box
to help find this. &nbsp;Make a backup copy of your Firefox
profile folder.

<br><br>Various online sites provide details of user_pref settings.
&nbsp;Some projects (ie arkenfox user.js) publish their user.js
template, with instructions and information/wiki.
&nbsp;These projects may update their content regularly,
keep your user.js up to date, settings may also change with
each Firefox version.

<br><br>A user-overrides.js file is not used directly by Firefox,
it is a arkenfox user.js idea, please read about this at the wiki
link given above. &nbsp;Basically, you take a projects user.js
template, and append your user-overrides.js onto it, to form
your user.js. &nbsp;The user-overrides.js file contains your
personal user_pref settings including any differences you
require. &nbsp;(user-template.js + user-overrides.js = user.js)

<br><br>There is no user.js content distributed with this HTML file,
user.js templates can be obtained from third party sources and are
subject to their license. &nbsp;If this HTML file contains any user.js
code then it has been added at a later stage by another party or end user,
or it has been auto loaded using URL parameter options.

<br><br></div><hr></details>


<!-- Loading content -->
<br><details><summary>Loading content</summary>
<div class="indentdiv"><br>

Load user.js content into the text boxes by:<br>

<div class="indentdiv">

<br><details><summary>PASTE (directly into the text box)</summary>
<div class="indentdiv"><br>
Paste the content into the text boxes under [Menu]&gt;[Actions].
&nbsp;Open the user.js first in a text editor or in a browser tab to copy it.
&nbsp;A link for arkenfox user.js is provided under [Menu]&gt;[Links].
<br><br>
The links shown above the text input boxes can also be used to open files in
a browser tab for copy/paste.
<br><br>
Those links are to files in a folder that is either, in the same location
as you placed the userjs-tool.html file, or in the location specified by
the folder= URL parameter (see Initial states).
</div></details>

<br><details><summary>[Load] (local file or from URL)</summary>
<div class="indentdiv"><br>
Use the [Menu]&gt;[Actions]&gt;[Load] buttons to open the browser file
selection dialog for local files, or load a file from a URL (input/pick).
<br><br>
With local files, select a single local .js file to load into the
current text box, or select multiple files for loading into Boxes 1/2/3/4
(tries to match file names to the boxes). &nbsp;(You can drag files into the
file selector to display that file location.) &nbsp;(You can also use the local
links shown above the text input boxes.&nbsp;Right click and
"Copy Link Location", then when the file selector is open press Ctrl-V
(paste) and the selector will display that file location. &nbsp;Those links
are to files in a folder that is either, in the same location
as you placed the userjs-tool.html file, or in the location specified by the
folder= URL parameter (see Initial states).)
<br><br>
When loading from a URL, if you use extensions that control fetch/XMLHttpRequest
you might have to allow the connection (eg uMatrix XHR). &nbsp;Some sites may
not allow file fetch, visit the URL and copy/paste instead.
</div></details>

<br><details><summary>DRAG (and drop into the text box)</summary>
<div class="indentdiv"><br>
Single file into the box, or multiple files are matched by name to
load into the other boxes.
</div></details>

<br><details><summary>AUTO (load file from a URL)</summary>
<div class="indentdiv"><br>
Automatic load of file from a URL, specified with combinations of URL
variables (see "Initial states" below,
eg ?expand=true&amp;action=view1&amp;load1=URL).
<br><br>
When loading from a URL, if you use extensions that control fetch/XMLHttpRequest
you might have to allow the connection (eg uMatrix XHR). &nbsp;Some sites may
not allow file fetch, visit the site and copy/paste instead.
<br><br>
(Default browser security prevents loading same origin local files (file://...)
with this method, and changing the "security.fileuri.strict_origin_policy"
preference to false is not recommended as it relaxes more than just this.)
</div></details>

<br><details><summary>EMBED (not recommended, will need maintaining)</summary>
<div class="indentdiv"><br>
Edit this HTML file and paste "base64 encoded user.js" data
within the &lt;body&gt; section (near the end). &nbsp;It will be
decoded and displayed on opening. &nbsp;See the
[Menu]&gt;[Actions]&gt;[Encode] option.
</div></details>

</div>

<br></div><hr></details>


<!-- Theme -->
<br><details><summary>Theme</summary>
<div class="indentdiv"><br>
This is not syntax highlighting, just simple highlighting.
&nbsp;Inactive user_pref (those within comments)
have the same highlighting style as active user_pref.
<br><br>
[Menu]&gt;"View+ style on view" is on by default, this shows in-block
comments as in-line comments, if you set this off some inactive user_pref
will have '//' preceding them, others within '/* */' comment blocks (which
may be multi-line) will have no style indicating they are inactive.
<br><br>
Some arkenfox user.js sections (such as: RFP ALTERNATIVES, and
DEPRECATED/ESR) use comment blocks, a text editor (such as Kate, Notepad++,
or Meld diff tool) would grey out everything in those commented sections,
this viewer does not.
<br><br>
Opens using default theme, unless the theme to use is specified with URL
variables (see "Initial states" below). &nbsp;If you want to override the
default theme with your own colors, or to add more custom color themes,
edit the "userjs-tool-themes.css" file.
<br><br></div><hr></details>


<!-- about:config links/[Groups] -->
<br><details><summary>about:config links and [Groups] (search/regex/Web Console)</summary>
<div class="indentdiv"><br>

<!-- links/search -->

Due to Firefox security, about:config links will not open
when clicked, either:<br>

<div class="indentdiv">

<br><details><summary>(Firefox v71+ paste link into about:config's search box)</summary>
<div class="indentdiv"><br>
The Firefox about:config page changed from Desktop version 71 and
"about:config?filter=" style search links are deprecated, they still open
the "about:config" page, and you can then paste the unedited link into the
about:config search box (because the links here are styled to work).
</div></details>


<br><details><summary>COPY (into URL address box)</summary>
<div class="indentdiv"><br>
Right click the link and "Copy link location", "Paste and go" into the URL
address box of a new tab. &nbsp;(On Android long press the link to see the
copy link option, but if on newer Android Firefox the copy option is not shown
on long press you will have to try the PREFIX method shown below) (on Android
the link works in the URL box or in the about:config search box).<br>
<br></div></details>
<div class="indentdiv">
(links FF71+ too: right click, L, hold Ctrl: T, V, Enter, V)
</div>

<br><details><summary>OPEN (in new tab via right click)</summary>
<div class="indentdiv"><br>
Right click the link and "Open Link in New Tab", change to tab,
click in URL address box and press enter to load.
(This may not work in some browser versions).
</div></details>

<br><details><summary>PREFIX (menu option/about:blank#)</summary>
<div class="indentdiv"><br>
Use the [Menu]&gt;"Prefix about:config" option to prefix
about:config links with "about:blank#", just to make them clickable,
then you must remove that prefix in the URL box. &nbsp;If the link only opens
about:config without filtering (such as on newer Firefox 71+) then copy
and paste the link into the about:config search box
</div></details>

<br><details><summary>BOOKMARKING (not recommended: they get out dated)</summary>
<div class="indentdiv"><br>
The links will open from bookmarks, mass import them by:
<ul>
<li>when viewing the user.js use the browser's "Save
Page As..." (Ctrl+S) to save a HTML file (remove it afterwards)</li>
<li>go into the browser's "Library", "Bookmarks", "Show All
Bookmarks" (Ctrl+Shift+B or Ctrl+Shift+O)</li>
<li>consider using bookmarks "Backup..." as a precaution</li>
<li>use "Import Bookmarks from HTML..." (may be slow)</li>
<li>keep them up to date (remove/replace)</li>
</ul>
<br></div></details>
<div class="indentdiv">
(bookmarks FF71+ too: right click, c, left click, Ctrl+V)
</div>

<br><details><summary>FUNCTION ("Web Console" regular expressions)</summary>
<div class="indentdiv"><br>
You can use the regular expressions from the links with
JavaScript functions to access preferences, copy/paste/edit or:<br>
<ul>
<li>Use the [Menu]&gt;"Function about:config link" option to style the
about:config links as "about:blank#ujtFindPref({style:3,name:REGEX});"</li>
<li>When on the about:config page open Firefox
"Web Console" (Ctrl+Shift+K)</li>
<li>Paste your function into the Web Console, eg for find (filter/list) user
preferences see the [Menu]&gt;[Actions]&gt;[a:c Functions] button for
"ujtFindPref".</li>
<li>Or input JavaScript to create a call to another function, eg:
var ujtFindPref = function(options) { anotherFunction(options["name"]); };</li>
<li>Copy/paste the link to use into the Web Console,
you must remove the "about:blank#" prefix.
</ul>
</div></details>

</div>

<br>The [Groups] button provides links for accessing batches
of preferences in about:config (to display multiple different
preferences), the groups are based on the user.js sections.
&nbsp;Useful when reviewing, troubleshooting, temporary
changes, manual tweaks on Android, etc.

<br><br>When using about:config some preferences are hidden,
and will only show up if they have been created/user set.
&nbsp;Also, if you change any settings through about:config
which are active in your user.js, they will change back to the
user.js value on browser restart.

<br><br></div><hr></details>


<!-- initial states -->
<br><details><summary>Initial states (and URL parameter variable options)</summary>
<div class="indentdiv"><br>
Some initial states can be set with (one or more) URL parameter variables:<br>
<br>
<div class="indentdiv">
PATH/userjs-tool.html<b>?</b>option=value<b>&amp;</b>option=value...
</div><br>
<ul>
<li>size=80&nbsp;&nbsp;(font size percent, default: 100, Android: 150)</li>
<li>wrap=true&nbsp;&nbsp;(line wrap)</li>
<li>expand=true&nbsp;&nbsp;(Expand all sections on View)</li>
<li>viewplus=false&nbsp;&nbsp;(comments shown in-line etc, default: true)</li>
<li>groups=true&nbsp;&nbsp;*(display [Groups] upon view)</li>
<li>prefix=true&nbsp;&nbsp;(prefixed about:config links: about:blank#)</li>
<li>prefix=function&nbsp;&nbsp;(about:config links to function link)</li>
<li>theme=default&nbsp;&nbsp;(default|dark|light|arkenfox|mono|inverse|none|...)</li>
<li>folder=file:///PATH&nbsp;&nbsp;(location for the local file links (shown
above the input boxes), default: same folder as userjs-tool.html)</li>
<li>box=a&nbsp;&nbsp;(open to [Actions] box 0(none)|1|2|3|4|a(all)|v(vertical)</li>
<li>loadX=URL&nbsp;&nbsp;(auto-load file from URL into box number X)</li>
<li>loadX=data:text/plain;base64,bm90IHByaXZhdGU=&nbsp;&nbsp;(load non-private text)</li>
<li>action=ACTION&nbsp;&nbsp;show functions|links|help (eg ACTION=functions)
<li>action=ACTION&nbsp;&nbsp;(when loadX=URL used), ACTION:
<div class="indentdiv">
viewX&nbsp;&nbsp;(view box number 0(none)|1|2|3|4)<br>
tableX&nbsp;&nbsp;(table view (arkenfox user.js) of box number 1|2|3|4)<br>
groupsX&nbsp;&nbsp;(show [Groups] for box number 1|2|3|4)<br>
compare:X:Y&nbsp;&nbsp;(compare box numbers 1|2|3|4 and 1|2|3|4)<br>
compare:X:Y:show&nbsp;&nbsp;(show: groupx6|groupx12|multiple|az|unsorted|diffstring)<br>
compare:X:Y:show:layout&nbsp;&nbsp;(layout: 5column|3column|2column)<br>
append,skeleton,collect,reduce,clean,byvalue,togroup<br>
</div>
</li>
<li>jump=TEXT&nbsp;&nbsp;(expand/focus first section containing TEXT with auto-load)</li>
<li>a&nbsp;&nbsp;(auto-load arkenfox user.js)</li>
<li>av&nbsp;&nbsp;(auto-load arkenfox user.js and view)</li>
<li>at&nbsp;&nbsp;(auto-load arkenfox user.js and table view)</li>
</ul>
<br>
<details><summary>Examples</summary>
<ul>
<li>https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html</li>
<li>file:///C:/Users/USERNAME/Downloads/userjs-tool.html</li>
<li>file:///home/USERNAME/Downloads/userjs-tool.html</li>
<li>?box=a&amp;expand=true</li>
<li>?theme=light&amp;size=150</li>
<li>?folder=file:///C:/Users/USERNAME/AppData/Roaming/Mozilla/Firefox/Profiles/XXXXXXXX.default-release</li>
<li>?folder=file:///home/USERNAME/.mozilla/firefox/XXXXXXXX.default-release</li>
<li>?av or ?action=view1&amp;box=a&amp;load1=https://raw.githubusercontent.com/arkenfox/user.js/master/user.js</li>
<li>?at or ?action=table1&amp;box=a&amp;load1=https://raw.githubusercontent.com/arkenfox/user.js/master/user.js</li>
<li>?action=compare:1:4&box=a&load1=https://raw.githubusercontent.com/arkenfox/user.js/master/user.js&load4=https://raw.githubusercontent.com/arkenfox/user.js/72.0/user.js</li>
</ul></details>
<br></div><hr></details>


<!-- Acknowledgments -->
<br><details><summary>Acknowledgments</summary>
<ul>
<br>
<li>2022.03.12 project forked from the dormant account of
https://github.com/icpantsparti and continues by the same
maintainer under https://github.com/icpantsparti2</li>
<br>
<li>Many thanks to <a target="_blank" rel="external noopener noreferrer"
href="https://github.com/arkenfox/user.js"
>https://github.com/arkenfox/user.js &#128142;</a> and all particiPANTS.
&nbsp;The HTML rendered view of user.js follows a similar style (and
dark/light theme) to the static HTML that arkenfox user.js once produced.
user-overrides.js append, prefs.js cleaner, //// --- comment-out --- are
arkenfox user.js methods.</li>
<br>
<li>Thanks <a target="_blank" rel="external noopener noreferrer"
href="http://www.ghacks.net/"
>http://www.ghacks.net/</a> who hosted earlier versions of arkenfox/user.js
(named "ghacks user.js" at that time).</li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/rndme/download"
>https://github.com/rndme/download</a>
for embedded JavaScript library download.js which enables [Save].
&nbsp;(pyllyukko once posted on github about
https://github.com/Genbox/HardenIT (dormant?) which used that).</li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/claustromaniac/Compare-UserJS"
>https://github.com/claustromaniac/Compare-UserJS &#128570;</a>
which inspired [Compare] (not a port).</li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="https://github.com/overdodactyl"
>https://github.com/overdodactyl &#129436;</a> made a work in progress prototype
(on shinyapps.io) in early 2019 which inspired [Table View] (not a port).</li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="https://johnresig.com/files/jsdiff.js"
>https://johnresig.com/files/jsdiff.js</a>
for embedded JavaScript library jsdiff.js, diffString
used on [Compare]&gt; [DiffStr].</li>
<br>
<li>This does not depend on JQuery or similar. &nbsp;Other
acknowledgments (eg stackoverflow etc) are shown in the code.</li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="https://kate-editor.org/get-it/">Kate (text editor)</a></li>
<br>
<li><a target="_blank" rel="external noopener noreferrer"
href="http://meldmerge.org/">Meld (visual diff/merge)</a></li>
<br>
</ul>
<hr></details>


<!-- input box buttons -->
<br><details><summary>Input box buttons on [Menu]&gt;[Actions]</summary>
<div class="indentdiv"><br>
Closing or refreshing the browser tab will lose any content added into
the [Action] text boxes.<br>
<br>
These buttons are on the left of each text input box:<br>
<ul>
<br>
<li>&#x25A3;ro Indicates the box is readonly, click to toggle.</li>
<br>
<li>[View] the user.js (that you pasted/loaded into the text box) with
some nice HTML formatting. &nbsp;[Menu]&gt;"View+ style on view" is on by
default, this shows in-block comments as in-line comments, to make inactive
user_pref within /*multi-line commented*/ sections show prefixed with //,
and with arkenfox/user.js this also adds some extra line spacing.&nbsp; If you
toggle [Menu]&gt;"View+ style on view" it is effective on the next use of a
[View] button.</li>
<br>
<li>[Table View] for viewing the user.js in a table format.&nbsp;
Shows the user.js (that you pasted/loaded into a text box) with
some nice HTML formatting. Mainly for arkenfox/user.js.</li>
<br>
<li>[&#x25BE;Load/Save] Load file(s) into the box(es) (eg user.js,
user-overrides.js). &nbsp;Opens the browser file selection dialog.
&nbsp;Select a single local .js file to load into the current text box, or
multiple file selections for loading into the corresponding text boxes.
(Also see Loading content info above)<br><br>
Save the box contents as a file (Desktop Firefox allows you to
choose the location and file name).</li>
<br>
<li>[Select] highlight all text in the box.</li>
<br>
<li>[Clear] the text in the box (and switch readonly off).</li>
</ul>
<br></div><hr></details>


<!-- actions buttons -->
<br><details><summary>Actions buttons on [Menu]&gt;[Actions]</summary>
<div class="indentdiv"><br>

These action buttons are below the text input boxes. &nbsp;The numbers on
the buttons indicate the input&gt;output boxes, contents of the output box
are usually replaced, [Collect] amends the output box.<br>

<!-- Actions - [Compare] -->

<br>
<details><summary>[&#x25BE;Compare]</summary>
<div class="indentdiv"><br>
Display a table highlighting the user_pref differences between two boxes
and show a summary, output into the view area. &nbsp;If a user_pref appears
twice the most recent active value takes priority, and is shown in the table.
&nbsp;You might also want to see this PowerShell alternative:
<a target="_blank" rel="external noopener noreferrer"
href="https://github.com/claustromaniac/Compare-UserJS"
>https://github.com/claustromaniac/Compare-UserJS &#128570;</a>.
<br><br>
Display options:<br><br>
<ul>
  <li>[Group x6] (by value/state)</li>
  <li>[Group x12] (by value/state/active/inactive)</li>
  <li>[Multiple] (by multiple occurrence/alphabetical)</li>
  <li>[A-Z] (by alphabetical)</li>
  <li>[Unsorted] (by order found)</li>
  <li>[DiffStr] (string difference)
    <br>&nbsp;&nbsp;(Uses an embedded 3rd party library, see Help/Acknowledgments)
    <br>&nbsp;&nbsp;(It is better to use file comparison software, eg meld)
  </li>
  <li>[Layout] (change table between 5columnx1row 3columnx2row 2columnx2row)</li>
</ul>
</div></details>

<!-- Actions - [Append] -->

<br>
<details><summary>[Append 1+2&gt;3]</summary>
<div class="indentdiv"><br>

Take the user-template.js (eg arkenfox/user.js) (from Box 1) and
append your user-overrides.js (from Box 2), place the result into Box 3.
<br><br>
This will also process any lines from Box 2 of the format:
<u>//// --- comment-out --- 'prefname.goes.here'</u> as they occur, ie any
user_pref with that name in the output so far will be "inactivated",
commented out with "////COMMENT-OUT:". &nbsp;Care: if you comment out prefs
you may also have to manually reset their value in about:config.
<br><br>
If your user-overrides.js contains a line that reads:
<u>//// --- add-override-comment ---</u> then the tag "////OVERRIDE:" will
be placed in front of any overridden user_pref in the user.js output.
<br><br>
"////COMMENT-OUT:" and "////OVERRIDE:" tags are displayed inverted
when using the viewer so they stand out.
<br><br>
Note: any in-block/multi-line comments (/*...*/) in the user-overrides.js are
recognized, user_pref within those comments are inactive, and appear in the
appended user-overrides.js part of the output as in-line comments (//).
</div></details>

<!-- Actions - [Collect] -->

<br>
<details><summary>[Collect 1&gt;+2]</summary>
<div class="indentdiv"><br>
Helps to create a user-overrides.js, by allowing point/click/edit collection
of user_pref. (Note: this is very basic)
<br><br>
It first takes you into the usual viewing of Box 1 content, with the
added ability to:
<br><br>
click on the word "user_pref" (to toggle collection of either
<u>//// --- comment-out --- 'prefname.goes.here'</u> or of an active user_pref)
(note: comment-out is a reminder to prompt you to make sure that pref gets
inactivated in your user.js)
<br><br>
click on the user_pref "value" (to collect the user_pref with a new
value, toggles boolean, input box for integer/string).
<br><br>
This does not change Box 1 content, the 'amendments' are just collected in Box 2.
<br><br>
The "Actions" panel is displayed with reduced size for viewing of
Box 2 changes, press the yellow [End Collect] button when you have finished
(shown next to [Overrides] box only during collect, scroll the actions panel
or click [<b>&lt;</b>Back] if it is out of view).
<br><br>
Box 2 [Select] button becomes [Select+], and the first instance
of the pref name toggled is selected, if you wish to select all click
elsewhere in the box and click the select button again.
</div></details>

<!-- Actions - [Skeleton] -->

<br>
<details><summary>[Skeleton 1&gt;2]</summary>
<div class="indentdiv"><br>
Create a skeleton for a user-overrides.js. &nbsp;Reduce the user-template.js
(from Box 1) to headings and commented user_pref, place the result into Box 2.
</div></details>

<!-- Actions - [Reduce] -->

<br>
<details><summary>[Reduce 1&gt;4]</summary>
<div class="indentdiv"><br>
Reduce the user-template.js (from Box 1) to headings and user_pref lines only,
place the result into Box 4.
</div></details>

<!-- Actions - [Clean] -->

<br>
<details><summary>[Clean 4-3&gt;4]</summary>
<div class="indentdiv"><br>
Remove user_pref from prefs.js in Box 4, based on the active and
inactive user_pref from user.js in Box 3.

<br><br>Use with care, this might clean more (or even less) than
you expect.&nbsp; Do not replace your prefs.js while Firefox is
running, and rename the old file as a backup.

<br><br>The arkenfox/user.js pref cleaner scripts are a better way
to do this, read at the arkenfox/user.js/wiki, note the pros/cons.
</div></details>

<!-- Actions - [By Value] -->

<br>
<details><summary>[By Value 3&gt;4]</summary>
<div class="indentdiv"><br>
Take the user.js from box 3 and arrange the user_pref by values, output into box
4. &nbsp;This shows the user_pref ordered by active/inactive: false, true, 0,
1, 2, other integer, empty string, other string.
<br><br>
Any re-occurring user_pref in the user.js will only show once with most recent
active value priority.
<br><br>
This is mainly intended as an aid if manually reviewing user.js settings on
Android Firefox (although you may be able to inject user.js to Android via
PC (about:debugging) see the [Menu]&gt;[Actions]&gt;[a:c Functions] button and
the arkenfox/user.js/wiki).
<br><br>
The idea is that you can use the about:config?filter= links under [Groups]
to bulk display user_pref that require a similar value, these links can
be long pressed to copy and then pasted in the about:config search. &nbsp;
Remember that hidden preferences will only show if they have been user created.
</div></details>

<!-- Actions - [To Group] -->

<br>
<details><summary>[To Group 4&gt;4]</summary>
<div class="indentdiv"><br>
Convert a list of user preferences in Box 4 to an about:config?filter= group,
place output into Box 4. &nbsp;If you have a bunch of favorite preferences,
place the list into Box 4 and turn them into an about:config link that
displays that group of preferences. &nbsp;The list can be newline, space,
comma, or other separated.
</div></details>

<!-- Actions - [Encode] -->

<br>
<details><summary>[&#x25BE;Encode 4&gt;4]</summary>
<div class="indentdiv"><br>
Various encode/decode options (eg Base64, URI), performed on the contents
of Box 4 (input/output on Box 4).
&nbsp;Encode to multi line Base64 if you are going to save user.js data
into the <body> section (near the end) of this HTML file, because
you want it to display when this HTML is opened. (Not
recommended, as needs constant maintaining, better to just
[Load]/paste fresh content).
</div></details>

<br>
<details><summary>[a:c Functions]</summary>
<div class="indentdiv"><br>
Show JavaScript functions for Mozilla Firefox/Thunderbird about:config,
and information on how to use them. &nbsp;To find (filter/list)/reset/set
user preferences and values.
&nbsp;Use [Menu]&gt;[Actions], or [<b>&lt;</b>Back] button to return.
</div></details>

<!-- Actions - [Links] -->

<br>
<details><summary>[Links]</summary>
<div class="indentdiv"><br>
Display some useful links (arkenfox/user.js, profile locations). &nbsp;The
button takes you to [Menu]&gt;[Links].
&nbsp;Use [Menu]&gt;[Actions], or [<b>&lt;</b>Back] button to return.
</div></details>

<br></div><hr></details>

<br><br><br><br><br></div><!-- end: help_panel -->




</DL></DL>

<!--
[base64 encoded] Functions for about:config (find (filter/list)/reset/set)
https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/userjs-tool-aboutconfig-functions.js
-->
<div id="base64_aboutconfig_functions" class="hidden">
Ly8gSmF2YVNjcmlwdCBmdW5jdGlvbnMgZm9yIE1vemlsbGEgRmlyZWZveC9UaHVuZGVyYmlyZCBh
Ym91dDpjb25maWcKLy8gdXNlciBwcmVmZXJlbmNlcyBhbmQgdmFsdWVzOiBmaW5kIChmaWx0ZXIv
bGlzdC9zYXZlL2RlZmF1bHRzKS9yZXNldC9zZXQKLy8KLy8gTmFtZSAgICAgICAgIDogdXNlcmpz
LXRvb2wtYWJvdXRjb25maWctZnVuY3Rpb25zLmpzCi8vIFByb2plY3QgICAgICA6IGh0dHBzOi8v
Z2l0aHViLmNvbS9pY3BhbnRzcGFydGkyL2ZpcmVmb3gtdXNlci5qcy10b29sCi8vIFZlcnNpb24g
ICAgICA6IDIwMjIuM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CA9ICJuIjsgfTsKICAgICAgLy8gYWRkIHRvIHJlc3VsdCBpZiBt
YXRjaGVzIG9wdGlvbnMKICAgICAgaWYgKCAob3B0aW9uc1sibmFtZSJdLnRlc3QocHJlZk5hbWUp
KQogICAgICAgICYmIChvcHRpb25zWyJ2YWx1ZSJdLnRlc3QodmFsdWUpKQogICAgICAgICYmIChv
cHRpb25zWyJ0eXBlIl0udGVzdCh0eXBlKSkKICAgICAgICAmJiAob3B0aW9uc1sibG9ja2VkIl0u
dGVzdChsb2NrZWQpKQogICAgICAgICYmIChvcHRpb25zWyJtb2RpZmllZCJdLnRlc3QobW9kaWZp
ZWQpKQogICAgICAgICYmIChvcHRpb25zWyJhc2RlZmF1bHQiXS50ZXN0KGFzRGVmYXVsdCkpCiAg
ICAgICAgJiYgKG9wdGlvbnNbIm5vZGVmYXVsdCJdLnRlc3Qobm9EZWZhdWx0KSkKICAgICAgICAg
KQogICAgICB7CiAgICAgICAgLy8gcXVvdGUvZXNjYXBlIHN0cmluZwogICAgICAgIGlmICgodHlw
ZSA9PSAicyIpICYmIChvcHRpb25zWyJzdHlsZSJdID09IDUKICAgICAgICAgIHx8IG9wdGlvbnNb
InN0eWxlIl0gPT0gNCB8fCBvcHRpb25zWyJzdHlsZSJdID09IDMpKQogICAgICAgIHsKICAgICAg
ICAgIHZhbHVlID0gJyInICsgdmFsdWUucmVwbGFjZSgvKFsiXFxdKS9nLCAnXFwkMScpICsgJyIn
OwogICAgICAgICAgaWYgKHZhbHVlRGVmYXVsdCAhPT0gbnVsbCkgewogICAgICAgICAgICB2YWx1
ZURlZmF1bHQgPSAnIicgKyB2YWx1ZURlZmF1bHQucmVwbGFjZSgvKFsiXFxdKS9nLCAnXFwkMScp
ICsgJyInCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmICh2YWx1ZURlZmF1bHQgPT09
IG51bGwpIHsgdmFsdWVEZWZhdWx0ID0gIm51bGwiIH0KICAgICAgICB2YWx1ZSA9IHZhbHVlLn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iYWJvdXQtY29uZmlnLXNlYXJjaCIpLnZhbHVlID0gcmVzdWx0OwogICAgICAgICAgZmls
dGVyUHJlZnMoeyBzaG9ydFN0cmluZzogdHJ1ZSB9KTsKICAgICAgICAgIC8vIHRlbXBvcmFyaWx5
IGNoYW5nZSBhYm91dDpjb25maWcgdG8gY29tcGFjdCBzaXplCiAgICAgICAgICBkb2N1bWVudC5i
b2R5LnN0eWxlLmZvbnRTaXplID0gJzAuOThlbSc7CiAgICAgICAgICBmb3IgKHZhciBzIG9mIFsg
JyNwcmVmcycsICcjcHJlZnMgKicsICcjcHJlZnMgPiB0cicsICcjcHJlZnMgPiB0ciA+IHRkJywK
ICAgICAgICAgICAgJyNwcmVmcyA+IHRyID4gdGgnLCAnI3ByZWZzIGJ1dHRvbicsICcuYWRkJyBd
KQogICAgICAgICAgewogICAgICAgICAgICB2YXIgbyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JB
bGwocyk7CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwLCBqID0gby5sZW5ndGg7IGkgPCBqOyBp
KyspIHsKICAgICAgICAgICAgICBpZiAocyA9PSAnLmFkZCcpIHsKICAgICAgICAgICAgICAgIC8v
IGhpZGUgdGhlIGFkZCAobGFzdCBsaW5lIG9ubHkgc2hvd2luZyB0aGUgc2VhcmNoIGNyaXRlcmlh
KQogICAgICAgICAgICAgICAgb1tpXS5zdHlsZS5kaXNwbGF5ID0gJ25vbmUnOwogICAgICAgICAg
ICAgIH0KICAgICAgICAgICAgICBlbHNlIHsKICAgICAgICAgICAgICAgIG9baV0uc3R5bGUubWlu
SGVpZ2h0ID0gIjEuMmVtIjsKICAgICAgICAgICAgICAgIG9baV0uc3R5bGUuaGVpZ2h0ID0gInVu
c2V0IjsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9
CiAgICAgICAgY2F0Y2goZSkgeyB9CiAgICB9CiAgfQogIGNvbnNvbGUubG9nKHJlc3Vs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4iKTsKICAgIH0KICAgIHN3aXRjaCAodHlwZW9mIHZh
bHVlKSB7CiAgICAgIGNhc2UgImJvb2xlYW4iOgogICAgICAgIFNlcnZpY2VzLnByZWZzLnNldEJv
b2xQcmVmKHByZWYsIHZhbHVlKTsKICAgICAgICBicmVhazsKICAgICAgY2FzZSAibnVtYmVyIjoK
ICAgICAgICBTZXJ2aWNlcy5wcmVmcy5zZXRJbnRQcmVmKHByZWYsIHZhbHVlKTsKICAgICAgICBi
cmVhazsKICAgICAgY2FzZSAic3RyaW5nIjoKICAgICAgICBpZiAodWp0VXNlQ2hhclByZWYpIHsg
U2VydmljZXMucHJlZnMuc2V0Q2hhclByZWYocHJlZiwgdmFsdWUpIH0KICAgICAgICBlbHNlIHsg
U2VydmljZXMucHJlZnMuc2V0U3RyaW5nUHJlZihwcmVmLCB2YWx1ZSkgfQogICAgICAgIGJyZWFr
OwogICAgfQogIH0KICBjYXRjaChlKSB7CiAgICBjb25zb2xlLmxvZygiLy8gKHVqdFNldFByZWYp
IGVycm9yOiAiICsgZSArICIgcHJlZjogIgogICAgICArIHByZWYgKyAiIHZhbHVlOiAiICsgdmFs
dWUgKyAiXG4iKTsKICB9Cn0KCnZhciB1anRSZXNldFByZWYgPSBmdW5jdGlvbihwcmVmKSB7CiAg
dHJ5IHsKICAgIGlmIChTZXJ2aWNlcy5wcmVmcy5wcmVmSGFzVXNlclZhbHVlKHByZWYpKSB7CiAg
ICAgIFNlcnZpY2VzLnByZWZzLmNsZWFyVXNlclByZWYocHJlZik7CiAgICAgIGlmIChTZXJ2aWNl
cy5wcmVmcy5wcmVmSGFzVXNlclZhbHVlKHByZWYpKSB7CiAgICAgICAgY29uc29sZS5sb2coIi8v
ICh1anRSZXNldFByZWYpIGZhaWxlZDogIiArIHByZWYgKyAiXG4iKTsKICAgICAgfQogICAgfQog
IH0KICBjYXRjaChlKSB7CiAgICBjb25zb2xlLmxvZygiLy8gKHVqdFJlc2V0UHJlZikgZXJyb3I6
ICIgKyBlICsgIiBwcmVmOiAiICsgcHJlZiArICJcbiIpOwogIH0KfQoKLy8gc2V0IHVzZXJfcHJl
ZiBhbGlhcyB0byBmdW5jdGlvbiByZXF1aXJlZCAodGhlbiB5b3UgY2FuIHBhc3RlL3J1biB1c2Vy
LmpzKQp2YXIgdXNlcl9wcmVmID0gdWp0U2V0UHJlZjsKLy8gdmFyIHVzZXJfcHJlZiA9IHVqdFJl
c2V0UHJlZjsKCi8qIGVuZCBvZiB1c2VyanMtdG9vbC1hYm91dGNvbmZpZy1mdW5jdGlvbnMuanMg
Ki8K
</div>
<!-- the above base64 encoded block is functions for about:config -->

<!-- *************************************
      If you paste "base64 encoded user.js" within a <div> below it will be
      decoded, loaded, and displayed on opening. (box 2 does not auto display)
      Use the "Menu>Actions>[Encode]" option to create the base64 data.
      example: <div id="base64_box_4">LyogdGVzdCAqLw==</div>
      (It is better to use the ui, as content pasted here will soon go stale)
     ************************************* -->

<div id="base64_box_1" class="hidden"></div>

<div id="base64_box_2" class="hidden"></div>

<div id="base64_box_3" class="hidden"></div>

<div id="base64_box_4" class="hidden"></div>

</body>

</html>