Where does Chrome store userscripts.user.js files on a mac? - macos

i want to know where chrome stores the userscripts that are installed.
i couldn't find any answer elsewhere.
i'm on a mac.

Finding the extension ID
If you have many user scripts, we'll need to find the extension ID of your user script for the next step. Go to chrome://extensions/ in your address bar, or navigate to the wrench icon, then Tools -> Extensions.
Under each extension, you'll see an entry like ID: inoibihbncpenbmllpjoonoaadechdng. This is the extension ID. Find your script, and observe the ID.
These user scripts are usually stored in:
~/Library/Application Support/Google/Chrome/Default/Extensions
If this path makes sense, you can skip the next section. Otherwise, follow along below for more detailed instructions.
Finding your Extensions folder
Go to your user folder. You can do this by opening Finder, and going to Go -> Home. Then we want to navigate to Library/Application Support/Google/Chrome/
If you're not using multiple Chrome profiles, at this point you should be able to just go to Default/Extensions/
Extension layout
Each extension will be in a folder, named after their extension ID. Inside this, we'll have a version number, then any metadata files. In the latest version of Chrome, userscripts will have at minimum a script.js file and manifest.json. You're looking for script.js, which contains the actual Javascript.

Related

Trying to keep default icons when associating multiple file extensions with same app on Windows

So I have my own windows app, 'MyApp', that I want to associate with multiple existing file extensions such as .pdf, .doc etc. Associating the extension is no problem, but then all of the file icons inherit their icon from the app, which I don't want.
I noticed that pdf files were associated with MS Edge on my Win11 machine, but that .pdf files were being displayed with a regular looking 'pdf' icon rather than an Edge one, exactly as I want to do.
I found this ms page that seems to describe how to do it with a DefaultIcon key in the registry, but my icon remains as MyApp's when I try. I also found this page which sounds similar to my problem. Implementing the answer's solution does change something, but all it does is give all of the associated files a shared icon (I pointed it to a 7zip one just for kicks) that is different from MyApp's.
I've concentrated on creating my own fake extension (.qqq) rather than trash settings for others, although I have tried using .pdf with no luck either.
I also noted the existing use of DefaultIcon with 7zip file extensions, but I was unable to replicate their behaviour with MyApp and its associated extensions.
Can anyone point out where I might be going wrong please?

How do I use Mac OS aliases in Sublime Text 3?

I want to open the tree of folders which contains any code on my Mac in Sublime 3. Something like this:
But I don't have all of it in one folder, and it isn't convenient enough to open many folders in Sublime every time I close the app. So I have created 'aliases' (via Finder) to my folders and put them to one (folder), which i want to open with Sublime.
That didn't work out. Sublime opens these aliases as hex code. While ordinary folders open well.
So the main question: is there a way to make this work as I thought via preferences, or any plugin?
Use symbolic links instead by opening Terminal and using ln -s <SOURCE> <ALIAS>.
You can keep any number of folders you want collected in one place by using projects. Simply drag the folders you want, in the order you want, into the sidebar. Then, select Project -> Save Project As... and save the file anywhere you want with the .sublime-project extension. While you're at it, make sure you have
"hot_exit": true
in your user settings, as this enables you to close windows which have a project assigned to them, and all open files and unsaved changes are automatically preserved. When you next open the project, everything will be the same.

Current info on obtaing Firefox extension source code

I've searched here and tried many of the suggestions but things seems to have changed since these posts were answered. Is there new information on how to look at the source code of an extension directly? By directly I mean not through some other add-in.
At the moment I am on a machine running Windows XP and Firefox 23.0.1.
When I go to any extension page the "download" button changes to "install" in an instant and no right-clicking or options in the dialog gives me the opportunity to save rather than install the plug-in. I've tried this many times and many different ways.
When I drill down to the ...\Application Data\ ... directories I am finding what just looks like config and data files -- no source code.
What i usually do is go to that extension's page in google chrome and it will show this:
You click "download anyway" and then change the file extension from xpi to zip and extract it.
Hope it helps
EDIT:
Either in Firefox or Chrome you can also right click on the button like in the following image and click Save Link As:

Interwoven TeamSite 6.7.2: How to regenerate all pages?

Is it possible to regenerate all pages within Interwoven TeamSite 6.7.2?
Simply selecting a folder and click on Actions -> regenerate page doesn't work. It gets the error message: "Not a generated file".
So is there a trick to regenerate through the folder hierarchy?
TeamSite will process whatever you passed as a parameter, be it file or folder. If it is not template-based, you will see that error. There is no way to recursively regenerate pages throughout a workarea natively.
I have written Perl scripts to traverse the filesystem, test each files extended attributes to see if it was template-based and regenerate the page if so. This is probably the easiest way to achieve mass regeneration.
If you must have this through the GUI, you can create a custom menu item that calls the above script.
Not sure when this question was posted - it says Jan 25 but does not reveal the year, but TeamSite 6.7 has been EOL (end of life) for a few years by the vendor HP Autonomy.
As of this writing the latest version of the software is TeamSite 7.3.2, with version 7.4 right around the corner. The reason I mention about versions is because, the paradigm to create and render pages has undergone a complete change.
Pages are no longer "generated" and deployed. SitePublisher - now part of TeamSite allows pages to be authored using WYSIWYG tools.
That said, the old paradigm of "generating" pages is still backward compatible, but if you are planning to upgrade you may get more value from the system by using SitePublisher and LiveSite.
run this command from the unix command line:
find /your/folder/startpoint -exec /path/to/iwregen {} \;
The error message: "Not a generated file" that you are getting is because you are trying to select a folder since the contents of folders can be different some can be your actual pages while some can be a .pdf file, .txt file or any other extension files.
Please try to regenerate pages using these steps:
Double click on the folder to open in which your actual pages resides
After this try to select all the pages (not manually but there is option/checkbox on the UI as "select all" or "select").
Now, after selecting all just scroll down and see all the selected things whether they are actual pages and not something else. If they are not the pages then deselect only that particular file.
Now, click on "Actions" and regenerate the pages all at once. This will definitely work.
Please vote this solution if it is useful else please add your further issues/questions will try to help you with the best of my knowledge.
Thanks!

How do I configure TortoiseHg to open a file in the right program based on its extension?

I'm using TortoiseHg v2.2.1 with Mercurial 1.9 in WindowsXP. How do I configure TortoiseHg to view a file based on the application Windows has associated with its extension?
For example, if I have a .docx file in the repository and I'm looking at its revision history, I'd like View at revision... to open the selected revision in MS Word. Likewise for other binary file types like ppt and xls, which I can't view using the default text editor or kdiff3.
Can I leverage that Windows already knows what program to use to open certain types of files or will I have to manually configure each file type of interest within the Tortoise config files?
I've found several SVN scripts in the TortoiseHg\diff-scripts folder that look like they solve a similar problem for diffing binaries rather than simply viewing them, but those don't seem to be activated and I'm not sure what if anything I need to mod in the MergePatterns.rc or Mercurial.ini files to make this all work.
To make "View at Revision" use whatever program is associated with the file's extension, try this trick: In the "Global Settings" in the "TortoiseHg" section, enter start "" as "Visual Editor". Note the empty "". This is necessary so that start will not use the file name, which gets passed in quotes by TortoiseHg, as the window title.

Resources