西野ブログ対策リターン版
なぜか引っ越したはずのアメブロに更新があるので対策を出しておきます。
ameblo.jp
// ==UserScript== // @name nishino_ameblo_return // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://ameblo.jp/nishino-akihiro/* // @icon https://www.google.com/s2/favicons?domain=ameblo.jp // @grant none // ==/UserScript== $('.skin-entryBody *').removeAttr('style'); $('.skin-entryBody *').removeAttr('face'); $('.skin-entryBody *').removeAttr('color'); $('.skin-entryBody div>div,.skin-entryBody p>div,.skin-entryBody div>p').unwrap(); $('.skin-entryBody h1,.skin-entryBody h2').wrap('<h3>'); $('.skin-entryBody h1,.skin-entryBody h2').contents().unwrap(); $('.skin-entryBody>br').remove(); $('.skin-entryBody font,.skin-entryBody b,.skin-entryBody strong').contents().unwrap(); $(".skin-entryBody>*").contents().filter(function () { return this.nodeType === 3; }).wrap("<span class='n_text'></span>"); $('.skin-entryBody *').each(function(){ if($(this).text().match(/(\u0020|\u00A0|\u3000| ){2}/gi)){ $(this).addClass("nbsp"); } else if($(this).text().match(/(\u0020|\u00A0|\u3000| )|\s/gi)){ if($(this).text().length<2){ $(this).addClass("nbsp"); } } }); $('.nbsp:has(*)').removeClass("nbsp"); $('.nbsp').remove(); $('.skin-entryBody span>br').unwrap(); $('.skin-entryBody>p:empty').remove(); $('.skin-entryBody>*>*:not(br):last-of-type').addClass("text_last"); $('.text_last:last-of-type').prevAll().removeClass("text_last"); $('p:has(a.text_last)+a.ogp-form').addClass("dup_a"); $('.ogpCard_root+.ogp-title+.ogp-url').addClass("dup_a"); $('.skin-entryBody>p:has(br+*:not(br)),.skin-entryBody>div:has(br+*:not(br))').addClass("br_mix"); $('.skin-entryBody>p:has(*:not(br)+br),.skin-entryBody>div:has(*:not(br)+br)').addClass("br_mix"); $('.skin-entryBody>p:has(br):not(.br_mix),.skin-entryBody>div:has(br):not(.br_mix)').addClass("br_only"); $('.ogpCard_root *').css('display','none'); $('.ogpCard_url,.ogpCard_url *').css('display','inline'); $('.ogpCard_root *:has(.ogpCard_url)').css('display','inline'); $('*.br_only,*.dup_a,*.ogpCard_root,*.ogp-title').addClass("act"); $('.skin-entryBody>*:not(.act)').removeAttr('class'); $('.act').removeClass('act');
.skin-entryHead,.skin-entryHead *,.skin-entryBody,.skin-entryBody *{margin:0 !important;padding:0 !important;line-height:1.2;} .hashtag-module,.js-blogGenreRank{display:none;} br:first-child,br:first-child+br,br+br+br{display:none;} .text_last+br+br{display:none;} .skin-entryBody h3{font-size:1.17em;} .ogp-title{display:none;} .dup_a{display:none;}