您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Block Nasty Image on Nairaland.com
// ==UserScript== // @name Nairaland Nasty Blocker // @namespace http://tampermonkey.net/ // @version 0.1 // @description Block Nasty Image on Nairaland.com // @author GoodMuyis // @match https://*.nairaland.com/* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== (function() { 'use strict'; // Your code here..... $(document).ready(function() { $("head").append(`<style> img[src*="screenshot"],img[src*="_fb"]{display: none} .pd.sig p { display: inline-block; margin: 2px !important; float: left;} .attachmentimage{height:30px;} .nl-hide,._9AhH0,.vertipics{display:none !important}<style>`); $(".vertipics, ._9AhH0").remove(); $(".attachmentimage").each(function(){ var imgl = $(this).attr("src"); alert(imgl); $(this).wrap( `<a href="${imgl}" target="_blank"></a>` ); }); //Block BBnaija $( '.featured.w b:contains("BBNaija")' ).closest('a').addClass('nl-hide'); //end of ready() }); })();