<commit_before>* conkeror
** RC file
   Official doc: http://conkeror.org/ConkerorRC
*** Change RC file location
    Just execute this statement in conkeror(by M-:). And it will take effect forever.
    #+begin_src js
    user_pref('conkeror.rcfile', '/home/foo/conkeror-rc');
    #+end_src
** add an interactive command
   1. Write a function, which accepts one parameter
      The parameter is an object, ~I.buffer.document~ refers to curent document, ~I.window~ refers to current window.
   2. bind the function to a command with ~interactive~ function.
      First parameter is the command string, second parameter is the doc, third is the function created in step 1.
      
   A perfect example:
   #+begin_src js
   function darken_page (I) {
       var styles='* { background: black !important; color: grey !important; }'+
           ':link, :link * { color: #4986dd !important; }'+
           ':visited, :visited * { color: #d75047 !important; }';
       var document = I.buffer.document;
       var newSS=document.createElement('link');
       newSS.rel='stylesheet';
       newSS.href='data:text/css,'+escape(styles);
       document.getElementsByTagName("head")[0].appendChild(newSS);
   }
   
   interactive("darken-page", "Darken the page in an attempt to save your eyes.",
               darken_page);
   
   define_key(content_buffer_normal_keymap, "C-d", "darken-page");
   #+end_src

** define key to an interactive command
   Define a key in a keymap. The action should be an interactive command string.

   keymaps:
   | text_keymap                  |
   | default_global_keymap        |
   | content_buffer_normal_keymap |
   |                              |
   
   #+begin_src js
   interactive("my-start-solaris-hub", "", my_start_solaris_hub);
   
   define_key(default_global_keymap, "f9", "my-start-win-hub");
   define_key(default_global_keymap, "C-f10", "my-start-solaris-hub");
   define_key(default_global_keymap, "C-c C-c", "my-start-solaris-hub");
   #+end_src

** TODO look overlay.js under conkerorrc dir
   capture some notes to org remember.<commit_msg>add usage remove download<commit_after>* conkeror
** RC file
   Official doc: http://conkeror.org/ConkerorRC
*** Change RC file location
    Just execute this statement in conkeror(by M-:). And it will take effect forever.
    #+begin_src js
    user_pref('conkeror.rcfile', '/home/foo/conkeror-rc');
    #+end_src
** add an interactive command
   1. Write a function, which accepts one parameter
      The parameter is an object, ~I.buffer.document~ refers to curent document, ~I.window~ refers to current window.
   2. bind the function to a command with ~interactive~ function.
      First parameter is the command string, second parameter is the doc, third is the function created in step 1.
      
   A perfect example:
   #+begin_src js
   function darken_page (I) {
       var styles='* { background: black !important; color: grey !important; }'+
           ':link, :link * { color: #4986dd !important; }'+
           ':visited, :visited * { color: #d75047 !important; }';
       var document = I.buffer.document;
       var newSS=document.createElement('link');
       newSS.rel='stylesheet';
       newSS.href='data:text/css,'+escape(styles);
       document.getElementsByTagName("head")[0].appendChild(newSS);
   }
   
   interactive("darken-page", "Darken the page in an attempt to save your eyes.",
               darken_page);
   
   define_key(content_buffer_normal_keymap, "C-d", "darken-page");
   #+end_src

** define key to an interactive command
   Define a key in a keymap. The action should be an interactive command string.

   keymaps:
   | text_keymap                  |
   | default_global_keymap        |
   | content_buffer_normal_keymap |
   |                              |
   
   #+begin_src js
   interactive("my-start-solaris-hub", "", my_start_solaris_hub);
   
   define_key(default_global_keymap, "f9", "my-start-win-hub");
   define_key(default_global_keymap, "C-f10", "my-start-solaris-hub");
   define_key(default_global_keymap, "C-c C-c", "my-start-solaris-hub");
   #+end_src

** TODO look overlay.js under conkerorrc dir
   capture some notes to org remember.
** remove download
   When conkeror startup, all unfinished download will be opened.
   command download-remove removes unneeded download(should be executed in the download buffer).
{'fraction_non_alphanumeric': 0.11121281464530892, 'fraction_numerical': 0.007322654462242563, 'mean_word_length': 3.092696629213483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6683179', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1354, 'n_words': 396}