Disabling JavaScript in chrome

12
2013-08
  • Web Developer

    I usually go to Chrome content settings. I usually go there to enable / disbale js in chrome. Which is too many clicks. Is there a shortcut to enable/disable JavaScript or access content settings.

    PS: enabling it back once it is disabled is easy, as a icon is added to the address bar but disabling is the main culprit

  • Answers
  • Indrek

    Since Chrome 16, there is an extension named Quick Javascript Switcher that turns Javascript on/off on the fly.

  • Siim K

    If you're using Chrome on Windows then you can create a copy of your Chrome shortcut (rename it to Google Chrome no JS, for example). Right-click on it and select Properties. Add -disable-javascript to the end of the Target field. The end result should look something like this:

    C:\Users\UserName\AppData\Local\Google\Chrome\Application\chrome.exe -disable-javascript

    When you open Chrome using this shortcut then JavaScript is disabled

  • slhck

    About every configuration/preferences screen in Chrome is just a web page, so you could just add a link to this URL to your Bookmarks Bar:

    chrome://chrome/settings/content
    
  • Matthieu Cartier

    You could use an extension like NotScripts. From the plugin page:

    NotScripts gives you a high degree of "NoScript" like control over what javascript, iframes, and plugins runs in your browser to increase security and lower the CPU usage. It is useful to help mitigate some attacks like certain cross-site scripting (XSS) vulnerabilities and drive by downloads by blocking the third-party content before it even runs with it's default deny policy.

  • Web Developer

    A simple way is to

    1. Open console
    2. Click on setting icon in bottom right
    3. Enable/disable js and several other things

  • Related Question

    Why is my Chrome back button skipping pages when using Google Reader's "Next" bookmarklet?
  • ino

    The "Next" google reader bookmarklet is a bookmark button you put in your bookmark bar, and when you click on it, it redirects you to the next unread item in you google reader list, but not in google reader. It shows you the original page.(If you go to Google Reader settings > goodies, you'll find it.)

    My problem:
    When using the next bookmarklet for many times in a row, sometimes with 2-3 seconds of interval to skip uninteresting stuff, sometimes I want to go back to the previous, and when I click the browser back button, it often skips some 2-5 pages and goes to a very previous one, and not the one I was expecting.

    If I use the backspace instead of the back icon, it skips it aswell, and if I right-click the back icon, it doesn't show the history for the one I was looking for.
    It happens on normal, beta and dev versions of chrome.
    In Firefox it does not skip.


  • Related Answers
  • scraimer

    This has always been a problem with AJAX-based sites. Search for "Breaking the BACK button" in google, and you'll find many articles. The problem is that AJAX queries don't get added to the browser's history, so the "BACK" button doesn't even see them.

    Many Google products try to "fix" this by doing navigation in hidden IFRAMEs, sometimes in combination with anchor-names in the URLs (although the anchor names are really for bookmarks, and not for this, since they don't usually get saved into the browser's history.)

  • Ivo Flipse

    Are you using the browser back button? Because if you want to go back up, just use the Google Reader shortcuts:

    • j/k = item down/up = selects the next/previous item in the list
    • space/shift-space = page down/up = moves the page down/up
    • n/p = scan down/up = in list view, selects the next item without opening it
    • o = open/close item = in list view, expands or collapses the selected item
    • enter = open/close item = in list view, expands or collapses the selected item
    • s = toggle star = stars the selected item
    • shift-s = toggle share = shares the selected item
    • m = mark as read/unread = switches the read state of the selected item
    • t = tag an item = opens the tagging field for the selected item
    • v = view original = opens the original source for this article in a new window
    • shift-a = mark all as read = marks all items in the current view as read
    • 1 = expanded view = displays the subscription as expanded items
    • 2 = list view = displays the subscription as a list of headlines
    • r = refresh = refreshes the unread counts in the navigation
    • shift-n/p = navigation down/up = selects the next/previous subscription or folder in the navigation
    • shift-x = navigation expand/collapse = expand or collapse a folder selected in the navigation
    • shift-o = navigation open subscription = opens the item currently selected in the navigation
    • gh = go to home = goes to the Google Reader homepage
    • ga = go to all items = goes to the "All items" view
    • gs = go to starred items = goes to the "Starred items" view
    • gt = go to tag = allows you to navigate to a tag by entering the tag name
    • gu = go to subscription = allows you to navigate to a subscription by entering the subscription name
    • u = toggle full screen mode = hides and shows the list of subscriptions
    • ? = keyboard shortcuts help = displays a quick guide to all of Reader's shortcuts
  • Richard Gadsden

    Google recently put an interstitial page into the Next button which fixes the back button.