Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- go: function() {
- if ((this.isEnabled()) && (this.isMatchURL())) {
- if (this.tryAgain && RESUtils.loggedInUser()) {
- this.hideUsername();
- GM_addStyle(RESUtils.css);
- }
- var username = '/' + RESUtils.loggedInUser();
- // As these are one-off instances, hide the two user names on the user's
- // profile page and the entry in the moderators list, if any
- $('#header-bottom-left .selected:contains(' + username + '), .titlebox > h1:contains(' + username + '), .helplink ~ .content a:contains(' + username + ')').empty().text(this.options.displayText.value);
- this.hideUsername();
- RESUtils.watchForElement('siteTable', modules['usernameHider'].hideUsername);
- RESUtils.watchForElement('newComments', modules['usernameHider'].hideUsername);
- }
- },
- hideUsername: function() {
- var username = '/' + RESUtils.loggedInUser();
- $('.tagline a[href*="' + username + '"], .user > a[href*="' + username + '/"], .titlebox .tagline a.author').empty().text(modules['usernameHider'].options.displayText.value);
- }
Advertisement
Add Comment
Please, Sign In to add comment