Corrupt bookmark: Cannot edit or delete - firefox

In Firefox, I have a bookmark I cannot delete or edit.
The bookmark becoming this way is totally my fault: I attempted to install a javascript bookmarklet but managed to save it with "http://" in front of the javascript. Bookmarklets should only start with "javascript:".
Now, the bookmark is forever locked and unusable, with the beginning of the URL like so: "http://javascript:", essentially two protocols being used. Firefox doesn't know how to handle it, so the bookmark edit dialog only half-renders with just Save and Cancel buttons, no other details. Right-click actions on the bookmark do nothing. The only interaction I can do with the bookmark is drag it to another position in my bookmarks bar.
I suspect I need to manually edit my bookmarks to either delete it or make the URL correct.
Perhaps one way of doing this is opening the bookmarks file (place.sqlite) with a database editor.
Any other recommendations?

SOLVED:
Using SQLite Browser, I was able to find the bad bookmark and fix it's URL. On the first try, the URL ended up being "#javascript:" when I re-checked it inside Firefox. Not sure how that # character got there, but I did a 2nd try and this time got a clean "javascript:" URL and the bookmark operates normally: I can edit or delete it.
To anyone trying this, definitely make a copy of your places.sqlite before making changes. The table containing the bookmark URLs is "moz_places" and it the column is just "url".

Related

How to prevent Firefox reloading tabs (even one clicked on)

Seriously, is there any way to tell Firefox NOT to reload tabs after start?
I know I can check "Don't load tabs until selected" in Options window, but this only stops reloading tabs automatically and will still reload tab I click on - I do NOT want that!
I want to reload every tab myself.
The reason is that sometimes I have multiple tabs with Adminers' SQL command textarea which gets cleared on reload. You surely get how happy I am everytime I have to remind the commands.
I tried googling for any extensions or about:config options but nothing do what I want. Am I the only one wanting this?
I submitted the bug here https://bugzilla.mozilla.org/show_bug.cgi?id=900494
I don't think it's possible to disable loading of clicked tabs. But, you can try for instance Work Offline addon that allows you easily switching Firefox to offline mode. Firefox loads clicked tab from its cache in offline mode and it could preserve your textareas.
I know I'm late to the party, but I just had this issue myself and perhaps this answer will help other users. I went into about:config and searched for the setting browser.sessionstore.max_resumed_crashes and changed that from default 1 to 0.
Go to Firefox' about:config (via the address bar), click "accept the risk", then type accessibility.blockautorefresh in the search bar and toggle that setting to true.
Edit: restart of FF is necessary.

save webpage as a url file and open with chrome

How can I simply save a webpage in chrome as a text based url file that when clicked in finder opens the webpage in chrome?
Here is what I have so far found and tried: the following code:
[InternetShortcut]
URL=http://http://stackoverflow.com/
(it needs an empty line at the end too but I couldn't get that shown in the code above). When saved as a .url file and kept simply in my filesystem, and click on it it opens the webpage directly in safari (since I am on a mac with osx). I want this to open in Chrome, but changing the "open with" settings opens the file as a text file; it doesn't execute and take me to that webpage.
I was in your exact same situation Geoff, and I was able to find this after digging through a ton of forums.
Open up Chrome/Firefox and go to the web page you were wanting to save.
Look at the address bar.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
Click and drag it to the Desktop and then drop it.
This will create a webloc file, and for me it shows a Safari icon as the file image, even says Safari is the default program to open it. However, when I click on it, it always opens up in Chrome! :)
Hope this helps.
Using Chrome Version 29.0.1547.76
OSX 10.9.2
https://stackoverflow.com/a/22768604/10258377
Thank you #AZRckCrwler.
I would like to make it easier to understand base on his answer.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
You can see the circle that I marked, then drag & drop here.

Force Firefox to reuse existing tab for modified HTML file

