您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove 'Suggested Post, Suggested Offer'
当前为
// ==UserScript== // @name UpYoursFB // @namespace upyoursfb // @description Remove 'Suggested Post, Suggested Offer' // @include *://*.facebook.com/* // @require https://code.jquery.com/jquery-3.2.1.min.js // @version 1.8 // @grant none // ==/UserScript== $(document).ready(function(){ var upyours = ['Suggested Offer', 'Suggested Post', 'Featured For You', 'A Video You May Like']; $(document).on('scroll', function(){ // For Desktop if(window.location.href.indexOf('www.facebook') !== -1){ $('span').each(function(){ if($.inArray($(this).text(), upyours) !== -1){ $(this).parents().eq(4).hide(); //console.log('Got another one | Up yours fb'); } }); } // For Mobile using plugin usi else{ $('header').each(function(){ if($.inArray($(this).text(), upyours) !== -1){ $(this).parents().eq(1).hide(); //console.log('Got another one | Up yours fb'); } }); } }); });