Tweetfilter

By Chilla42o Last update Dec 6, 2011 — Installed 1,276,447 times.

Not Saving Filters

in
Subscribe to Not Saving Filters 14 posts, 4 voices



Lollobrigida47 User
FirefoxWindows

I just installed this, and it doesn't seem to be working correctly. I add in a filter, it shows up in the list, and then when I reload my home page nothing is shown as a filter at all. It also won't stay collapsed when I reload.

 
Chilla42o Script's Author
FirefoxX11

It works for me. The script saves all these settings in cookies. Please check if there are any interfering scripts or extensions which cause this to fail in your browser, try to temporarily disable them.

 
confluence User
FirefoxX11

My filtered words were being saved, but not the filter options. I checked the cookies and saw that the filter options cookie was a session cookie, unlike the one for filtered words. I edited the script to make it set that cookie with the same expiration time as the others. Is the difference intentional, or is this a bug?

 
Chilla42o Script's Author
FirefoxX11

This was a bug, I fixed it. Thank you.

 
ClaudeMarcotte User
FirefoxWindows

My settings & filters are not getting saved either. I'm on Windows 7 Professional (32-bit) running Firefox 3.6.13.

I did have a lot of other add-ons that could have interfered (Permit Cookies (Twitter cookies are kept), BetterPrivacy, AdBlock (disabled when I'm on Twitter), NoScript (all permitted on Twitter)) and another GM script that could have interfered (I have deleted that one).

I deleted all my cookies, quit Firefox, re-launched it, went directly to Twitter, set all my settings and filters and looked at the cookies I had: twitter.com & api.twitter.com; no Flash cookies.

Where exactly are the Tweetfilter settings getting saved?

 
Chilla42o Script's Author
FirefoxX11

Since version 0.9.6 settings are stored in HTML5 local storage, not cookies. you will see the settings if you open the firebug console (while on twitter) and type in "localStorage" (in the field after >>>). from there you can also delete the value with right click.

 
ClaudeMarcotte User
FirefoxWindows

Okay... I'm seeing:

tweetfilter.filter.options="{"global-hide-topbar":f...:true,"dashboard":true}", tweetfilter.filter.words="[]", :USER:="{"Twitter_name":{"value":{...6576}}},"expire":null}}"

Why is this lost when I close Firefox?

(I've replaced my actual Twitter user name with "Twitter_name")

 
ClaudeMarcotte User
FirefoxWindows

I just closed Firefox, relaunched it, and went to Twitter. I started the Firebug console and typed in "localStorage".

I'm sorry, I'm unfamiliar with Firebug and didn't know I could expand the field to get all the information.

So when I relaunched Firefox, all my settings were gone. Firebug's console said:

"{"global-hide-topbar":false,"dashboard-hide-detail":false,"dashboard-hide-wtf":false,"dashboard-hide-trends":false,"dashboard-hide-ad":true,"dashboard-hide-options":false,"dashboard-filter-collapsed":true,"dashboard-fixed":false,"stream-filter-disabled":false,"stream-filter-media":false,"stream-filter-me":false,"stream-filter-invert":false,"stream-filter-replies":false,"stream-filter-retweets":false,"stream-expand-new":true,"stream-highlight-replies":true}"

So I add checkmarks to all the Twitter-UI options except the last two and now I get:

"{"global-hide-topbar":false,"dashboard-hide-detail":true,"dashboard-hide-wtf":true,"dashboard-hide-trends":true,"dashboard-hide-ad":true,"dashboard-hide-options":false,"dashboard-filter-collapsed":false,"dashboard-fixed":true,"stream-filter-disabled":false,"stream-filter-media":false,"stream-filter-me":false,"stream-filter-invert":false,"stream-filter-replies":false,"stream-filter-retweets":false,"stream-expand-new":true,"stream-highlight-replies":true}"

I need a button that says "save settings"! ;-)

 
Chilla42o Script's Author
FirefoxX11

please try with the new version (0.9.8), there are some changes in storage too.

 
ClaudeMarcotte User
FirefoxWindows

I installed it. I logged out of Twitter and logged back in and it worked. But then I logged off from Twitter again, rebooted, and although Tweetfilter is installed and I've moved it to the top of the list, it's not loading at all. Logging out of Twitter and back in twice and it's not loading at all.

Now I'm seeing "1 Error" in the Firebug console: "twttr.currentUser is undefined" line 14.

Edit: I've uninstalled the script and re-installed it. After reloading the Twitter page, it works. Now the test: quit Firefox and re-launch it. Will my settings still be there?

Edit 2: Nope. All my settings and filters are gone. :-(

Edit 3: I disabled all the add-ons I have that might have interfered (Flashblock, NoScript and Permit Cookies), exited Firefox, relaunched it, went to Twitter and logged in, set the Tweetfilter settings, logged out of Twitter, quit Firefox, re-launched it, went back to Twitter, logged in, and the Tweetfilter settings are gone.

At this point, I don't know what else to try.

 
Chilla42o Script's Author
FirefoxX11

Try with a clean Firefox profile like described here: http://labnol.blogspot.com/2007/09/firefox-runs...

 
ClaudeMarcotte User
FirefoxWindows

Okay. It worked. I have some misbehaving add-on or a setting somewhere that zaps the local storage. Damn.

Thank you, though. :-)

It's a great script and I hope I can figure out where the problem is.

 
ClaudeMarcotte User
FirefoxWindows

I wasn't sure I was in the mood to fiddle with this tonight, but curiosity got the best of me.

It's the BetterPrivacy add-on that's the problem. It's supposed to delete Flash cookies (https://addons.mozilla.org/en-US/firefox/addon/.... But it also deletes Local Shared Objects and DOM Storage objects. I'm just not sure how to exclude the data from Tweetfilter specifically.

Thank you again.

 
Chilla42o Script's Author
FirefoxWindows

You're welcome, glad you got things working.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel