Make Chrome Faster

1. Use Chrome/Chromium Of x64bit, if your machine can handle it.

2. Install those both official Chrome-extensions:
https://chrome.google.com/webstore/detail/dalkfakmooljfejnddeaibdkgbbogpea
https://chrome.google.com/webstore/detail/pcgokfnmpaefeofjpbicabmcadpcnhon

3. Access chrome://flags/ and change the following values,
you may easily reach either of those by copy&&paste them into the address-bar.

👉 chrome://flags/#num-raster-threads ➧4
👉 chrome://flags/#default-tile-width ➧1024
👉 chrome://flags/#default-tile-height ➧1024

👉 chrome://flags/#enable-fast-unload ➧Enable
👉 chrome://flags/#smooth-scrolling ➧Disable
👉 chrome://flags/#enable-quic ➧Enable
👉 chrome://flags/#enable-zero-copy ➧Enable
👉 chrome://flags/#enable-site-per-process ➧Enable
👉 chrome://flags/#v8-cache-options ➧’Cache V8 parser data.’
👉 chrome://flags/#v8-cache-strategies-for-cache-storage
➧’Aggressive’
👉 chrome://flags/#enable-scroll-anchoring ➧Disable
👉 chrome://flags/#enable-pointer-events ➧Enable
👉 chrome://flags/#passive-listener-default ➧’Force All True’
👉 chrome://flags/#document-passive-event-listeners ➧Enable
👉 chrome://flags/#passive-event-listeners-due-to-fling ➧Enable
👉 chrome://flags/#expensive-background-timer-throttling ➧Enable
👉 chrome://flags/#enable-nostate-prefetch ➧’Enabled Prerender’
👉 chrome://flags/#enable-resource-prefetch ➧’Enable Prefetching’
👉 chrome://flags/#delay-navigation ➧Disable

4. Just before the restart required in stage [3] (above),
close all other tabs (other than chrome://flags/),
access chrome://net-internals/#dns in a new-tab, and click the ‘clear host cache’, you can safely close the chrome://net-internals/#dns now, and back in the chrome://flags/ click on the big-blue ‘relaunch now’ button.

5. Run Chrome with the following command-line switches:

--enable-accelerated-vpx-decode="0x03" --prefetch-search-results --disable-pinch --disable-in-process-stack-traces --enable-tcp-fastopen --enable-threaded-compositing --enable-gpu-scheduler --use-double-buffering --enable-hardware-overlays --enable-partial-raster --disable-speech-api --ipc-connection-timeout="90"  --enable-gpu-memory-buffer-compositor-resources --enable-gpu-memory-buffer-video-frames --enable-native-gpu-memory-buffers --disable-payment-request --disable-3d-apis --disable-logging --disable-presentation-api --enable-rgba-4444-textures --v8-cache-options="data" --v8-cache-strategies-for-cache-storage="aggressive"

you may use a .bat or .cmd batch file if it is easier for you,
or use my https://github.com/eladkarako/iniRun project.
here is my ini file (for chromium :])

[Information]
Parent_Folder=C:\Users\Elad\AppData\Local\Chromium\Application

Arguments=--force-device-scale-factor="1.2" --enable-accelerated-vpx-decode="0x03" --allow-outdated-plugins --ppapi-flash-path="C:\Windows\System32\Macromed\Flash\PEPFLA~1.DLL" --ppapi-flash-version="24.0.0.221" --prefetch-search-results --enable-lcd-text --enable-font-antialiasing=1 --ppapi-antialiased-text-enabled=1 --no-referrers --reduced-referrer-granularity --force-ui-direction=ltr --enable-pepper-testing --keep-alive-for-test --disable-pinch --ipc-connection-timeout="90" --disable-hang-monitor --disable-in-process-stack-traces --enable-tcp-fastopen --enable-threaded-compositing --enable-grouped-history --ash-md=enabled --material-design-ink-drop-animation-speed="fast" --show-md-login --top-chrome-md="material" --secondary-ui-md="material" --enable-gpu-scheduler --show-md-login --disable-md-oobe --use-double-buffering --desktop-window-1080p --enable-hardware-overlays --enable-partial-raster --disable-speech-api --enable-gpu-memory-buffer-compositor-resources --enable-gpu-memory-buffer-video-frames --enable-native-gpu-memory-buffers --disable-payment-request --disable-3d-apis --disable-logging --disable-presentation-api --enable-rgba-4444-textures --v8-cache-options="data" --v8-cache-strategies-for-cache-storage="aggressive" --enable-threaded-compositing --no-referrers


;;// Overrides the timeout, in seconds, that a child process waits for a
;;// connection from the browser before killing itself.
;;const char kIPCConnectionTimeout[]          = "ipc-connection-timeout";


Full_Path=C:\Users\Elad\AppData\Local\Chromium\Application\chrome.exe

Run_Mode=SW_SHOWMAXIMIZED

search this blog for newer ways to download all recent command-line switches and this might also help: https://github.com/eladkarako/Chrome-Command-Line-Switches :]

Enjoy!

