The former takes people from other domains and makes their posts green text on green background. The colors are manually set and not reflective of any magazine styles or the like, but I have no idea why rgba(20, 45, 20, 1.0) is the color someone chose. I recommend anyone who wants that script edit line#41 to something like GM_addStyle('[data-is-federated-content="true"] { background-color: #EEE; }');, but even then this is a bit annoying to have to do manually.
I went a bit farther and used the built in variable to set color, as well as setting the font weight down to match the "n hours ago" text, and changing " - " to "@" so that the uesrname matched the standard fediverse string that you can put into search boxes
I'll publish this properly as soon as greasyfork sends me an email to authenticate my new account, but in the meantime here's the source. EDIT: Email has yet to arrive 13 hours later, I doubt it's going to. Anyone interested feel free to publish this somewhere it's easier for people to install.
// ==UserScript==
// @name kbin social add home-instance name to username (modified)
// @namespace english
// @description kbin social add home -instance name to username, modified to match style and fediverse formatting
// @include http*://*kbin.social*
// @version 1.16
// @run-at document-end
// @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
// @license MIT
// @grant GM_addStyle
// ==/UserScript==
$( document ).ready(function() {
$( ".user-inline" ).each(function() {
// get username URL and text, then remove username from URL and paste the instance name after username (not if instance is home-instance of kbin.social
var homeinstance = $(this).attr('href') ;
var myname = $(this).text().trim();
var homeinstance2 = homeinstance.replace( "/u/@" + myname + "@" , '');
if( homeinstance2 != "/u/" + myname ){ //show nothing if home-instance kbin
console.log(homeinstance2 );
$(this).append( "<span>@" + homeinstance2 +"</span>" );
}
});
}); //end each username a href
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '#content a.user-inline span{color: var(--kbin-meta-text-color); font-weight: 400}' ;
document.getElementsByTagName('head')[0].appendChild(style);
Not sure if it's just a me problem or a wider known issue but both of those scripts stop working for me when I have infinite scrolling enabled. They work great on the 1st page but when it loads the next page they both stop working.
I think I remember that it was explained as follows: the link next to the title shows where the thread (or link or image) is hosted. Since kbin.social has a copy of the thread on it's servers, it shows it is from there (clicking on the title will get you there). If you post a link from, say cnn.com, the text will say "cnn.com" as that is where the title-click will get you and where the text is hosted.
@Guadin I can only speak for myself, but seeing “kbin.social” as the “source” of a post because the “source” it’s referring to is a local copy is actually counterintuitive and confusing. If a post was made in Lemmy.world, it should say Lemmy.world. Otherwise, it is not providing information that is useful in anyway. After your explanation, yes, of course it would make sense that a post from other instance has a copy here in my local instance, but isn’t that just something we can just assume? Especially since nowhere else on the post (while viewing my feed) does it indicate which instance the post is from (you have to either click on the post and scroll past all the comments, click on the community name and scroll past all the posts on the first page—impossible if you’ve enabled infinite scrolling—or do some shit with copying and pasting a url that I don’t want to bother doing because I should just be able to tell where a post is from by looking at it. I don’t think I’m being unreasonable.)
That depends on how you want it. While I get your point and struggle with it myself, it shouldn't really matter where the original is. The name after the title is mostly useful with pictures, videos and links. You'll see where it is from, if it is reliable (who clicks sketchy links or reads fake news) and where you're going when you click it. For articles, I agree it could be better. Maybe they'll change it to make it more intuitive.
Huh…so if I replied to that post, I wouldn’t be replying to the actual post, but a copy of the post? Are the comments I’m reading responding the the original post or the copy?
Well, technically you will respond to a "copy" of the post. However, everything is federated (shared). So your comment (the "original" on kbin.social) will be a "copy" on the other server (for instance lemmy.world). So while technically speaking people could be responding to "copies" of comments/post, everything will be shared between servers.
To make it more clear (perhaps): I have my own instance/server (k.fe.derate.me) and I use my own link, website and interface to type this reply (not related to kbin.social). When I hit "send", my reply will be stored on my instance. However, kbin.social will recieve a "message" from my instance that I replied. kbin.social will then save a "copy" of my reply on their instance/server and you will receive a notification that I replied. When you open your notifications and click on it you will see my reply, but it will be the local copy of kbin.social.
As I understand it, you'd be responding to the copy and (after a random amount of time) the comments on each copy would sync.
To drive this home, recent updates to some lemmy instances have caused them to have janky federation issues despite not being blocked. Now and again comments across instances won't show up or I'll only get the thread under an image post that for some reason forgot the image when it copied over.
But the original was fine when I checked. I just don't have an account there in order to comment and it hadn't synced correctly for me.
Oh and by the way, I made an error. So if you see my long answer twice (once as a reply to you and once as a new comment) that was my dumb ass using the wrong input box.
The Kbin.social you're seeing isn't the instance it's in, it's the site you're going to.
Like if the page was linking to imgur, you wouldn't see any instance. You would see Imgur.com
Every text-based post is going to say kbin.social unless it's using a direct link to the instance source (in which case you would be going to that instance's site rather than the article as it shows in kbin)
If you hover over the startrek, it will show what instance it's from.
It could be good to add, but basically the instance source isn't shown directly on the feed.
edit: I don't get the downvotes though. The thread was asking why it is the way it is. I'm just explaining how it works, not saying that there isn't a problem with it (also noted a bit further down I do agree it should be added somewhere)