![]() ![]() The nice thing is the "Disable JavaScript" menu doesn't change when you enable/disable it, so you only need one shortcut. In older versions you had to restart the app to see the shortcut. In recent versions of OS X, shortcuts are immediately updated, even if the app is already running. (I chose command (⌘) + shift + J because ⌘ + J is used for Edit » Find » Jump to Selection.) Your new shortcut should look like this:Ĭlick "Add" and switch back to Safari. Then choose whatever Keyboard Shortcut you want. I recommend using copy/paste of that line above. You must get the spelling and capitalization exactly correct. Choose "Safari" as the "Application" and in the "Menu Title" field type: The important thing is to make sure that you're in the right place: Application Shortcuts, and then press the "+" key. Notice that I have made several shortcuts for Safari, yours may look differently than mine. Select "Application Shortcuts" from the left column, and then click the "+" sign under the second column. To create that shortcut, go to System Preferences » Keyboard » Keyboard Shortcuts. Near the bottom you'll see an option to "Disable JavaScript," and you can see the custom keyboard shortcut that I have applied to it (⌘+ Shift + J, but you can choose a different one if you want). You can see Safari's Develop menu shown in the image at the top of this article. ![]() The Develop menu includes several handy little features, including the ability to open the current page in another browser, or change the User Agent that Safari sends (which can be handy if you want to see the iPad or iPhone version of a page). To do that, go to Safari's preferences, click on "Advanced" and check the box next to "Show Develop menu in menu bar." (Note that an earlier version of this article suggested doing this via the command line using "defaults write IncludeDevelopMenu 1," which will work but is obviously not as easy.) The first step is to enable Safari's Develop menu. This works by blocking domains, which is useful for some of the largest offenders (I'm looking at you, and ), but it won't keep all the bad JavaScript stuff from happening. My first recommendation is to install the Safari Extension JavaScript Blacklist, which blocks most of the worst offenders, including most places that use those double-green underline link ads. We need an elegant weapon for a more civilized age. JavaScript is used for a lot of good stuff, and a lot of bad web developers haven't taken "What if JavaScript is disabled?" into consideration for some things that should be able to work without it. If you've ever been frustrated enough by JavaScript to want to disable it entirely, you may have gone to Safari's preferences » Security tab and unchecked the box next to "Enable JavaScript." I call this the "Nuclear JavaScript Option." Unfortunately, like Global Thermonuclear War, disabling JavaScript entirely turns out to be an unfeasible option. Fortunately, you have more tools at your disposal. On some sites you use Safari's Reader feature, but that doesn't always work. ![]() My favorite is when I'm at a page that won't let me copy text or even right click, thinking this is some sort of "protection." The ironic part is that many of these sites (such as for music lyrics) are posting content they don't own in the first place, and then they try to use JavaScript to block you from using it. Those green-double-underline links or other links that show you ads when you hover over them? JavaScript. Pop-up windows? Pop-over windows? Ads that suddenly appear or slide over what you were trying to read? Also JavaScript. Unfortunately the analogs of "maniacs" and "drunk drivers" of the JavaScript world all seem to work in marketing. ![]() Have you ever typed something into a field and the website immediately recognized a problem? That was JavaScript. Most of the time you don't even notice JavaScript, but it's working in the background to help you and the website work together. Some people, however, are maniacs, some are drunk drivers and some are just not very good at it. Most people who drive cars are good folks just trying to get from Point A to Point B as easily and quickly as possible. JavaScript by itself is neither good nor evil. By subscribing, you are agreeing to Engadget's Terms and Privacy Policy. ![]()
0 Comments
Leave a Reply. |