Get your own free workspace
View
 

LJ Profile Reset

Page history last edited by Xtina 11 months, 1 week ago

This page covers the various aspects of the LJ Profile Reset Greasemonkey script.

 

Table of Contents


Installation

 

You can currently install this script on Firefox, Opera, and Google Chrome.

 

Internet Explorer can, to be crass, go screw.  I don't have a Mac or access to one, so I can't test with Safari.

 

Note!  I take no responsibility for what these programs and scripts may or may not do to your computer.  I’m trying to be informative/helpful, not An Authority™.

 

Firefox

 

This is the easiest.

 

  • Install the Greasemonkey addon, and restart Firefox.
  • Go directly to the LJ Profile Reset page, and click Install.
  • After the countdown, click Install.
  • Once it’s been installed, you can go to a profile page and then go to Tools > Greasemonkey > User Script Commands > LJ Profile Reset Options.
  • Set your three options: displaying virtual gifts, debugging by appending the new profile to the existing one (rather than replacing it), and adding a "Ban User" button to the action strip.

 

Opera

 

These steps are based on Opera 10.63 on Windows 7.  The steps to get to the right place in Opera may be different, but you should be able to figure it out.

 

  • Create a directory to hold your Opera scripts.  The folder doesn’t have to be anywhere in particular, just in a place that makes sense for you.
  • In Opera, go to Menu > Settings > Preferences.
    • Go to the Advanced tab and select Content, then click the JavaScript Options button.
    • Under the “User JavaScript folder” line, navigate to the folder you just created.
    • Click OK, and OK.
  • Go to the LJ Profile Reset page and click on Install.  When the code displays, save the page to the folder you created.
    • The file name is mostly not important, but you must save it as *.user.js.  If you save it as just *.js, the script will run before the page loads, and that’s not appropriate for this script.
  • Open the script in a text editor, and follow the instructions at the top of the page.
  • Save the script, and load a profile!

 

Google Chrome

 

This is fairly straight-forward.

 

  • Go to the LJ Profile Reset page and right-click on Install.
    • I do realise you can just click on the button to install it, but wait, there's more!
  • Save the file to a convenient location as *.user.js.
  • Open the script in a text editor, and follow the instructions at the top of the page.
  • Save the script.
  • In Chrome, hit Ctrl+O.
  • Navigate to the script file, and install it.
  • Ta-dah!

 

Troubleshooting

 

There are two main things to check for if the script isn’t working.

 

  1. If the Bio is displaying oddly, make sure all HTML tags in your bio are properly closed.
    1. One recommendation is to use the HTML Tidy Online page, and see what items error out. 
  2. Make sure you only have one LJ Profile Reset script installed.  I ran into an instance where the script errored out, even though I’d installed an updated version, because it didn’t overwrite an earlier version.

 

If that doesn’t help, then I’d greatly appreciate it if you could get some logging going.

 

Firefox

 

  • Go to Tools > Error Console.
  • Click the Clear button.
  • Without loading any other page, hit Refresh on the profile page.
  • Click the Errors button.
  • You should see an error related to "lj_profile_reset.user.js".  Right-click, and select Copy.

 

Google Chrome

 

  • Go to [wrench] > Tools > JavaScript Console.
  • Refresh the profile page.
  • Expand the error that you find.
  • Select all of the text of that error, and hit Ctrl-C.

 

Opera

 

  • Go to Menu > Page > Developer Tools > Error Console.
  • Click the Clear button.
  • Without loading any other page, hit Refresh on the profile page.
  • In the console, click the dropdown menu and select JavaScript.
  • Look for any errors that refer to the script you saved.
  • Click the “JavaScript - ” line, shift+click to the bottom of the error (about 5 lines), right-click, and select Copy.

 

Once you’ve gotten the error message, send me a message via LJ, or leave a comment below.

 

If you don’t feel like it or you don’t know how or whatever, send me a message anyhow!

 

Changelog

 

 

Testing

 

This is for me, really, but it’s nice to be clear.

 

Journals

 

This is a list of journals I test by, to ensure that various things are on the level.

 

User Why
rahaeli support points
XtinaSchelin Twitter profile
meyerweb.com Open ID profile
Francis Murphy Facebook profile
Xtina Schelin Google profile
rosefox too many friends; too many communities; too many feeds
ljgenie community; both maintainers/moderators
the-xtina posting access; partners friended; Twitter is linked
news …it's news
XKCD RSS feed

 

If you can think of other journals that have other elements not listed here, lemme know.

 

Elements

 

The Trac location of the profile page is here.  (Ha, my script is almost as long as the profile itself.)

 

This lists all elements on the profile that I look for, in order. Nearly all of it is optional, so that helps me find journals that don’t have certain items.

 

Variable Description
ljAccountType Permanent, paid, &c.
ljAccountType_Title “Account type:”
ljAdult The “this journal may contain adult things!” warning.
ljBio Everything in the Bio section.
ljBio_Title “Bio:”
ljComments The number of comments posted and received, in that order.
ljComments_Title “Comments:”
ljContact Items in the “Contact:” block.
ljContact_Title “Contact:”
ljCreated The created-on date for the journal.
ljCreated_Title “Created on:”
ljEntries # of journal entries.
ljEntries_Title “Journal Entries:”
ljExtSvcs[x] Items in the External Services block – AIM, Gtalk, &c.
ljFriendOf The count of others who’ve friended the user, and the actual users.
ljFriendOf_Title “Also Friend of:”
ljFriends_Title “Friends”
ljFriendsBlock The whole friends block, including communities and feeds.
ljFull Full profile, or not?
ljInfo[x] The name, location, birthdate, &c.
ljInfo_Title[x] “Name”, “Location”, “Birthdate”, &c.
ljInterests Number of interests, and then all of the interests.
ljInterests_Title “Interests” + links
ljMaintainers A list of the maintainers of the community.
ljMaintainers_Title “Maintainers:”
ljMemberOf The count of communities, and the actual communities.
ljMemberOf_Title “Member of:”
ljMemories Number of memories.
ljMemories_Title “Memories”
ljModerators A list of the moderators of the community.
ljModerators_Title “Moderators:”
ljMutual The count of mutual friends, and the actual friends.
ljMutual_Title “Mutual Friends:”
ljNote Any note assigned to the user.
ljPic Number of userpics.
ljPic_Title “Userpics”
ljPictures Number of scrapbook files.
ljPictures_Title “ScrapBook Files”
ljPosting The posting access list.
ljPosting_Title “Posting Access:”
ljSchools A list of the schools.
ljSchools_Title “Schools” + link
ljSupport Support points.
ljSupport_Title “Support Points” + link
ljTags Number of tags.
ljTags_Title “Tags”
ljTitleblock Title and subtitle.
ljUpdated The last updated date for the journal.
ljUpdated_Title “Last updated:”
ljUser The full <lj user=foo /> HTML.
ljUser_Title “User:”
ljVgifts_Imgs The full Virtual Gifts HTML.
ljVgifts_Title “Recent V-Gifts:”, +link.
ljVgiftsCt Count of V-Gifts.
ljVgiftsCt_Title “Virtual Gifts:”

 

This contains an incomplete list of other things to test by.

 

  • all three displays
  • logged out v. logged in
  • languages

 

The OSes I have access to:

 

  • Ubuntu Hardy Heron
  • Ubuntu Maverick Meerkat
  • Windows 7 64-bit
  • Windows 2003 Server
  • Windows XP

 

I have access to the most recent version of all three major browsers on each of the above OSes.

 

http://www.microsoft.com/windows/internet-explorer/default.aspx

Comments (0)

You don't have permission to comment on this page.