4ggr35510n Posted November 6, 2010 Share Posted November 6, 2010 Greetings! Short question, as in topic. Is there any way - like in Firefox or Opera - to prevent page-content javascript from executing? BR, 4gr Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 6, 2010 Share Posted November 6, 2010 There's NoScript for Firefox and similar add-ons for other browsers, and security settings in every browser that can disable scripts globally. In IE, you would go to: Tools|Internet Options|Security tab|Custom Level|Scripting section|Click Disable or Enable for various options. That could be enforced by policy if required. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
4ggr35510n Posted November 7, 2010 Author Share Posted November 7, 2010 Thank you for your answer! Yet it doesn't solve my problem. I need to change properties from Internet Options with my Autoit Script, remotely. In Firefox - for example - I could change 'javascript.enabled' value in about:config using _FFPrefSet function. One function, one change - without using my hands :] In Internet Explorer - and IE.au3 UDF - I can change similar properties using _IEPropertySet. I know how to disable javascript manually. Yet I don't know what's the property name for javascript disabling (or enabling), so I dunno how to change it using only UDF .BR,4gr Link to comment Share on other sites More sharing options...
4ggr35510n Posted November 10, 2010 Author Share Posted November 10, 2010 Bump Does anyone could help me? Link to comment Share on other sites More sharing options...
supadodger Posted November 29, 2010 Share Posted November 29, 2010 did you ever figure this out? Link to comment Share on other sites More sharing options...
KaFu Posted November 29, 2010 Share Posted November 29, 2010 (edited) Seems to be quite complex. As I read it, you'll have to tweak the zone definition. http://support.microsoft.com/default.aspx?scid=KB;en-us;q182569 Edit: The easiest way seems to be to assign a site with the domain switch to zone 4 (Restricted Sites Zone). #include <IE.au3> $sURL = "internet.com" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\" & $sURL, "http", "REG_DWORD", 4) $oIE = _IECreate("http://javascript.internet.com/games/button-mania.html") RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\" & $sURL, "http") Edited November 29, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Juvigy Posted November 30, 2010 Share Posted November 30, 2010 Try this: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\X\ Where X is the number from 0 to 4 representing the security zones. Set this ; 1400 Scripting: Active scripting 1402 Scripting: Scripting of Java applets to 3 which means disable. Do it for every zone. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now