r/csshelp • • Jul 27 '15

How can I remove the "created by __" and replace the "__" with a different username?

This is for /r/darkjokes. The previous threads I've found are from 2 or 3 years ago and didn't work.

Thanks.

8 Upvotes

18 comments sorted by

2

u/bobjrsenior Jul 27 '15

I got something to work from searching through /r/AskReddit css. You can't actually click on the user, but it does show the name you want. Just replace USER with whatever name you want.

.titlebox .bottom::after{
    content: "USER";
    color:#369;
    cursor:pointer;
}
.titlebox .bottom .author{
    display: none;
}

You can see how it looks on my test subreddit /r/Bobjrsenior.

2

u/SirChessBot Jul 27 '15 edited Jul 27 '15

I added it, and it still had the original creator, and my username after. Currently using /u/ri0tnrrd's rn.

1

u/ri0tnrrd Jul 27 '15

Below is the screencap from my browser. This is on Firefox (no res) however on Chrome (with res) it says the same thing. What browser are you using, and are you using a reddit related addon?

Click For Screen-Cap

ri0t

1

u/bobjrsenior Jul 27 '15

Thanks for the heads up. Glad /u/ri0tnrrd's worked out for you.

1

u/ri0tnrrd Jul 27 '15

Oh I'm so easily confused - I thought they were saying it didn't work - guess my last reply to them makes very little sense now! Either way hope they got it working :)

ri0t

3

u/ri0tnrrd Jul 27 '15

Good find - I knew I had had it somewhere in my files of random css stuff.

ri0t

1

u/Imosa1 Jul 27 '15

my files of random css stuff

Ah yes, those files. Almost as unorganized as the code they produce.

...I just read your post and felt like writing a joke. Don't forget to change the link flair on your thread if you're satisfied.

2

u/ri0tnrrd Jul 27 '15

I don't know what's more bigger - my css files or my random photoshop crap it's kinda getting stupid. And I'm feeling uber dumb at the moment because I was un-aware I could change the flair on my own thread - hah!

ri0t

2

u/2thousand15 Jul 28 '15

Is that countdown a working countdown?!

2

u/bobjrsenior Jul 28 '15

I have a script that makes it work given a specified date and keyword (so it can find the countdown in the sidebar). You can check out the source here. It uses the normal login with atm instead of the newer OAuth, but I can update it if you are interested.

Quick Edit: By location, I mean that it needs a keyword so that it can find where in the sidebar the countdown is.

2

u/ri0tnrrd Jul 27 '15 edited Jul 27 '15

Interesting - in Chrome on both laptops it's not there, but if I switch to Firefox it indeed shows up. I'll tinker around and see if I can get that done up. I'll let you know. I misread your post - if I understand correctly you don't want it to say "created by" you just wanted it to say a username, but not the creators, another username correct?

ri0t

EDIT: To clarify

ri0t

3

u/ri0tnrrd Jul 27 '15

Looks like /u/bobjrsenior fixed you up before I could finish but here is the css anyway (partially snagged from /r/gallifrey mind you)

.titlebox .bottom {
    font-size: 0;
    cursor: text;
    background-color: #cee3f8;
    margin: 2px -4px;
    padding-left: 2px;
    padding-right: 4px;
}

.titlebox .bottom > .age { font-size: 9px; }

.titlebox .bottom::before {
    font-size: 9px;
    content: " …";}

.titlebox .bottom::after {
    font-size: 10px;
    color: #369;
    cursor: pointer;
    content: "UsernameYouWant"; }

ri0t

1

u/SirChessBot Jul 27 '15

I modified it a bit to change the color and text, but this is great, thanks!

Is there anyway to make it ("UsernameYouWant") link to my username?

BTW: this is the code:

.titlebox .bottom {
    font-size: 0;
    cursor: text;
    background-color: #ffffff;
    margin: 2px -4px;
    padding-left: 2px;
    padding-right: 4px;
}

.titlebox .bottom > .age { font-size: 9px; }

.titlebox .bottom::before {
    font-size: 9px;
    content: "created by ";}

.titlebox .bottom::after {
    font-size: 10px;
    color: #369;
    cursor: pointer;
    content: "SirChessBot"; }

1

u/ri0tnrrd Jul 27 '15

I know I recall the code for that but I'd have to dig through my files and find it to be honest. I'll let you know what if I can find it - or maybe someone else is faster at me with remembering :)

ri0t

2

u/SirChessBot Jul 28 '15

Thanks! I really appreciate it.

1

u/SirChessBot Aug 06 '15

Did you get around to it?

1

u/ri0tnrrd Aug 06 '15

If you go to this subreddit's wiki pages one of the selections is 'selectors' and if I'm remembering correctly it's in there under user id's or something. Take a look if you cannot find it I'll re-go through my plethora of css scraps.

ri0t

1

u/SirChessBot Aug 06 '15

Yeah, I don't really know what I'm looking for in the wiki...

Anyway to link my username to my userpage in the above code?