is it possible in chrome when if am in specific website if it have input with type password it automatically change it to text ?
the purpose of this is because I always want to see the password I am typing.
thanks for helping
I recommend downloading the extension tampermonkey that allows you to run JavaScript code on all the pages you want.
You can then create your own script to do what you want, or take one from GitHub:
like this one that seems to do what you want:
https://gist.github.com/LouCypher/1870154
to download the script just click on the raw button on gist after installing the extension, tampermonkey will automatically recognise the script and propose you to download it.
Related
I do have an extension (developed by me). It works fine. However I can't get the idea on how to launch extension from regular button on a web-page.
The main action (opens Chrome Popup) is performed when I click on extension icon.
But I also need to be able to launch extension via button click on website.
Should I send a msg to extension from website via javascript or?
Or I can go in a different way, and insert content from extension popup to website placeholder. A bit awkward working with extensions.
Any advice appreciated.
Thank you.
Unfortunately, it's not possible. But from the looks of it, it may be available soon.
Check out this answer in this thread.
For my project I need the users to be able to select a file from his PC.
Every user has his own path, and I must open the Select File Dialog ( Input type="file" ) on his path by default, so they can dirrectly pick the file without the need to search for the directory. By default when you open the Select File Dialog, it opens on a default location , example, Desktop / Downloads, and the next time you open it, on the last time you selected an item.
My question is, how can I archive this?
How can i specify the default Path?
It dosnt matter if you open the page from a Mac or Phone or whatever.
It dosnt need to be a html Input, it could be in JS, JQuery ...
I read that by security reasons you can't, and it seems legit but i found like for mozilla you can https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tutorial/Open_and_Save_Dialogs
Dunno if this could be archived on other navigators as Chrome or IE.
If anyone has archived it, could you pass me some URLs or code plz?
Thx in advance
No, you cannot do that. it's against the rules. Your "firefox" link refers to extensions, not pages. It would be a security issue to allow scripts to get any information about your computer's directory structure. If the open had an error callback for example, a script could guess user names in the background and try to open a folder for each of them until it no longer failed.
I'm new to google chrome extensions, but I'm quite familiar with HTML and some javascript. My main area of expertise is Objective-C (but that's a different area).
I wanted to build a chrome extension where I want to replace a website's button with a different custom button (The button uses a specific class/ID). For example if a website were to have a button that said "Tweet Us" I would want to change it to "Email Us", change the onClick action and the button image.
I was wondering if anyone knows of any tutorials or samples that touch on this. Most that I've ran into focus more on building UIs by the bookmark browser, but I don't really have use for that.
Start with reading this.
Add to the manifest.json the URL you want to manipulate under "matches".
Also add to the manifest.json your JavaScript + css (under "content_scripts").
In the JavaScript write some code that deletes the current button and replace it with your button and
your event for that button.
The easiest way to write it is with Jquery.
I have a requirement where I need to print a specific word document when I click on a button in IE8/IE9. I tried to find a way using ExecWB and other methods but could not achieve my goal. Couple of constraints I have are as follows.
The word document is availble through URL and this URL is from a different site than the page where I am clicking the button to print (XSS considerations ?)
I need to directly print using default printer without popping up the print dialog.
Is this possible in anyway?
Impossible from within the context of HTML page, without a custom browser extension. Word document must open before it's printed (maybe not visually presented to the user upon opening, but MS Word or some other application that is capable of opening word docs must be installed on the client system. There is Office extension for IE, which can be used to open the document, but the user has to click on the print button to invoke the dialog. There's nothing that you can do from within javascript to accomplish that. I'm sure you could, if you wrote your own IE extension/plugin, but unless your users are corporate that must install it, nobody else will.
I hope I'm not lying to you.
Here is the code that i would want to play on one page, imgur in particular, this will click the next button in the gallery i was wondering if i would just have to make my own extension or what
function timeMsg()
{
var t=setTimeout("alertMsg()",3000);
}
function alertMsg()
{
alert("Hello");
}
You could go the way of chrome extensions, or greasemonkey scripts, its really comes down to you not 'doing this on the site' but manipulating your DOM in your browser.
Greasemonkey -- http://www.greasespot.net/
Chrome Extensions -- http://code.google.com/chrome/extensions/getstarted.html
A Chrome extension is probably your best bet. They're really easy to make.
Of course, you can always just paste that code into the console and hit Enter.
I have to use an online time clock for work. I made a bookmarklet that populates the form and submits it. It isn't running on their site, just fiddling with the DOM.
Test your javascript on their site using the developer console
Save a bookmark of the page
edit the newly created bookmark in the bookmark manager and change the URL to something like this
javscript:( your function )();
example