How to modify an extension from the Chrome Web Store? [closed] - google-chrome-extension

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've seen this extension in the Chrome Web store, which shows the newest videos of a YouTube channel. I want to modify this extension in order to make it work with a different channel.
How can I get this done?

You've got two options:
Contact the extension's developer, and ask for assistance.
Edit the source code
I'm going to explain how you can modify an extension, and install it, in easy terms.
Getting the source and modifying it
Install the Chrome extension source viewer.
Go to the page in the Chrome Web Store of the extension you want to modify.
Click on the yellow CRX button in the context menu, and choose Download (screenshot).
Extract the zip file.
Read the source code, and change what needs to be changed (in your particular case, I had quickly identified that you wanted to change edit config.js and change the "channel" property). Save the changes.
Using the modified version of the extension.
Visit the Chrome extension page (chrome://extensions/).
Enable Developer mode, by activating the switch in the upper-right corner.
Click on the "Load unpacked extension" button.
Select the folder of your extension (to know which folder is correct, check whether the folder contains a file called manifest.json).
Confirm. You're done.
Unless you've made a mistake in either of these steps (including the modification of the source code), the modified extension should work as intended.
Ethics
Modifying someone else's extension for personal use is not a big deal. However, do not distribute this extension without the original developer's consent. The original author has put lots of efforts in creating the extension, and might even have his/her contact details on it. If you distribute a (modified) copy of the extension, the original author cannot update the extension any more, so s/he cannot resolve bugs.
Even worse, if you turn the extension in a bad shape, users will complain to the original author, because their contact details are on it.

Related

Extension is missing in category page in Chrome Web Store [duplicate]

This question already has answers here:
Chrome Extension won't appear by filtering in the Web Store, only by search
(2 answers)
Closed 6 years ago.
I have popular extension in Chrome Web Store in category Web Development.
For some reason it is missing in category view page, no matter how long I scroll the list down: https://chrome.google.com/webstore/category/ext/11-web-development
Any ideas of what is the reason and how to fix it? I hope someone from Chrome Web Store team can contact me
Chrome filters out extensions you already have installed from the "browse" view.
I can assure I can find your specific extension in that category.
You can check yourself from another browser profile (this carries over to Incognito, so it MUST be a profile without this extension).
Note, trying to contact CWS team through here is a poor idea. One can try the bugtracker for general issues, as at least some CWS issues are tracked there, and there's a (well-hidden) developer support form for CWS.

Chrome has DELETED our addon because of an error [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
We are completely outraged!
Because of some recent changes in the security policy or whatever our addon was DELETED from ALL the users.
There was no warning, no notification, NOTHING.
This was the problem in our Manifest file:
"content_security_policy": "script-src 'self' chrome-extension:// https://; object-src 'self'",
It worked like this for years..
And this is the error when trying to install it:
Failed to load extension from:
Invalid value for 'content_security_policy': Both 'script-src' and 'object-src' directives must be specified (either explicitly, or implicitly via 'default-src'), and both must whitelist only secure resources. You may include any of the following sources: "'self'", "'unsafe-eval'", "http://", "http:// localhost", or any "https://" or "chrome-extension://" origin. For more information, see http://developer.chrome.com/extensions/contentSecurityPolicy.html
When this row is removed it works fine.
We want Google to fix it now. Add-on is a basic part of our product, without it our product is not as useful. We have invested money in it. This is not acceptable for us that Google will just take and remove it from all our users.
How do we contact Google for this? I couldn't find any way to contact them. We want them to fix this issue and reinstall the addon to all the users that had it. We don't care how they are gonna do it. They deleted it, so they should deal with it now.
What is the problem with that line and how do we fix it? our add-on is changing the Chrome new tab and it seems like without it, it stops working.
Please help!
Thanks
What is the problem with that line and how do we fix it? our add-on is changing the Chrome new tab and it seems like without it, it stops working.
chrome-extension:// and https:// is the problem. First off, it's a syntax error. The correct syntax would be https://*.
Second you're supposed to specify a small set of domains that are allowed to run code. You're supposed to specify one or two websites from which scripts can be loaded.
For example: https://domainweloadscriptsfrom.com
Google has a whole section on what is and isn't allowed.

No-Content-Script for chrome extension

I may be a bit of paranoid when it comes to installing chrome extension that request access to all my tabs and data. While a extension may be safe for the moment, a simple auto background update can make it a malicious virus and you won't even get notified about updates.
I would like to specifically whitelist all my extension to access the content pear webpages bases. Is there any such tool out there already (natively perhaps) before i start hacking my own extension to control it on my own.
That would leave me to my next question. Extension can be a bit secured running sandboxed environment and have no access to the "real" filesystem (not the virtual sandboxed filesystem) but could i write a NaCl plugin and have have full access and change the manifest file to change the content_scripts settings? if so, could you point me in the right direction?
I'm not sure to understand clearly your question, but let's calrify some things about extensions and how they can be dangerous:
First: If an extension updates and want to have new authorisations, Chrome will warn you and you can choose if you want it to be updated
Second: Chrome sandboxes extensions running on your computer
Third: The only authorisation that may represent a real danger for your computer are the ones requesting authorisation to "Access all data on your computer"
.
.
.
If you are really worried that some extensions may represent a danger for you (and I understand you), you can restrict them to run on specific webpages by doing the following:
1. Go to the extensions folders [C:\Users(YOUR USERNAME)\AppData\Local\Google\Chrome\User Data\Default\Extensions(APPID)] and open the manifest.json file with any text editor
2. In "content_scripts" declaration, in "matches", specify sites where the extension will ONLY work on [ex:*://google.com/* will make extension be active ONLY for google.com]
You can even be more precise and set specific URLs/HTML pages (see more: https://developer.chrome.com/extensions/match_patterns)
Hope it helps!
If it doesn't, please clarify your question again.

How can I keep my PDF files from appearing in search engines? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am trying to sell ebooks on my website. The ebooks are in the form of PDF files. The customers pay to download them with Paypal. But if I type the beginning of the ebook into the google search the PDF file comes up. Anyone can then open the PDF file. I have tried this on someone else's computer and the same thing happens.
Thus, the question is, how can I keep my PDF files from appearing in Google and other search engines?
I'll list two solutions in order of complexity.
Use a robots.txt file to prevent your PDF files from being indexed by Google. That will prevent further indexing, however, if someone knows the exact addresses to your PDF files, they can still share the links and download them without paying.
Store the PDF files in a directory outside your Web server root, but which is still readable by the server itself. When someone buys your e-book, register their purchase in a database and send them a customized download link via e-mail. This link will point to a script on your server which will check the purchase into the database. If the user is authorized to download the file, the script will open the right PDF file on the server, read it and pass through its contents to the Web browser. The browser, depending on how the script was made and on the user's preferences, could open the PDF inline (in the browser window) or ask the user to download it. This is the best way to handle downloads as knowledge of the customized download link is required, and you could also block downloads from a specific user in case he/she gives away his/her personal link.
Either way, since the URLs to your e-books have been exposed, you should change them AND ask Google to remove the old addresses via its tools for Webmasters.
Putting unencrypted PDF files online in a way that allows access without prior authorization will always be insecure, since once the link to the PDF is publicly known, anybody will be able to download it. Therefore you should seriously reconsider your distribution strategy.
One time download links and sending the PDF by mail after a successful purchase are probably the best options.
Until then you might want to replace the PDF with an password-protected RAR file and only give the password to paying customers. This obviously is also insecure and requires decompression software capable of handling encrypted RAR files.
In order to address the issue of your PDF being found by Google and other search engines, you should read about robots.txt. However this is not a solution, since not all web crawlers will honor the content of the robots.txt file.
I also believe that you probably don't know about the Internet Archive. This site takes snapshots of websites which might include a copy of your publicly available PDFs.

Chrome Extension: How to create? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am experienced in HTML and JavaScript but have never made a (real) Chrome Extension (other than the "Hello World' tutorial).
What I want to do is make an extension that adds functionality to viewing images. Basically I want a pieice of JavaScript to load when you go to a .jpg, .png, ect. page.
I couldn't get much out of the "Hello World" tutorial or the Docs and I've looked at code from XML Tree, but I'm having trouble understanding it.
I don't know where to go from here.
Since you're experienced in JavaScript and HTML, tell you what the best source is?
http://developer.chrome.com/extensions/getstarted.html
Documentation
The above link (Chrome Extension Documentation) is so simple to read once you get a hang of it. For example, I didn't know JavaScript when I created my first Chrome Extension (Reload all tabs). I recommend you to read the docs (will only take you an hour), and follow the steps that you need.
Make sure you understand the different UI's you can tap to
Browser Actions: You use browser actions to put icons in the main Chrome toolbar.
Context Menus: You use context menus to add items to Chromes context menu.
Desktop Notifications: Use desktop notifications to notify users that something is important.
Option Pages: If you want an options page, this is your guy!
Page Actions: If you want to override certain pages (New Tab, History, Bookmark Manager)
Make sure you realize there are many browser interactions that you can tap into:
Bookmarks: Access to your bookmarks
Cookies: Access to Cookies
History: Access to History
Management: Access to Extension Management
Tabs: Access to your Tabs
Windows: Access to your Windows (which has Tabs).
Make sure you understand the difference between Background Pages and Content Scripts, and their limitations.
Make sure you realize there are some neat functions in the Chrome.* API.
Make sure you understand permissions.
Many more
145 Chrome Questions I answered on Stackoverflow
If you want more examples, I have answered many questions regarding Chrome Extensions that might help you get started (145+ Questions Answered), for example, here are some of the more recent ones:
Content Script Skeleton
Send data from Background Page to Content Script
Communication with the embedding page, Simple fetching of the pages JS variable
Taking Screenshots in Chrome
Walkthrough building an extension
Executing JavaScript when a user clicks on a browser action.
How to capture selected text and send it to a web service
Walkthrough how to create an extension to access Disqus Comment Box
Walkthrough how to highlight the DIV that the mouse if hovering over
Walkthrough how to move to the top of the page extension
Walkthrough how to create a bubble overlay when you select text.
etc and 120 more answers for Chrome Extensions, the above is what I copied from the results on the first page. So a search in Google will get you many results.
Real open source extension I created
If you want to see real source code of the extensions I have written (some are super small, some are super big):
Reload all tabs extension
Open link in a foreground tab extension
HTML5 Haptics Chrome extension
Set Wallpaper extension
Prayer times extension
Facebook friend exporter extension
Proxy Anywhere extension
Resources
If you still want more resources, you can:
Read the documentation.
Read the Official Chromium Extension Mailing list
The unofficial Internet Relay Chatroom #chromium-extensions on irc.freenode.net
Google (Will bring you to Stackoverflow, or Quora)
I hope this helped!
well it’s not that tough to create a chrome extension ,anyone who has a basic understanding of HTML,CSS,Javascript can actually make one!
If you want to make a extension I have wrote an article on Medium it might be useful here's the link
Also I have attached my code on github here’s the link
Keep Learning!

Resources