How to disable Google Chrome extension autoupdate in 2020+ - google-chrome

How do I prevent a specific extension from auto-updating itself?
(The old and now-locked answer "How to disable Google Chrome extension autoupdate" does not work anymore)

Find the folder it is in. e.g. click the chrome 3-dots, then "more tools" => "Extensions", and long gibberish code it gives, then search your disk for that folder name in your file system.
Copy that folder to a different place on your hard drive (e.g. click on the folder, then Ctrl-C, then open your "Documents" folder, then Ctrl-V
Uninstall the extension. You need to get rid of the one that will auto-update first.
Load the version you copied: e.g. click the chrome 3-dots, then "more tools" => "Extensions" and click the "load unpacked" button.

Related

Replacing Javascript file in Google Chrome cache

I would like to replace a javascript file in my Google Chrome cache such that when I reload a website it will run my modified script. I could do a whole setup with puppeteer instead but it would be just way easier if I could just replace the cached file. However, I cannot seem to locate my cache or any info on wether this is possible since the data might be encrypted or encoded. Alternatively is there an extension that would let me do this?
You can replace a JavaScript file in your Google Chrome cache by following these steps:
Open Chrome and press F12 to open the developer tools.
Go to the "Application" tab in the developer tools and select "Cache" from the left sidebar.
Find the JavaScript file you want to replace in the cache and select it.
Right-click on the selected file and choose "Delete" to remove it from the cache.
Refresh the website to reload it and run your modified script.
To run the modified script, you can use the "Sources" tab in the developer tools to open the file and paste in your changes.

How to Export Google Search History

Looks like Google has stopped supporting "Download Searches" button as mentioned here: https://support.google.com/websearch/answer/6068625?hl=en . One option is to get history from Google Chrome using something like this https://gist.github.com/evidanary/d02d89c632530878163f256fe993d5a4 . But the history in Chrome is not complete and only goes back for a few months(guessing thats when I upgraded OS).
Does anyone know how to export the search history from beginning of time?
Steps for any OS:
Type about:version in the Chrome address bar and press Enter (also works for Chromium, Iridium, Brave, etc).
Copy the path listed under Profile Path and close Chrome.
Navigate to the profile folder and locate the file named History.
The file is in the SQLite3 format and can be opened with any of the available GUIs, for example DB Browser for SQLite which is cross-platform, open-source and actively maintained.
From the SQLite tables select the urls table to see all visited URLs. You can also use File > Export to get them as a CSV (Excel), JSON or SQL file.
If you are using multiple Chrome profiles then repeat 1-5 for each profile.
I stumbled upon this when I had to migrate data from one machine to another.
Google searches in chrome are saved along with chrome history. I migrated the complete chrome history and could get the autocomplete results for my past searches.
The search history for chrome is saved in the location
(~UserProfile)\AppData\Local\Google\Chrome\User Data\Default
Look for a file History inside this folder. This is the complete chrome history (or from the time you last cleared chrome history).

Disable update of specific chrome extension

With recent news of adblock being sold to some unknown company, first thing i want to do is disable any possible update for that extension.
I've found number of questions but they are outdated. So chrome pros please tell how do we disable a specific plugin? and please take into consideration that there are many instances which synchronize it is important that the change gets synchronized to other computers, if it is not how do we do that?.
And a secondary question : where do we find sources of already installed extension? so that we could later pack and run it?
Chrome does not offer a way of disabling an update for a specific extension.
If you want to make sure that you run some specific version of an extension, you could try any of the following options:
Read-only extension folder
Go to the directory containing the extension, and mark the directory as read-only. To find that directory, visit chrome://version and look at the path at "Profile Path". The extension will then be at [value of Profile path]/Extensions/[32-character extension id].
Download the source code
Download the source code of the extension, and load it as an unpacked extension (or upload it to the Chrome Web store, and then install it).
There are several ways to get the source code (including just copying it from the directory as I mentioned at the previous step).
If you want to download a Chrome extension without installing it (e.g. because the new version contains unwanted "features" that you want to remove), then you could use my Chrome extension source viewer to download the code.
Some extensions expect to be run with a specific extension ID. You can forge this extension ID if you load the extension in unpacked mode (but you cannot upload the extension to the CWS if you do that). For instructions on fixing the extension ID, see How to change chrome packaged app id Or Why do we need key field in the manifest.json?.

Dev tools Network Tab, open script in Sources tab?

In Chrome Dev Tools, when viewing the Network tab, is it possible to select a script and open it in the Sources tab? Double-clicking the script opens it raw in a new browser tab.
Because the Sources tab organizes all assets by their source domains (along with folder paths), it can be time consuming to locate a particular script, if you don't know immediately where it came from. You have to switch back and forth between Network and Sources, taking note of the domain and folder path in the script's header and then trying to dig through all the source domain's and subfolders until you locate the script.
It seems like there should be some obvious way of opening a script in the Sources tab from the Network tab, but I don't see how. You appear to have to manually dig to find it.
EDIT
This feature is now available in Chrome Canary, and should be available in stable Chrome in a few weeks.
As far as I know this is not possible right now. I think it's a good idea though, so I reported it for you.
The quickest way, I can think of, to open a script from the network tab in the sources tab is to:
copy/memorize name of the script from network tab,
go to the sources tab,
open file search (cmd+p / ctrl+p),
enter name of the file you are looking for.

How to edit HTML in Google Drive?

I have hosted a HTML file created on my PC (along with a stylesheet) on Google Drive using the script described here.
I have given out the link and it seems to be working fine (no reported issues from those I've sent it to).
I have just discovered a minor omission from the file, I need to add another sentence. This should be ridiculously easy on a PC, I could just open it on notepad!
I can't find a way to edit it on Google Drive, the only connected apps are the viewer and Docs.
The viewer, as the name suggests, will only let me view the HTML, and the docs app won't let me save it back to the original file.
Obviously I could download it then upload again, but from experience it will probably give me a different URL.
Is there any way for me to do this while keeping the link the same, as I have already given the address out?
Currently you can't. You can only preview html files, that is preview the code or preview the rendered content, but you cannot natively edit the code. You have two options:
use a third party extension, such as Neutron Drive or Drive Notepad.
install the Google Drive Desktop App, edit your files locally and save. Changes will be uploaded automatically.
I have just used HTML Editey chrome app
You can do this through file revisions. Hopefully, Google adds another way, but using the revision feature works for me. To revise your file, click the check mark in the Google Drive file list, click more, and then click "Manage revisions...". In the box that pops up, click upload new revision and then you're set.
You may also be able to edit html files stored in google drive through other plugins, but I do not use any at this time to know of them.
Update!
go to drive right click your html file
choose "open with" then "connect more apps"
when app library pop up search for "notepad" then choose "drivenotepad"
after it connect to drive, select it, you will get code editor.