"Save link as" in Right-click Context menu is not working properly.

Firefox 17: In a Google search, when I right click on a .pdf link, the popup window automatically gives a "url" filename and "Firefox Document" as filetype. Previously, the filename would be whatever it was on the website (ie. "filename.pdf") and the filetype would be "Adobe Acrobat Document".
I know this problem has less to do with Firefox and more to do with JavaScript, because the problem disappears if you disable JavaScript (Tools -- Options -- Content -- uncheck "Enable JavaScript"). What's happening is that JavaScript is somehow altering the link from a purely .pdf link to something else -- perhaps encasing the link inside a set of commands, and the computer is trying to save the command string instead of recognizing the link for what it is. When JavaScript is disabled in Google searches, the highlighted "[PDF]" link no longer appears in front of the link itself, and the "Save link as" function on the right-click works properly.
Any JavaScript junkies want to try their hand at creating a workaround? One that ensures that the reference created by the right-click context menu matches exactly what the filename is for the website?

The problem is that Google has an onmousedown attribute added to the links that modify a link if you click or right-click a result link to make the link point to a safe browsing check on the Google server.<br />
You can see that if you hover a link and you will notice that after you have (right) click a link the the URL changes to www.google.com/url?xxxxx.
You can use this bookmarklet to remove the onmousedown attributes.
<pre><nowiki>javascript:(function(){var e=document.querySelectorAll('*[id="search"] a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>

Similar Messages

  • Right click context menu is not working in flash player 10 and above

    In right click custom context menu i have create like "A" if i click "A" i have attached one movie clip in that movie clip right click, i have custom context menu like "Remove A" this is working fine in flash player 9 and below. But flash player 10 and above fisrt "A" is working fine but in that movieclip clip right click "Remove A" is not working Please guide me regarding this issue.
    Thanks in Advance
    Surendran S

    The problem is that Google has an onmousedown attribute added to the links that modify a link if you click or right-click a result link to make the link point to a safe browsing check on the Google server.<br />
    You can see that if you hover a link and you will notice that after you have (right) click a link the the URL changes to www.google.com/url?xxxxx.
    You can use this bookmarklet to remove the onmousedown attributes.
    <pre><nowiki>javascript:(function(){var e=document.querySelectorAll('*[id="search"] a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>

  • Right click context menu does not appear only for Java 1.7, AWT TextField

    I have been debugging some issues that an application has been having with Java 1.7 versus older versions. A new problem I have encountered is that the right click context menu does not function in any TextField. It works fine when running/compiling it with any previous version of Java. I have tried coding a simple test with a Frame, Panel and TextField to see if it might be something else in the more complex application that was causing it, but the simple test class has the same problem.
    I have searched for other people having the same issue, but I have not found anything comparable. This seems like a huge change from one version to the next and I am surprised that I am not finding this mentioned anywhere else. Can someone point me to anything that discusses this issue that I am having? Does 1.7 require I implement my own context menu? I realize AWT is old technology, but this is an old, fairly complex application that doesn't use swing, and that is not going to change at this point.
    My simple test:
    import java.awt.*; 
    import java.awt.event.*; 
    import java.util.*; 
    class testF3 extends Panel 
      public static void main(String args[]) 
        Frame f = new Frame(); 
        Panel p = new Panel(); 
        f.setLayout(new BorderLayout()); 
        f.add("North", p); 
        TextField tf1 = new TextField("", 20); 
        p.add(tf1); 
        Dimension medm = f.getSize(); 
        medm.height = 100; 
        medm.width = 200; 
        f.setSize(medm); 
        f.setVisible(true); 

    In the past few days since upgrading to 4.0.4, the entire right-click context menu for links is gone and replaced with one item: "Copy Link" The "Open In New Tab" item, along with some other context items, is no longer there.
    That's actually a problem with your particular installation of Safari, b. I've got all the contextual menu entries with my 4.0.4.
    I helped fix one of these recently here at the forum. Try the procedure from the following post (it got back Tho's missing contextual menu entries):
    http://discussions.apple.com/thread.jspa?messageID=10598385&#10598385

  • Delete datagridview row using right click context menu does not behave like the delete key

    I have a datagridview with editing enabled. If I click the row header and press the delete key, the row is removed no questions asked. I don't recall doing any coding to make this happen but I couldn't do copy and paste using keys so I created a context
    menu with copy, paste, & delete.  The delete option calls
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    The row is removed but the problem is this fires other events like RowValidating which fails.  I presume because the row is no longer there.
    The delete keypress is definitely a lot cleaner so my question is 3fold. 
    1) Why doesn't Rows.RemoveAt behave like the delete key? 
    2) Is it possible to issue a delete keypress to do the same thing?
    3)  Is it possible to suppress the RowValidating event or other events when Rows.RemoveAt is fired?

    Interesting.  My delete key does not fire the row validating event.  When I use the delete key I click on the row header which does fire the row validating event and then I press the delete key.  Row is deleted and no event fires.  Works
    just the way I want it to.  I wish my context menu delete worked that way.  I wouldn't know what chunk of code I can provide to show the Row Validating NOT firing when delete key is pressed but here is the context menu code that does fire Row Validating.
    private void cmsEditItemClick(object sender, ToolStripItemClickedEventArgs e)
    ToolStripItem item = e.ClickedItem;
    switch (item.Text)
    case "Copy":
    if (dgvVX130.GetCellCount(DataGridViewElementStates.Selected) > 0)
    try
    // Add the selection to the clipboard.
    Clipboard.SetDataObject(
    dgvVX130.GetClipboardContent());
    // Replace the text box contents with the clipboard text.
    catch (System.Runtime.InteropServices.ExternalException)
    MessageBox.Show("The Clipboard could not be accessed. Please try again.");
    break;
    case "Paste":
    if (Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) == true)
    ClipboardUtils.PasteFromClipboard(dgvVX130);
    dgvVX130.NotifyCurrentCellDirty(true);
    dgvVX130.EndEdit();
    dgvVX130.NotifyCurrentCellDirty(false);
    bindingSource1_PositionChanged(this, e);
    break;
    case "Delete":
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    break;
    default:
    //code
    break;
    private void dgvVX130CellContentClick(object sender, DataGridViewCellEventArgs e)
    //dgvVX130.IsUserSelectionEnabled = true;
    dgvVX130.BeginEdit(false);
    ((TextBox)dgvVX130.EditingControl).SelectionStart = 0;
    //((TextBox)dgvVX130.EditingControl).SelectionLength = 3;
    public class ClipboardUtils
    public static void PasteFromClipboard(DataGridView grid)
    try
    char[] rowSplitter = { '\r', '\n' };
    char[] columnSplitter = { '\t' };
    // Get the text from Clipboard
    IDataObject dataInClipboard = Clipboard.GetDataObject();
    string stringInClipboard = (string)dataInClipboard.GetData(DataFormats.StringFormat);
    // split into rows
    string[] rowInClipboard = stringInClipboard.Split(rowSplitter, StringSplitOptions.RemoveEmptyEntries);
    // get current cell
    int currentRow = grid.SelectedCells[0].RowIndex;
    int currentColumn = grid.SelectedCells[0].ColumnIndex;
    // get 1st cell in selected area
    for (int i = 1; i < grid.SelectedCells.Count; i++)
    if (currentRow > grid.SelectedCells[i].RowIndex)
    currentRow = grid.SelectedCells[i].RowIndex;
    if (currentColumn > grid.SelectedCells[i].ColumnIndex)
    currentColumn = grid.SelectedCells[i].ColumnIndex;
    // add more rows if need to paste data
    /* if (grid.Rows.Count < rowInClipboard.Length + currentRow)
    grid.Rows.Add(rowInClipboard.Length + currentRow - grid.Rows.Count); */
    // paste
    for (int iRow = 0; iRow < rowInClipboard.Length; iRow++)
    if (iRow + currentRow < grid.Rows.Count)
    string[] cellsInRow = rowInClipboard[iRow].Split(columnSplitter);
    for (int iCol = 0; iCol < cellsInRow.Length; iCol++)
    if (grid.ColumnCount > currentColumn + iCol)
    DataGridViewCell currentCell = grid.Rows[currentRow + iRow].Cells[currentColumn + iCol];
    if (!currentCell.ReadOnly) // H.NH added to avoid Read only case.
    if (cellsInRow[iCol] == "")
    if (grid.Columns[iCol].ValueType.Name == "String")
    currentCell.Value = null;
    else
    currentCell.Value = DBNull.Value;
    else
    currentCell.Value = cellsInRow[iCol];
    switch (iCol)
    case 3:
    currentCell.Value += "_ChangeColumnName";
    break;
    case 2:
    currentCell.Value = grid.Rows[iRow].Cells[iCol].Value;
    break;
    else break;
    catch (Exception e)
    MessageBox.Show("Sorry, can not paste from the clipboard.\nError: " + e.Message, "Paste Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

  • How do I modify the file right-click context menu to add "creat shortcut"?

    I have just chosen Mozilla as my browser and want to add shortcuts to files by using the right-click context menu, but there is no "create shortcut" choice displayed.

    Could you describe where you're clicking, exactly? Are you clicking on a web page, or clicking a link on a web page? If you are using Firefox to browse files on your hard drive, you're probably better off using Windows Explorer to do that since Firefox doesn't have all the functions of Windows.

  • Right-Click context menu is gone

    Using Windows 7, Safari 4.0.4. I noticed recently that when I right-click on a link, I saw the link context menu and I used to be able to select "Open in new tab" This was great to use the mouse only to navigate, open new tabs, and surf around...using just the mouse.
    In the past few days since upgrading to 4.0.4, the entire right-click context menu for links is gone and replaced with one item: "Copy Link" The "Open In New Tab" item, along with some other context items, is no longer there.
    To be honest, this is pretty useless. If I'm only using the mouse, then this means that I have to:
    1. Right Click on a link, select Copy Link
    2. Right click in the tab bar and select "New Tab"
    3. Click in the address bar of the new tab to select the field
    4. Right-click in the address bar and select paste
    5. And now I'm still having to use the keyboard to submit the address as there is no "Go" button for the address bar.
    I know I can just Ctrl + Click a link to open in a new tab, but that requires the keyboard and the mouse.
    I'm all for simple interfaces, but why did you take away the link's right-click context menu? It made surfing and opening tabs so easy using just the mouse.

    In the past few days since upgrading to 4.0.4, the entire right-click context menu for links is gone and replaced with one item: "Copy Link" The "Open In New Tab" item, along with some other context items, is no longer there.
    That's actually a problem with your particular installation of Safari, b. I've got all the contextual menu entries with my 4.0.4.
    I helped fix one of these recently here at the forum. Try the procedure from the following post (it got back Tho's missing contextual menu entries):
    http://discussions.apple.com/thread.jspa?messageID=10598385&#10598385

  • 1) (Right click) Context menu is IE's context menu(!) and when I attempt to use a sight that uses scripts (a site that I've used extensively and which I use to conduct my online college courses - application is Angel), it goes blank

    1) (Right click) Context menu is IE's context menu(!) and (2)when I attempt to use a sight that uses scripts (a site that I've used extensively and which I use to conduct my online college courses - application is Angel), it goes blank
    == This happened ==
    Every time Firefox opened
    == 2 days ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; WWTClient2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Creative AutoUpdate v1.10.10)

    Previous post from "Not Anonymous" but from the original poster; I used the link provided in the email notification and now have to indicate who I am???
    Thanks; starting FireFox in safe mode and disabling all add-ons did solve the problem; however, a new problem has emerged. To re-enable the add-ons, you need to open up and use the add-ons control panel through FireFox. Any attempt to do so causes the FireFox add-on control page to close immediately.
    Thanks for your help.

  • How do I fix the right-click context menu; it has blank entries and shows no selectable options?

    recently I have noticed that my right-click context menu looks like it has no entries. It shows up on a right-click, but the whole menu is blank. On further investigation there are scroll buttons on the top and bottom of the menu and if I hover over the up buttom eventually the normal context commands scroll down from above. I noticed this first a few days ago, shortly after the download of 3.6.13. Today I also noticed that some of my menu bars were showing a similar issue with blank entries in the menus. In one case the menu also didn't register where the mouse was, highlighting a command several steps further up.
    Is this something to do with the new Mozilla or something else? I only run a couple of addons, Ad Block Plus and Tab Mix Plus. Can try to capture a screen shot of the issue, but difficult since the menu dissapears when I try to do a screen grab!
    All help is much appreciated.

    Hi, thanks for the quick response!
    While trying to find info on how to fix this I looked up some context menu addons for FF and tried one. It didn't work so I uninstalled it and after that everything was back to normal. Odd, but there you have it. I still don't know what went wrong in the first place but for the moment it appears to have cleared up.
    Next time though I will try loading into Safe Mode if I find any issues (I forgot there was one!).
    Thanks for getting back to me again.
    GC

  • Is there any way to prevent the right click context menu from combining Stop/Reload?

    Is there any way (about:config tweak, or something) to prevent the right click context menu from combining Stop/Reload?
    Screenshot of what I'm talking about: http://picsend.net/images/873089StupidReloadSto.png

    I did try the add-on ''Menu Editor'' https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ but even when I separate the navigation reload and stop icons and explicitly have both stop and reload set to be visible on the right click context menu I only get the one option showing.
    Whilst there may be some way of changing this I do not know how to and I do not really see any use case for making such a change. Only one option of the choice: stop or reload, is available at any instance in time, but that is the option you are able to use, the other option is not active and so is not displayed.

  • Update for RDP 8.1 Windows 7 SP1 changed explorer right click context menu

    I have a 4 pcs and 3 nas drive on my network.  previous to the update I could view my pcs and nas drives in explorers right pane left click one and access the folders on it.  since the update I can no longer do this because "remotedesktopconnection"
    has been added as the default (previously it was "open") to the right click context menu.  can someone help me change this back so when I right click a network computer icon in explorer I only see:
    open                                                                   
    AND NOT                              remotedesktop
    open in a new window                                                                                       open
    create shortcut                                                                                                 open
    in a new window
                                                                                                                           create
    shortcut
    the exact update that makes the change is: kb2592687

    Hi
    Theoretically it could be done by modify registry. For example you could
    modify right click menu on .exe file by changing values under
    HKEY_CLASSES_ROOT\exefile\shellex\
    However there are some problems that I cannot define that what kind of “file”
    the network computer is.
    And I found no article specific to this.
    If you really need to restore your context menu and also need this update, I
    suggest you uninstall this update first. Then back up your registry, install it
    again. This time using process monitor you could record all registry modifications during
    this update installation. It might take lots of work.
    I tried to do that for you, unfortunately this update has been deployed in our environment which cannot be uninstalled from update history.
    For more information about process monitor
    https://technet.microsoft.com/en-us/library/bb896645.aspx?f=255&MSPPError=-2147217396
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Is it possible to add a button to the right-click context menu for a user in Outlook 2010 using VBA?

    I've tried many things and read up quite a bit but I cannot figure this out.
    I cannot create an add-in so I have to use VBA.
    I want to add a a button to the right-click context menu when I right-click on a user. Is this possible?

    Hello,
    Yes, it is possible to customize the context menu in Outlook. See
    Customizing Context Menus in Office 2010 for more information.
    But VBA doesn't allow to customize the Fluent UI in Outlook, you need to develop an add-in instead.

  • Reader 9.1.3 Right click context menu

    Good Morning,
    We have deployed the Acrobat Reader 9.1.3 MSP Patch on our network to upgrade to the latest version.  However, after the upgrade we are missing some functionality.  In previous versions we were able to right click on a PDF(s) and have the option to "Print".  With the new version those context menus seem to be missing.  Was this a change done by the product?  If so, anyone know why? And if not, does anyone know what I can do about re-adding this functionality?
    Thank you for your time on this matter,

    I put the following into a .reg file and this seems to work. Anything you see that could be wrong?  It does bring back the "Print" option under the right click context menu.
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.pdf]
    @="AcroExch.Document"
    "Content Type"="application/pdf"
    [HKEY_CLASSES_ROOT\.pdf\OpenWithList]
    @=""
    [HKEY_CLASSES_ROOT\.pdf\OpenWithList\AcroRd32.exe]
    @=""
    [HKEY_CLASSES_ROOT\.pdf\PersistentHandler]
    @="{F6594A6D-D57F-4EFD-B2C3-DCD9779E382E}"
    [HKEY_CLASSES_ROOT\.pdf\ShellEx]
    [HKEY_CLASSES_ROOT\.pdf\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
    @="{49400A7C-81A8-4F52-8CCE-D54739EE87EC}"
    [HKEY_CLASSES_ROOT\AcroExch.Document]
    "BrowseInPlace"="1"
    "EditFlags"=hex:00,00,01,00
    @="Adobe Acrobat Document"
    [HKEY_CLASSES_ROOT\AcroExch.Document\CLSID]
    @="{B801CA65-A1FC-11D0-85AD-444553540000}"
    [HKEY_CLASSES_ROOT\AcroExch.Document\CurVer]
    @="AcroExch.Document.7"
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell]
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open]
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open\Command]
    @="\"C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe\" \"%1\""

  • Right-Click Context Menu's Acrobat X Pro Missing

    Hello.  I have a user of Acrobat X Pro on Windows XP 32-bit system.  When they right-click, the context menu's are not there.  These menu's exist in my other 2 users Acrobat 9 right-click menu's.  Please help me to resolve getting the menu items to show up.  I have tried running regsvr to reload the ContextMenu.dll file and it succeeded but still nothing when right clicking.

    Via Hit and Miss, I discovered that the "blanks" in my right click context menu are actually the command buttons, just missing the text.  I tried everything, including the contextmenu.dll approaches but nothing worked.  I then highlighted a few PDF's, hit the blank bar in the context menu, and voila - Acrobat opened and put me into the "combine files" window.    Even right-clicking on a single JPG and then hitting the blank bar opens up the "add files into a PDF" window.
    Not a perfect fix but at least it gives me what I want!!
    nd M

  • Disable Right Click Context Menu in XP "OPEN WITH ADOBE READER 8"

    How can I eliminate the right click context menu "OPEN WITH ADOBE READER 8" in Windows XP?
    I have general familiarity with removing context menus. I see no option for this one in msconfig, or various context menu editors. I am unable to find a setting in Adobe Reader 8. If you know where the setting is, or have solved this problem, please let me know.
    Thanks,
    Joey

    That would be the device Metadata from the print driver vendor. It's part of the Device Stage feature mainly for client OS.
    Here is some MSDN documentation on the feature.
    http://windows.microsoft.com/en-us/windows7/products/features/device-management
    If this is a print server, use the tools include by the print team if you are performing any management on the server.
    Printmanagement.msc
    The Devices UI is really about devices it's not designed for print management, the spooler team had minimal input on the UI design.
    Alan Morris formerly with Windows Printing Team

  • PowerPoint 2010: deactivate/disable right click context menu

    Hi,
    I am looking for a way to deactivate/disable the right click context menu in PowerPoint 2010/365.
    For the editing font menu it works with the registry entry
    Go to: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Toolbars\PowerPoint Create a Dword AllowMenuFloaties and set the value to zero. Set to 1 to enable again.
    NOTE This will kill ALL floatie Menus not just the one you mention.
    Does anybody know, how it works for the main right click context menu?

    Hi,
    Hi,
    We can custom the existing right-click context menu in PowerPoint 2010 via VBA.
    A similar issue is addressed here, we can learn from this experience  :
    http://social.msdn.microsoft.com/Forums/en-US/f8c7ee04-2a08-4300-9a73-48ccf084723d/how-to-remove-munu-item-from-popup-menu?forum=worddev
    http://social.msdn.microsoft.com/Forums/office/en-US/c1eb22ba-6ca8-4c21-8100-62185355aa53/customize-rightclick-context-menu-in-powerpoint-2010?forum=officegeneral
    There is an example of Customizing Context Menus in All Versions of Microsoft Excel
    http://msdn.microsoft.com/en-us/library/gg469862(v=office.14).aspx
    If you need detail help, please post it in MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc

Maybe you are looking for