Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are some annoying websites which use custom (badly made) cursors, right click disable/popup JS, etc.

How can I easily undo their settings without specifically finding this piece of JS on their JS files, and instead somehow tell my browser to enable for example the right click again?

I know Stylish probably could do that, but it requires me to update the files every time the website changes their files?

Edit: My Firefox version is 21.0.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Firefox 23 removed the disable javascript options.

Toggle Javascript

You can install the QuickJava extension or Toolbar Buttons extension to toggle js, css, images, etc. There is also Tab Permissions extension that allows changing these per tab.


Block sites from disabling the right-click (context) menu

Oh and apparently you can add the old Firefox options back using SettingSanity extension. Preferences -> Content -> JS Advanced -> uncheck all three options.

Note: SettingSanity not required for Firefox versions older than 23.0

disable javascript nonsense


Block sites from setting custom cursors

  1. Install the Stylish extension
  2. View -> Sidebar -> Stylish -> Write New Style
  3. Name: Disable custom cursors
  4. Textbox:

    * {cursor:auto !important}

    a, a * {cursor:pointer !important}

  5. Save

enter image description here

Note: If you don't want to use the browser built-in text cursor use * {cursor:default !important} instead of auto.

This solution isn't perfect, ideally you would only disallow * {cursor:url(ugly-cursor.png)}


Adding these fixes to JustBrowsing LiveCD, so this is win-win, thank you for bringing my attention to this. Lastly, if you come across a site that manages to get around these blocks, please leave a comment with the link.

share|improve this answer
    
I dont want to disable all JS. thats the problem. im already a happy user of QuickJava. a lot of websites disable right click in hope of preventing "illegal copy of images", some of those are big news sites. cursor modification is rare, but annoying when it happens. –  Rookie Aug 15 '13 at 8:11
    
See the attached screenshot. You need to install the SettingSanity extension to restore those settings for Firefox 23 and above. If you uncheck the box disable or replace context menus (the context menu is the name for the right-click menu) then Firefox won't allow them to disable it. –  justbrowsing Aug 15 '13 at 8:52
    
"Not available for Firefox 21.0" :( –  Rookie Aug 15 '13 at 9:06
    
You don't need SettingSanity for Firefox 21.0. Just go to Tools -> Settings (Windows) or Edit -> Preferences (Linux) and select the Content tab. Next to Enable JavaScript is a button labeled Advanced then uncheck allow scripts to move or resize popup windows, raise or lower windows and disable or replace context menus. –  justbrowsing Aug 15 '13 at 9:10
    
Ah! Found it! thanks. i just realised that maybe Stylish could be used to disable the cursor changes too? not sure if it can make a global style file though? –  Rookie Aug 16 '13 at 8:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.