If Firefox is already displaying a local HTML file on my PC in a tab (address = "file:///...") and I modify the file using my favorite external editor, sending the file to FF to display the edits results in FF opening a new tab with a fresh instance of the original file, rather than searching to see if the file is already open it it and reusing that tab.
Sure, after editing the file I could reopen Firefox, navigate along the tab bar to the existing tab for that file and click Refresh. But IMO FF should be capable of doing this for me. In my work, by the time I need to refresh FF, the tab currently open is not likely to be that of the file I am editing, so I continually need to return to the original page to refresh it.
My efforts to work around this include:
1)In about:config, *setting browser.link.open_newwindow* from 3 to 1.
2)Running Firefox and passing it either the filename or the URL to the filename (as -url parameter).
3)Looking for a suitable add-on.
I am not fond of either Firebug or Aurora and prefer my own editor (EditPlus), which with I am far more comfortable, to edit web pages. However, its inbuilt browser does not display properly on my screen, so I need to view results of edits in Firefox.
Can anyone suggest a solution to this problem? I've searched here without success. The best solution would be another about:config setting. Thanks in advance.
(added) After all, in EditPlus, if I send it a file (in document-centric mode) which it has already opened, it simply changes focus to the existing tab. Why can't FF do this?
Thanks for suggesting the "Restore Open_External" add-on.
I tried it but it doesn't help me here. What it does is:
(quote)
"browser.link.open_external (Integer). This option specifies how Firefox opens links launched externally, e.g. e-mail or Microsoft Word. 3 options are available;
1. Selecting this option launches the link in a new tab in the most recently active Firefox window. This would be recommended if you don’t wish launching such links to affect your most recently active webpage and you aren’t concerned about the links content.
2. Selecting this option launches a new Firefox window to view the link. This would perhaps be the safest option to select (In that if you launch something questionable you may be able to end the process without affecting other windows).
3. Selecting this option (default) launches the link in the most recently active Firefox window/tab. This would be recommended if you aren’t concerned about launching links is the most recently active window/tab (You can always use the back button to view the previous page if you need)."
TechSpot - Firefox 2 Tweak Guide
I'm sure many find this useful. Option 1 would have been fine for my purposes if it didn't insist on opening a duplicate tab. This add-on does nothing to prevent duplicate tabs being opened. So I began hunting for some add-on that might PREVENT a new tab being created in response to an external app sending a file to Firefox. Tab Mix Plus is supposed to do this, but I got lost somewhere in the maze of options. Then there is Prevent Duplicate Tabs, which creates a whitelist of all pages where duplicates are not permitted. This is far from automatic and seems pretty lame to me, as is Duplicate Tab Closer which doesn't prevent a duplicate tab from being created; instead, you have to press Ctrl+Alt+D to remove existing duplicate tabs - equally lame. deduplicate-tabs is similar, but offers a button to remove duplicate tabs.
Maybe I'm missing the point, but I can't see why anyone would want duplicate tabs of the same page, one a later version than the other. In fact, FF ought to be able to automatically refresh a tab when one reselects this, without having to resort to the "refresh" button. But that's just my rant.
If anyone reading this can think of a better way to integrate FF with an external app that modifies a web page, I'll be most grateful.
Install that addon:
https://addons.mozilla.org/en-us/firefox/addon/restore-open_external/
Go to addon preferences and set:
'in the current tab of current window'
Next time you open a new url from an external program it opens in the same tab.
You can also install the
duplicate tabs closer firefox addon which, as the name suggests, allows you to automatically close duplicate tabs
You can configure it to:
Close the older tabs and keep the new tab
Select the new tab
Try this addon.
I'm using it for development mode in Gatsby and Create React App.

firefox brand new “new tab page” - how to see/edit blocked/pinned items?

