Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
gary oldmans diary
Sep 26, 2005
I made this batch file to help me clean redundant pages out of my Firefox history like redirects, web carts, error pages, search results, and multiple pages of a single thread.
You have to specify what to remove in 2 other files for that to work, otherwise it just compacts your Firefox history files for you without doing that.
Requires sqlite3.exe.
code:
@echo off
sqlite3.exe -version > nul || goto Nevermind

REM Find Firefox directory and set variables
for /d %%a in ("%appdata%\Mozilla\Firefox\Profiles\*") do set ffprofile=%%a
for %%I in (%ffprofile%\places.sqlite) do set ffplaces=%%~zI

REM Back-up places.sqlite
if exist %ffprofile%\places.sqlite.bak goto Allbackedup
echo Backing-up database
copy %ffprofile%\places.sqlite %ffprofile%\places.sqlite.bak
:Allbackedup
echo Back-up file exists

REM Clear redundant or unwanted pages from Firefox history and superbar.
REM List phrases to match webpage titles to be removed line-by-line in clear_title.txt and
REM List partial URLs to match URLs to be removed line-by-line in clear_url.txt
echo Removing file-specified entries...
if exist clear_url.txt for /f "delims=" %%a IN (clear_url.txt) DO ^
sqlite3 %ffprofile%\places.sqlite "delete from moz_places where url like '%%%%a%%';"
if not exist clear_url.txt echo Clear_url.txt does not exist.
if exist clear_title.txt for /f "delims=" %%a IN (clear_title.txt) DO ^
sqlite3 %ffprofile%\places.sqlite "delete from moz_places where title like '%%%%a%%';"
if not exist clear_title.txt echo Clear_title.txt does not exist.

REM Compact Firefox sqlite files
echo Compacting database files...
for %%a in (%ffprofile%\*.sqlite) do sqlite3 %%a vacuum

REM Pause to check the size, then bye
dir %ffprofile%\places.sqlite
echo This is the size of the main database file, now.
for %%I in (%ffprofile%\places.sqlite) do set /a ffplaces=%ffplaces%-%%~zI
echo It is %ffplaces% bytes smaller now than before cleaning it
pause
echo on

@exit /b

:Nevermind
REM  If you don't have sqlite3.exe
echo Get sqlite3.exe and try this again
echo on

Adbot
ADBOT LOVES YOU

gary oldmans diary
Sep 26, 2005

ryanbruce posted:

So if you last read page 14 of a thread after reading 1-13 it removes 1-13?

..or is that what you have in the .txt file?
To clear out pages after the 1st by how most forums software names page urls, I'd generally add to clear_url.txt:
&page=
&pagenumber=


I haven't really filled those files out to much. I still want to output all the URLs and titles from my history and build and sort it out by frequency to find better patterns to match useless pages.
Edit: I think most people would probably just use it to remove porn sites from their history.

gary oldmans diary fucked around with this message at 04:48 on Aug 16, 2011

gary oldmans diary
Sep 26, 2005

Ryokurin posted:

I believe it was supposed to be a little bit faster for Linux users because they switched compilers but the big speed/memory increases are for 7 and 8.
So not until next week, then.

gary oldmans diary
Sep 26, 2005
I don't know, man, but update your graphics drivers to the newest versions if you just used a system restore disk.

gary oldmans diary
Sep 26, 2005

Ihmemies posted:

It feels pretty weird, being used to Firefox's inherent slowness for years, then suddendly everything working like a dream. Combined with a new OS (Windows 8) and other software like Office 2013, programs finally feel like they are actually using the resources of a modern computer in attempt to be as fast and smooth as possible.
FF18 is clearly faster and Windows maybe faster than many previous iterations, but there's no way I'd say "as possible".

gary oldmans diary
Sep 26, 2005

Ihmemies posted:

That's why I said "in attempt to be" :)
Heh. I've never been a good communicator. :)

gary oldmans diary
Sep 26, 2005

