I made a mistake with .dijit {display: none !important} and it hid the custom css button in preferences along with a shitload of other things.
Grepping the ttrss directory for text resulted in nothing. Deleting cookies didn't work.
Where is the custom css stored? Or is there some other way to recover from such disaster?
Custom css storage
- sleeper_service
- Bear Rating Overlord
- Posts: 884
- Joined: 30 Mar 2013, 23:50
- Location: Dallas, Texas
Re: Custom css storage
you never fail to deliver.
-
- Bear Rating Master
- Posts: 135
- Joined: 08 Apr 2013, 02:42
- LifeWOutMilk
- Bear Rating Disaster
- Posts: 52
- Joined: 02 Apr 2013, 21:57
Re: Custom css storage
Every desktop browser lets you modify CSS on a page dynamically, did you try that?
Re: Custom css storage
The custom CSS entries that you saw on the preferences page are an entry in the ttrss_user_prefs table.
pref_name="USER_STYLESHEET"
value=NULL or whatever you entered
You'll need a database tool that can retrieve and edit records either in PostgreSQL or MySQL. Both phpPgAdmin and phpMyAdmin can do this if you have them setup on your server. Otherwise, you're kinda out of luck.
pref_name="USER_STYLESHEET"
value=NULL or whatever you entered
You'll need a database tool that can retrieve and edit records either in PostgreSQL or MySQL. Both phpPgAdmin and phpMyAdmin can do this if you have them setup on your server. Otherwise, you're kinda out of luck.
-
- Bear Rating Master
- Posts: 135
- Joined: 08 Apr 2013, 02:42
Re: Custom css storage
Ah, cool, so that's where they're at.
Tip for the OP: Use the SQL command line that came with your DB. Find your uid in the ttrss_users table and then do the following:
Change the 2 to the uid you found for yourself in the ttrss_users table.
Code: Select all
ttrssdb=> select * from ttrss_user_prefs where pref_name='USER_STYLESHEET' and owner_uid='2';
owner_uid | pref_name | profile | value
-----------+-----------------+---------+--------------------------------------------------------------------
2 | USER_STYLESHEET | | #floatingTitle:not(:empty) {<br/> display: none !important;<br/>}
(1 row)
ttrssdb=>
Tip for the OP: Use the SQL command line that came with your DB. Find your uid in the ttrss_users table and then do the following:
Code: Select all
ttrssdb=> update ttrss_user_prefs set value='' where owner_uid='2';
Change the 2 to the uid you found for yourself in the ttrss_users table.
Re: Custom css storage
Thanks for the suggestions. I was able to resolve it with chrome dev tools. If it happens again, I'll try phppgadmin.
Who is online
Users browsing this forum: No registered users and 7 guests