Block Sockets? Ask Me How!

This Little Chrome Extension: https://github.com/eladkarako/Chrome-Extension-Socket-Killer
Acts As A Socket-Firewall, Blocking WebSocket Connections, Even Before Connecting!
As A Bonus, It Also Null’ifies The WebSocket Object-Constructor :]

Blocking websockets, prevents the next-gen. ads from infiltrating your- presumingly ads-protected, browser.

It will also improve your Ad-Blocking extensions, catching most ads, blocking more connections, etc..

Enjoy.

Stuff You Should Exclude From Your Anti-Virus

It should be perfectly safe to exclude some folders from your anti-virus processing.
Have a look below, my notes/comments should help you understand the generic state-of mind and then you can apply the same reasoning to modify or add other items.

Continue reading

Google “Secret” Domain Check API Service

It is keyless, so one may query it quite a lot,
although it WILL drag-with-it every cookie you have on the same Google domain, so be cautious if you’re going to try it from the same-browser you normally read emails from gmail or access other Google related services (YouTube..)

You may wrap it will a PHP/server-side service or use a plain-cURL script in which you have a full control on the sent-data.

Since I’m doing every request from me PC out in Tel-Aviv, Israel- the domain’s data will surely include the .co.il Google-variation. You may encounter other variations such as .co.uk, .ru or .cn if you are from China just kidding, there is no Google in China :/

Continue reading

Chromium API Keys

When you build Chromium yourself, or download a Chromium nightly-build, you need to provide API-key, a secret-phrase and a client-id,
running Chromium without either of those three phrases will seriously compromise Chromium’s functionality.

The is a sort of “inner-Google” page on how to generate, and use the API-Keys needed to make Chromium a properly, fully functional Chrome-compatible browser (including Syncing your bookmarks and other stuff..)

There is an issue, however, with that page (https://www.chromium.org/developers/how-tos/api-keys) which has not been-updated for a while, especially on the names of the API-services, one, needs to enable in-order to use Chromium in a fully functional mode,

icompile.eladkarako.com_google_console_api_services_list_helper_for_chromium_api_keys

I’ve gathered those services (including a direct link for you to use in-order to activate it)
the following list (Google API-console) is ordered as:

– Name.
– Description.
– URL.

the list of API-services is sorted (A,B,C..) by the Name of the API-service.

Continue reading

A Not So $h!tty Google-Analytics JavaScript Code

icompile.eladkarako.com__a_not_so_htty_google_analytics_javascript_code

There are some new stuff running at Google,
making Analytics better then ever,
however, the javascript code raised a lot of eyebrows due to its complexity,

oh and the help-page for the user-visitors contains some UTF-8 weird stuff added by mistake to the code..

here is a “not so $h!tty stuff” that will not @#$ up your page, its broken down to 3 <script>
tags, that should be placed in the very end of the document, just before the closing body tag (</body>).

as a bonus there is an example on how to use the unique user-id featured (essentially everything new is here you can use the Analytics)

first, locate this in your very top of the page, just before the doctype area

<?php 
  session_start();
  if(! isset($_SESSION['uniqueID'])){
    $_SESSION['uniqueID'] = uniqid();
  }

  setlocale(LC_ALL, 'he_IL.UTF-8'); 
  mb_internal_encoding('UTF-8');
  //setlocale(LC_CTYPE, 'en_US.UTF-8');
  //header('Content-Type: text/plain; charset=UTF-8'); //header('Content-Type: text/plain; charset=windows-1255');  
?>
<!DOCTYPE html>
<html lang="en-US">
<head>


and this, at the end of the document



<script>
window["GoogleAnalyticsObject"] = "ga";
window["ga"] = window["ga"] || function(){ 
  window["ga"].l = 1 * new Date();

  window["ga"].q = window["ga"].q || [];
  window["ga"].q.push(arguments);
};
</script>
<script src="https://www.google-analytics.com/analytics.js"></script>
<script>
window["ga"]("create", "UA-THE_CODE_FROM_GOOGLE-1", "THE_DETAIL_FROM_GOOGLE");
window["ga"]("require", "displayfeatures");
window["ga"]("require", "linkid", "linkid.js");
window["ga"]("set", "&uid", "<?php print($_SESSION['uniqueID']); ?>");
window["ga"]("send", "pageview");
</script>

</body>
</html>

extract your values (“UA-THE_CODE_FROM_GOOGLE-1” and “THE_DETAIL_FROM_GOOGLE”) from your original Google-Analytics code-snippet,
your visitors will have an additional cookie, maintaining their identity on your website, this is 100% maintained by PHP, you can also use any PHP variable such as wordpress login name, or even a variation of the guest IP or any other detail you would like to track, and put it instead of the session-id, but, this is the easiest way.

note:
while processing the code I’ve came across some weird UTF-8 characters that were breaking my page,
this was due to I was copying&pasting it from Google-support, into my page,
solution was using Notepad++ to convert the PHP file to UTF-8, then the symbols were visible, and I’ve just deleted them, saved and uploaded the PHP file as binary through FTP.