WattsvilleBlues posted:

Firefox shouldn't be sluggish or locking up regularly. I've got 10 extensions installed in Aurora and usually have around 2 dozen tabs open and it works really well. I have a fast computer but even with a lower spec machine you shouldn't be getting crap performance. Have you tried the troubleshooting steps in the OP?
I have 34 extensions and as many tabs (TreeStyleTabs makes it manageable) and I'm only on an AMD E-350. Slowdowns are exceedingly rare and I haven't crashed since 19.0.0 (which was crashing constantly on me... or maybe it was 18, whatever).
Although I imagine the extensions AdBlock and NoScript should count for performance, rather than against.

gary oldmans diary
Sep 26, 2005
I thought the hierarchy was the best part. poo poo is so organized, my eyes always go straight to the tab I'm looking for.

gary oldmans diary
Sep 26, 2005

NihilCredo posted:

When I use a non-default theme, how do I stop the tab titles from getting that stupid shadowed effect? It seems to happen with any custom theme, and I don't believe it's from an extension.


I had a problem with tab shadows making things look really blurry one session, so I went to Stylish and this works well for me at the distance I sit from my screen:
code:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

tab .tab-text{
      text-shadow: 0px 0px 5px white, 0px 0px 5px white, 0px 0px 5px white !important; 
      color:black !important; 
      font-weight: 600 !important;
}

gary oldmans diary fucked around with this message at 09:05 on Apr 3, 2013

gary oldmans diary
Sep 26, 2005

LeftistMuslimObama posted:

I don't like it. I liked having the bar at the bottom with my downloads listed there until I opened them.
This is what I still have and it's up to date. Don't even know what you guys are seeing. :confused:
Maybe you need to go to its options and choose full mode or maybe you need to drag it to the bottom from wherever it is (View > Toolbars > Customize... > [drag and drop interface objects]).

E: TreeStyle Tabs's context menu options don't yet work in FF 20. Even the newer version from the author's site.

gary oldmans diary fucked around with this message at 19:45 on Apr 3, 2013

gary oldmans diary
Sep 26, 2005
So Firefox on Windows can decode h.264, but only on using the h.264 decoder that comes installed with Windows 7/8? Using FFDShow or CoreAVC or whatever is a no-go?

I'm trying the nightly, with media.windows-media-foundation.enabled=true, and viewing Youtube in html5 (with WebM disabled to boot), but the icon I expect to see in the Windows notification bar when my preferred decoder is in use doesn't show and CPU usage increases twice as much viewing fullscreen HD compared to just watching the downloaded MP4 (plus playback isn't as smooth as it should be).

gary oldmans diary fucked around with this message at 21:16 on Apr 7, 2013

gary oldmans diary
Sep 26, 2005

Klyith posted:

They can't afford to pay the license fees to distribute a decoder. Using an open source decoder makes no difference, you still have to pay.


You have paid your MPEG-LA licensing fees for the copy of FFDShow you installed on your computer, right?
That shouldn't be the problem.

http://www.mpegla.com/main/programs/M4V/Pages/Licensees.aspx posted:

122. CoreCodec, Inc.

http://www.mpegla.com/main/programs/AVC/Pages/Licensees.aspx posted:

207. CoreCodec, Inc.


E: To my original question: That media.windows-media-foundation.enabled only enables support for the specific h.264 codec that ships with Windows?

gary oldmans diary fucked around with this message at 21:31 on Apr 7, 2013

gary oldmans diary
Sep 26, 2005
Bummer. Oh well, nothing's perfect.

Edit: But apparently some things get more and more perfect all the time. :)

gary oldmans diary fucked around with this message at 21:46 on Apr 7, 2013

gary oldmans diary
Sep 26, 2005
I'd try disabling hardware acceleration for anything exhibiting video output that garbled (Tools > Options > Advanced (tab) > "Use hardware acceleration when available").
Then looking for graphics driver updates. Starting Firefox's safe mode and testing extensions if that doesn't help.

