form field (block certain sites)
|
|
Question
Example
I checked this site and mozilla add-ons I didn't find anything. |
|
|
You can delete private data each time that you close firefox, and inside private data there are also the saved forms informations.
|
|
|
>> over form fields names... I see your point. How about something to block form field names? |
|
|
Randomize form element name on focus and revert on blur. |
|
|
Yep, or on page load and form submit :) |
|
|
Just keep in mind that you may encounter ajaxy form that doesn't trigger submit event ;)
|
|
|
Um. My programming skills are limited. I'm not even sure how I should start on this. My guess I should start with "focus" and "blur" and come back to this thread once I'm familar with them. Good idea? The link is the code for the anti-spam thing at yahoo games. The add-on InFormEnter injected a bit of code. |
|
|
I write something on the fly, try it and fix it if there are some bugs ;)
|
|
|
Turned out that blur event doesn't occur when you submit by hitting Enter. So my solution is:
function focus() {
this.GM_name = this.name;
this.name = '';
}
function blur() {
this.setAttribute('name', this.GM_name);
}
for (var inputs = document.getElementsByTagName('input'), x, i = 0; x = inputs[i++];) {
if (x.type == 'text') x.addEventListener('focus', focus, false), x.addEventListener('change', blur, true);
}
|
