![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Nov 2009
Posts: 1
Rep Power: 0
![]() |
Disabling javascript in Mozilla Firefox with C++
Hi all
I am writing an application allowing my client to send all the contacts/friends on a popular polish social network website the same private message. It's not for spamming purposes - group members are all office collagues and the point is to send them information on certain job-related events. I wrote function that simulate pressing a keboard key. My plan was to open the browser window, enter the url to composing the message subpage, simulate pressing tab few times (enough to "reach" the textbox where I enter the actual message), paste the message and send it. And here's the problem: if javascript in mozilla is enabled the number of tabs I have to press isn't constant - it changes depending what ad is beeing displayed at the moment. And that of course is random. My question: Is there a way to disable javascript in firefox using c++ code? Other than simulating pressing the combination left_alt+t=>left_alt+o=>[reaching the 'content' tab]=>j (that's kinda crazy, but i was desperate =]) For the time beeing let's assume that using Firefox is required. My code opens the given URL in a default browser which is Firefox on clients computer. But I am willing to consider other options if that will prove impossible to do. Thanks in advance, Kronos |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need a javascript disabling people to view source or saving a site | DBZ | JavaScript and Client-Side Browser Scripting | 20 | Nov 15th, 2006 10:00 AM |
| JavaScript and Firefox | JPS | JavaScript and Client-Side Browser Scripting | 2 | Mar 30th, 2006 10:34 AM |
| Mozilla JavaScript Troubles | crawforddavid2006 | JavaScript and Client-Side Browser Scripting | 5 | Jan 25th, 2006 5:11 AM |