While it's simple to pin/block a link-screenshot in the new beautiful tab page in firefox I see no way to edit the list of blocked/pinned items, does anybody know how to do it?
E.G. I blocked a page but now I woukld like to unlock, how to do it?
Thanks.
This is for FF17 on Windows, Mac/Linux users cf below
To unlock a blocked page quit Firefox, download sqlitebrowser at sourceforge.net (~6MB as of now, Windows only), use it to open chromeappsstore.sqlite in your "Profiles" directory. On Win Vista that's eg:
[DRIVENAME]:\Users\[USERNAME]\AppData\Roaming\Mozilla\
Firefox\Profiles\[ALPHANUMERICSTRING].default\chromeappsstore.sqlite
Switch to the "browse data" tab, open the edit view of the value corresponding to the "pinned links" key (double click on it). Replace one entry (eg a null) with
{"url":"YOUR_URL","title":"YOUR_TITLE"}
apply changes, save changes.
There's a key "blocked links", too. Intuitively, deleting blocked urls from its value should help, but it didn't when I tried. The trick above is clumsy, but so far I couldn't google anything more elegant. I couldn't find anything useful searching Firefox' about:config tab, either. I found this solution when doing a string search for the blocked url in my profiles directory.
Mac/Linux users should find other sqlite browsers. When using the firefox addon SQLite Manager you would need to make a copy of the database file first and edit that. Afterwards quit Firefox and replace the old file with the new one.
Here's the bugzilla entry ("Bug 722234 - [New Tab Page] provide an option to undo remove a site "), status is assigned, not solved. On comment reads: "Currently, there is now way to undo removal of a site or resetting the page using the new layout."
There's an easier way to do it without downloading, especially for people who may not navigate computers very well. Mozilla does have a way to do it, they just label it poorly and it's a bit roundabout.
Make the page you blocked on your new tabs page a Favorite, then click and drag to an empty space on your new tab page and it will autopin. The one downside is that if you unpin it the site will disappear again. I was frustrated for weeks after I removed Google and there doesn't seem to be much help out there that's simple.
"Make the page you blocked on your new tabs page a Favorite"
What does that mean? Bookmark?
I clicked the PIN icon on a couple and instead of pinning it, it seemed to completely remove that page from the New Tab selections altogether...and indeed, I see no way to get it back. Why would pinning something take it away!? And they were pages I use many times every day; very disappointed.
And those that I clicked ARE in my bookmarks ('Favorites' is an IE term), but they have not reappeared as suggested above.
The sqlitebrowser approach above is too complex and I can see it going awry trying to get all that right. Sad day here for me.

FireBug 1.7.3 still breaks on removed breakpoint

There's a bug in FireBug: I accidentally clicked where the line numbers are, which sets a breakpoint. So I clicked again to remove it. Now it's breaking there every single time. And I've tried setting/removing a breakpoint, but it doesn't work. I've even tried clicking the pause icon, which I see suggested elsewhere, but it does nothing -- it doesn't even change. I've even tried setting it to be a conditional breakpoint that is always false so it should never fire. No cigar. I even tried uninstalling FireBug and reinstalling it!
(Please note that I am using FireBug 1.7.3 with FireFox 3.6.25, and have to for a reason, and cannot upgrade.)
[I'd post an image, but I cannot until I have 10 rep pts!]
How can I remove all breakpoints?
Do I have to uninstall / reinstall?
Try this:
In Firefox, go to URL about:support
Check the Profile Directory
Open containing folder
Go into folder firebug
Delete breakpoints.json
I am having the same issue with Firefox 79.0. Since the breakpoints.json does not exist anymore in this version (how does firebug keep track of its breakpoints now?), I tried
In Firefox, go to URL about:support
Click "Refresh Firefox"
This resets everything to default (language etc.) but also removed "ghost breakpoints".
I think I managed to fix this for newer Firefox versions, that, as was mentioned above, don't have the breakpoints.json anymore.
Open the Profile folder
Navigate to the storage\permanent folder
Close Firefox
Delete the indexeddb+++fx-devtools folder
The deleted folder will be generated again, so don't worry.
You'll probably lose some configuration on the devtools, but it's better than refreshing your entire browser.

Resources