I'm trying to make a private HTML document on my flash drive that when launched, will log me into a website. I've searched and searched and I have yet to find someone online with the same problem, thus I could not find any help. This would be for sites that log in using the POST method of course. I know it's possible to request a page, but is it possible to control the elements inside of it?
Any information is appreciated.
You probably want to make a userscript with scriptish or a make it as a bookmarklet.
I'd recommend something like KeePass to do this. Any website worth it's salt won't allow you to do a cross-domain POST.
Related
This question might not be suitable for this website and I am only asking this for information purposes..
So, please let me know if this is not suitable and I will delete it.
I have created a web application using PHP and Javascript.
what I want to do is to find a way to turn the entire thing into a small javascript code so I only give that piece of javascript code to the users and they can copy and paste it in their website in order to be able to use the application on their own website without being able to edit the contents of it!
could someone please advise on this?
Again, please let me know if this question is not suitable for this site and I will delete it.
There are two ways to go about this, make it available as an iframe widget (which could theoretically be injected through javascript) or make a cross-domain API with which the javascript would interface. From the sound of it going down the iframe route sounds most sensible, although it does come with a clickjacking vulnirability.
overflow community,
I've read several posts trying to solve the problem, but they dont answer my question.
Is there any legal way to find out what events (?) another site sends?
I dont ask because of illigal buissness and i am ready to find out more myself as soon as i know what i realy have to look for in terms of topic and methods.
In particular its about advertising and finding out if someone registered on another via a referal link. Like a sign that is sent as soon as the registration (on the other site which is not mine) is completed.
I want to find this out during the visit of the client on my site.
I just need to know if such a thing is legally possible and what JS topics i should give a go to find out more.
I hope my post is comprehensible enough. :)
edit: It's not about global variables.
You can use your browser's developer tools to see what's happening behind your back while you're visiting a web page (I recommend Firebug in Firefox). Alternatively, you may use a network spoofer like Wireshark to capture the traffic from the browser and analyze it in any way.
It's all up to you to find the information you think is relevant inside it in URLs, in request headers and bodies, etc. In your case, this would include script generated content and referal codes that may help keeping track of a user's browsing history across domains.
You don't really need Javascript knowledge to do this, but you need some basics about networking protocols.
This is probably as illegal as using a text editor, but just ask your lawyer if you're unsure :D
There is a website that I visit often... let's call it www.example.com. And, I am able to interact with parts of this website. The interactions send XMLHttpRequest and get a response back through Javascript, jQuery I believe.
I'm not sure what technology will let me achieve what I want to do, and where to start. Basically, I want to add additional options/shortcuts that the site does not provide. I thought about maybe using a macro, but trying to use macro recording software is just a pain in the butt.
I inspected (using Google Chrome's Developer Tools) the XMLHttpRequest being sent back and forth and I noticed that it is simple JSON messages. I figured the best way to add enhancements to the site without waiting for the actual owners of the site to do so would be to simulate the website sending/recieving these XMLHttpRequest/Response and making additional adjustments to the DOM to provide extra shortcuts.
I don't want to interfere with the original site's functionality though... ie if I send a request and receive a response I want both the original script and my script to process the response. So, here is where I'm stuck... I'm not sure whether to go along the paths of creating a C# application or a Google Chrome extension (I use Google Chrome) or something else alltogether. Any pointers on what dev tools/languages will give me the ability to do what I want would be great. Thanks!
Chrome has built in support for user scripts. You can use these to modify the page as you see fit and also to make requests. Without more details regarding what exactly you want to do with these AJAX request it's hard to advise further.
I'm not 100% sure what your question is, but as I understand it, you want to be able to make changes to a certain website. If these changes can be done with js, i would recommend Greasemonkey for Firefox. It basically lets you run a custom script when you are visiting a certain webpage/domain. You can be as specific as you want about which pages use the script. Once your script loads jQuery, it is really easy to add any functionality.
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
You can find pre-written scripts for tons of sites here:
http://userscripts.org/
I remember following a like off of here a little while ago for something called shark.js or sharpe.js (but I might be wrong on the name). I've tried googling it, looking through here, my browser history and I have had no luck. It wasn't wkhtmltopdf, I know that much. Does anybody know what it might be called or what I am talking about? Have you got a link to it please?
Stack overflow Question: jQuery Webpage Preview
From the second answer:
http://craigsworks.com/projects/qtip/demos/content/thumbnail
That should be what your looking for, don't know if it's the exact same thing, but same functionality.
Not sure how this can be done in client side javascript in real-time. However, I bet Google uses a server-side process to capture a screenshot and then uses javascript to request an image to display to the client.
I am writing a FF extension that will modify the behavior of an existing webpage. A page from the site makes a call (via Javascript) back to a server (via a public api) that I would like to augment.
Does anyone know how I might do something like this? Not exactly sure where to start.
Thank you very much,
Matt
You'll have to first figure out how the web page you're trying to extend does the call you want to augment. Firebug and inspecting the source will be helpful here.
Then use GreaseMonkey or a reimplement parts of it to make the necessary changes to the page.