gary oldmans diary
Sep 26, 2005
I think dumping flash altogether is a bit much. I prefer to just use NoScript with a very short whitelist. One-stop-shop to block flash and javascript everywhere I want and nowhere I don't. Like click_to_play on a one-time, site-wide basis.
There are occasional circumstances where that's not optimal, but it's easy to allow and revoke temporary permissions.

gary oldmans diary
Sep 26, 2005

Buff Skeleton posted:

Pretty sure there's a way to disable context menu items with UserChrome.css - check online for a guide. I know it works for stock menu items but I'm not sure how you'd do it for an extension's.
Menu Editor no good?

gary oldmans diary
Sep 26, 2005

Gerudo Rivera posted:

All the comments say it's busted six ways from sunday

I installed the HideTab extension and checked.
Menu Editor good. Menu Editor very good. Unchecking those bottom 3 and applying immediately removed the context menu items.

gary oldmans diary
Sep 26, 2005

RGX posted:

When I'm watching an HD video in Firefox (particularly youtube)and it loads quickly as it plays, the video hangs and stutters every now and then while the audio plays fine until its fully loaded.
Are you in Youtube's HTML5 trial?

gary oldmans diary
Sep 26, 2005

RGX posted:

I can't find an option for it, how can I tell?
The option to change/check this setting is at http://www.youtube.com/html5.

gary oldmans diary
Sep 26, 2005
Is it still advisable to disable WebM and ogg (in about:config) for the Youtube HTML5 trial?
...Hell, I'll just keep 'em disabled anyway.

gary oldmans diary
Sep 26, 2005
The Greasemonkey script Youtube Xl wasn't working with HTML5, so here's the same thing as a style for the Stylish add-on (which I prefer to a script, anyway):
code:
@namespace url([url]http://www.w3.org/1999/xhtml[/url]);

@-moz-document domain("www.youtube.com") {
    .watch-medium #player-api {
        position:   fixed   !important;
        left:       0px     !important;
        top:        0px     !important;
        width:      100%    !important;
        height:     100%    !important;
        z-index:    999     !important;
        }
}
If it also works with the Flash version of Youtube, I guess that'd be a bonus.

gary oldmans diary
Sep 26, 2005

Captain Invictus posted:

Firefox is the Skate 3 of browsers, works great most of the time and there's lots you can do, but when it messes up, it does so in the weirdest loving ways. Or it just outright breaks.
Skate 3's physics is broken for everyone. It seems like only some people continuously have Firefox problems.

What do you think, HAL 9000?
: It's probably the machine's fault, Dave.

gary oldmans diary
Sep 26, 2005
That's weird. I've been using Adblock Plus and Better Privacy and my profile directory is only 254 MB (143 I could just delete from the cache folder). And it's not new. I've been dragging the same profile around for years through a lot of versions of Firefox and a lot of add-ons. Firefox is an unstoppable tank against my abuse.

gary oldmans diary
Sep 26, 2005

Im_Special posted:

It does depend on configuration I've found, but just out of curiosity this is what my adblockplus folder looks like (aka normal) but what happens commonly with a lot of people is that every time they close Firefox, a new 1MB~ size patterns file gets created and over time there can be as many as 10,000 of them, its a bug but most people don't notice. So people with Adblock Plus + Better Privacy in Firefox type about :support and go to your Profile Folder and check whats in the adblcokplus folder, I kinda want to hear just how large some of your guys folder size is.

Also with 15 addons my self my profile is only 32MB's total, yours sitting at 254 MB seems really large to me.
I only have 5 of those Adblock files and they're all dated within the last 4 days. It seems I have a properly-imposed limit set in my profile somewhere, but that might have been a manual configuration.
After deleting the cache and vacuuming my sqlite files, I'm at 101 MB with 38 enabled add-ons. Nearly half of that is my urlclassifier3.sqlite file, alone, with places.sqlite behind it. Like I said, it's an older profile, and it's history goes back a long ways. I like being able to pull up an article I read 2 or 3 years ago by typing in a half-remembered keyword or URL.
Occasionally, I prune disinteresting and redundant pages from the history, but I'm in no hurry to shrink my profile directory.
Everything is in order.

