Grow your CSS skills. Land your dream job.

Getting lost css file from Firefox cache

  • # December 20, 2011 at 10:28 am

    So my css file is suddenly empty. Damn!
    I went into the Firefox cache and was able to retrieve what looked like the css, but it looks like this…

    000001c0:  2d  73  69  7a  65  3a  20  31  32  70  78  3b  20  66  6f  6e  -size: 12px; fon
    000001d0: 74 2d 77 65 69 67 68 74 3a 20 62 6f 6c 64 3b 7d t-weight: bold;}
    000001e0: 0a 2e 41 72 74 69 63 6c 65 4c 69 73 74 7b 66 6c ..ArticleList{fl
    000001f0: 6f 61 74 3a 20 6c 65 66 74 3b 7d 0a 2e 41 72 74 oat: left;}..Art
    00000200: 69 63 6c 65 4c 69 73 74 20 70 7b 66 6c 6f 61 74 icleList p{float
    00000210: 3a 20 6c 65 66 74 3b 0a 64 69 73 70 6c 61 79 3a : left;.display:
    00000220: 20 62 6c 6f 63 6b 3b 0a 77 69 64 74 68 3a 20 31 block;.width: 1
    00000230: 31 36 70 78 3b 0a 6d 61 72 67 69 6e 2d 74 6f 70 16px;.margin-top

    You can see that the css is all on the right. Is there a better way to get it or a way to seperate that left crap from the css on the right?

    Thanks

    # December 20, 2011 at 12:22 pm

    I’m afraid I’ve never done something like this before. I wonder how you’d be able to get it…

    As a future safeguard, I recommend using something like Dropbox (yes, that was a referral link!). It will keep versions and back stuff up for you! You’ll then be able to access your information from multiple computers – yay!

    # December 20, 2011 at 2:01 pm

    Enter this in the navigation bar to see the cache…

    about:cache

    # December 20, 2011 at 2:52 pm

    This looks like your best bet:

    If it’s cached by Firefox, then you ought to be able to find it in the Cache
    folder under the Firefox user profile.

    In case you are not savvy to the Firefox profile internals (and in case you
    haven’t already tried this), you’ll generally find that folder somewhere
    under C:Users[username]AppDataLocalMozillaFirefoxProfiles on Vista,
    C:Documents and Settings[username]Local SettingsApplication
    DataMozillaFirefoxProfiles on Windows XP, or
    /Users/[username]/Caches/Firefox/Profiles on Mac OS X. The files will not
    have a .css suffix, but you can order by date and drag the newest files
    (skipping the largest ones) into Notepad (or TextEdit) one by one until you
    find your CSS.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".