您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
beehaw lemmy add home-instance name to username 2
当前为
// ==UserScript== // @name beehaw lemmy add home-instance name to username // @namespace english // @description beehaw lemmy add home-instance name to username 2 // @include http*://*beehaw.org* // @version 1.9 // @run-at document-end // @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js // @license MIT // @grant GM_addStyle // ==/UserScript== // Main - redirect test // A $( document ).ready() block. $( document ).ready(function() { $( ".comments .text-info" ).each(function() { $( this ).addClass( "foo" ); // 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(); console.log( "@@@"); console.log(homeinstance ); //console.log(myname ); var homeplace = "no"; if( homeinstance.search("@") == -1 ){ homeplace = "yes"; } var homeinstance2 = homeinstance.replace( /\/u.*?@/ , ''); if( homeplace == "no" ){ //show nothing if home-instance kbin console.log(homeinstance2 ); $(this).find('span').append( " - " + homeinstance2 ); } }); }); //end each username a href
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址