Browsers Cheat Sheet

Emulate other browser with Browserling.

Mozilla Firefox

Configurations

  • All configurations: about:config
  • Cache content: about:cache

Browser History

Browser history is stored in a SQLite database.

locate places.sqlite
sqlite3 <path to places.sqlite>
select * from moz_places;
.quit

Edit JavaScript files

The files cannot be edited directly in Firefox’ DevTools (unlike Chrome).

  • Right-click on the page and click Inspect.
  • Click on the Debugger tab within the Dev Tools.
  • Locate the script that you want to edit (.js).
  • Right-click on the script and select Add script override. Choose any folder.
  • Open the script and edit with your favorite code editor.

Access variables from iframes in Console

  • Right-click on the page and click Inspect.
  • Select the Console tab.
  • Click the dropdown to select the iframe window (defaults to Top). It is located at the bottom-right corner, beside the console textbox.

Google Chrome

Configurations

  • All configurations: chrome://about/
  • chrome://version/
  • chrome://history/
  • chrome://policy/
  • chrome://system/

Edit JavaScript files

  • Right-click on the page and click Inspect.
  • Click on the Sources tab within the Dev Tools.
  • Locate the script that you want to edit (.js).
  • Right-click on the script and select Override content. Choose any folder.
  • Open a new tab and go to “chrome://version//inspect/#device”.
  • Click Allow to allow Chrome to access the folder.
  • Edit the script within the DevTools.

Access variables from iframes in Console

See example (GitHub).

  • Right-click on the page and click Inspect.
  • Select the Console tab.
  • Click the dropdown to select the iframe window (defaults to top). It is located at the top-left corner of the console.