出品に不必要な要素を非表示または削除する
ユーザCSS,JSを適用管理する方法はブラウザによっていくつかあるが、Google Chromeであれば下記ページでダウンロードできる拡張機能雛形にお好みで追記していくのがおすすめ。
ユーザーCSS、JSの追加で画面のUI改善 快適な管理画面を作る
ヤフオク!では出品者向けの管理画面は用意されていないため、広告等不要な要素を削除する必要がある。既存画面にユーザCSS及びJSを追加する形でUIを改善する。 Google Ch…
広告やトップページへのリンク、無意味な説明文など出品に不必要な要素を非表示または削除
style.css
.yjmthproplogoarea,#header .logo, #acWrFooter address, #acWrFooter .libSupple, .decGuideLink, .libPropertyLink,
#acMdMobileBox, .libLinkGrayM, *[href="https://auctions.yahoo.co.jp/"],#hideLRECState,#acMdPromo1,#acMdAdLrecArea, .modAdSpn, .js-modal-cover,/*#libPointNavi,*/#acMdImBox,#modSsBox,#acMdReuse,#couponUrl,.untHead__wrap a,
.ptsPoint,
*[href="https://www.yahoo.co.jp"],
*[href="https://www.yahoo.co.jp/"],
*[href="https://auctions.yahoo.co.jp"],
*[href="https://auctions.yahoo.co.jp/"],
*[href="https://auctions.yahoo.co.jp/jp"],
*[href="https://auctions.yahoo.co.jp/jp/"],
*[href="https://auctions.yahoo.co.jp/jp/show/entry_navi"],
*[href="https://www.yahoo-help.jp/app/home/p/353/"],
*[href="https://auctions.yahoo.co.jp/guide/guide/"],
img[src="https://s.yimg.jp/i/jp/mb/top/beginner.gif"],
#acWrFooter, #Footer, #mastHead,
#acMdMainFunction, .Carousel,
#acWrContents table td img[alt="評価"],
#acWrContents table td br,
#mhd_text_pc, #msthdtp,#msthdPointNum,
#msthdUserIcon, #msthdUserIconImg,#mhd_premium_pc,
#yjSearchPop, .DirectionPayPay,[href^="https://search.yahoo.co.jp/search"], *[src="s.yimg.jp/images/search/slink/popup/pc/1.0.0/img/pop_spr_02.png"],
img[src="https://s.yimg.jp/images/auct/template/myauction/bnr_feature.png"],
img[src="https://s.yimg.jp/images/auct/front/images/addcal.gif"],
img[src="https://s.yimg.jp/images/auct/template/myauction/bt_feature.png"],
#ads,.ads,#themeBtnBox,#yregft,.StatisticsInfo__button,.StatisticsInfo__text,.l-footer address,.descriptionArea__header, #deliverymethod .Title__search a, .StepNavi,#YadsOverlayArea,.elTreasureBox, #draft_save,
/* *[id*="Modal"],*[id*="modal"],
*[class*="Modal"],*[class*="modal"], */
*[id*="promo"],*[id*="ads"],*[id*="Layer"],*[id*="irfroh"],
*[class*="promo"],*[class*="ads"],*[class*="Layer"],*[class*="irfroh"],*[class*="paypay"],[class*="PayPay"],
*[src*="promo"],*[src*="paypay"],
*[href*="paypay"], *[href*="points"],
*[src*="bnr"], *[href*="mycar"],
#js_brand_line_area, .CouponCrm, .ProductInformation__note, .SocialButton, #auc_detail_ymobile_pc, .js-multi-recommend, .ptsLinks, #officialDeliveryArea, .MyCar, #masthead .yjmthcmnlnkarea, .yjmthloginarea b, #js-ListingSwitchText, #js-PCPremiumAppealArea,
#js-PCPremiumSalesmodeArea .Radio__label:nth-child(2), .js-recommend, .prMdl, #msthdLoginName, .TireSearch, .ptsCate, #sbnClearBtn2, .ctgry01, #srchAssistBd,#Sb_2,.StickyNavigation.is-sticky, .ExhibitFinishModal, #modLoanBox, .RecommendList{
visibility: hidden !important;
display: none !important;
height: 0 !important;
width: 0 !important;
}
script.js
function word_assassin(target,word){
if(target.length){
target.each(function(){
var txt = $(this).html();
$(this).html(
txt.replace(word,'')
);
});
}
}
word_assassin($('.libLeadText p'),'取引で困ったことなどがあったら、落札者に質問してみよう!');//関数の呼び出し。第一引数に削除したい文字列を含む要素を、第二引数に削除したい文字列を代入してください
word_assassin($('p.decBtnGuide'),'取引等に問題が生した場合は、当事者間で十分に話し合って解決してください。');
word_assassin($('.notation'),'複数個の商品を1セットとして売る場合、個数は「1」とします。');
word_assassin($('.notation'),'※落札者の支払いから');
word_assassin($('.notation'),'日間発送がない場合、落札者が取引をキャンセルできます。');
word_assassin($('.js-note-schedule'),'8');
word_assassin($('.notation'),'この価格で商品の購入が確定し、オークションが終了します。');
word_assassin($('.notation'),'落札されずにオークションが終了した場合、自動で再出品されます。');
word_assassin($('.yjmthloginarea'),'ようこそ、');
word_assassin($('.yjmthloginarea'),'さん');
word_assassin($('.footer'),'Copyright (C) 2022 Yahoo Japan Corporation. All Rights Reserved.');
word_assassin($('#header table small'),'こんにちは、');
word_assassin($('#header table small'),'さん');
word_assassin($('.Title__search'),'いくらで売れるか調べる');


