您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Likes are not shares. If you don't want to see on your homepage what the people you follow is liking, this script is for you.
// ==UserScript== // @name Twitter TL Like Remover // @namespace http://carlostdev.com/ // @version 0.2 // @description Likes are not shares. If you don't want to see on your homepage what the people you follow is liking, this script is for you. // @author carlostdev // @match https://twitter.com/ // @grant none // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== (function() { 'use strict'; var MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var myObserver = new MutationObserver (mutationHandler); var obsConfig = { childList: true, characterData: true, attributes: true, subtree: true }; function likeDeleter ( ) { $("li[data-item-type='tweet']").each(function(index){ var json = $(this).attr('data-suggestion-json'); var arr = $.parseJSON(json); var len = Object.keys(arr.suggestion_details).length; if(len > 0) { if(arr.suggestion_details.suggestion_type != "RankedOrganicTweet") { $(this).remove(); } } }); } likeDeleter(); myObserver.observe ($(".stream").get(0),obsConfig); function mutationHandler (mutationRecords) { likeDeleter(); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址