gary oldmans diary
Sep 26, 2005
Configured Download Statusbar years ago and never looked back...

gary oldmans diary
Sep 26, 2005
I looked at that and didn't see any way to adjust kiosk settings besides using the customer webportal on the webconverger site.
It's behavior after installation and restart did not change for me between subsequent Firefox restarts.

gary oldmans diary fucked around with this message at 22:35 on Jun 11, 2013

gary oldmans diary
Sep 26, 2005
You just want it to stop downloading? When I hit pause, it automatically stops downloading ahead (and resumes downloading on play). HTML5, if it matters.
If you must have it play up to a point but also not let it download anything past that point, you're out of luck but that's a pretty niche circumstance isn't it?

gary oldmans diary
Sep 26, 2005

Im_Special posted:

Late on this, but for me when I hit the stop button it will keep buffering the video until it's done.
If you're also in the HTML5 mode, I don't know why it's more well-behaved for me than you. My best guess is the video playback settings page. If it's buffering as much as possible, maybe you clicked "I have a slow connection" at some point.

gary oldmans diary
Sep 26, 2005
Big fan of them providing one route to getting my extensions re-enabled that involves me losing all my settings.
And oh now poo poo like this for every add-on:

gary oldmans diary
Sep 26, 2005
Youtube videos no longer automatically play when I open the tab since the last update. :( Every search for a setting invariably gives results about Autoplay which is not the same thing.

gary oldmans diary
Sep 26, 2005
The suggestions fixed it. Thanks!

gary oldmans diary fucked around with this message at 14:28 on May 28, 2019

gary oldmans diary
Sep 26, 2005

Geemer posted:

Add an exception for youtube here:

Modern follow-up to this: To manage sites in the latest Firefox, how do I add them to this list?
:thunk: (Buttons obviously not there. No context menus, either.)


E: Solved, if somewhat poorly.
If I set the default to Block Audio and Video and then visit a site that plays video, I can then click the media icon in the URL bar to add an exception setting, then return the default to normal. Then change that specific site to what I want.

gary oldmans diary fucked around with this message at 03:06 on Jul 6, 2020

gary oldmans diary
Sep 26, 2005
Testing it on SA, the problem is as described. Viewing a page with embedded MP4 files won't normally give you a permissions dropdown from the icon in the url bar. But it will if you block all video by default.

At least on streaming sites it seems to work as intended and give you the dropdown straight away regardless of your default setting.

gary oldmans diary
Sep 26, 2005
Using Javascript to implement CSS always feels wrong. I recall some concern about Stylish, but does it have a monitored for security alternative yet?

gary oldmans diary
Sep 26, 2005
On slow webpages, I could have sworn the (outdated) Stylish was already in effect while the page was still loading and never saw the pre/post blink I had with Greasemonkey. I assumed it was nothing but a frontend for userContent.css.

gary oldmans diary
Sep 26, 2005
Keyboard: Shift+Alt+Enter when the URL bar has focus (F6 to focus it at any time).
Mouse: When the typed address changes, the go arrow is displayed. Middle-click it.

gary oldmans diary
Sep 26, 2005
On the subject of keeping track of lots and lots of related tabs, I gotta say Tree Style Tab is an absolute must. We all have widescreen monitors, now, anyway. Oh and you can just right-click a tab and choose to duplicate it with it. Doubly on subject.

gary oldmans diary
Sep 26, 2005
Using a VPN system-wide was a pretty poor experience for me as well and configuring only the torrent application to use it was much better.

Adbot
ADBOT LOVES YOU

gary oldmans diary
Sep 26, 2005
Finding fault with a person in charge of something? Probably only happens when it's a woman, I bet. :rolleyes:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply