هدر 2

.

بیشتر بخوانید: عفاف و حجاب؛ مانع آزادی یا خودِ آزادی؟

<ROZBLOG><div class="col-xl-8 col-lg-12 col-12">
<!-- بلاک منوی بالا -->
<RB:Block_Center> <RB:Block_Center_Loop><section class="widget widget_text">
<div class="title"><h3>[Menu_Title]</h3></div>
<div class="content">
<div class="textwidget">[Menu_Code]</div>
</div>
</section></RB:Block_Center_Loop> </RB:Block_Center>
<!-- بلاک منوی بالا -->
<div class="singlePost">
<section class="singlePost-post">
<div class="title">
<h1>[Post_Title]</h1>
<ul>
<li class="post-id">کد خبر: [PostId]</li>
<li>/</li>
<RB:Post_Date_Block><li>شنبه 03 مرداد 1405 - 19:30</li></RB:Post_Date_Block>
<li>/</li>
<RB:Post_Cat_Block><RB:Post_Cat_Loop><li><a href="[Post_Cat_Url]" rel="category tag">[Post_Cat_Title]</a></li>
<li>/</li></RB:Post_Cat_Loop></RB:Post_Cat_Block>
<li>/</li>
<li><a href="#" id="print-news">پرینت گرفتن</a></li>
</ul>
</div>
<div class="content">
<RB:Post_Image><img src="[Post_Image_Url]" alt="[Post_Title]" title="[Post_Title]"  sizes="(max-width: 300px) 100vw, 300px" style="max-width:100%;display: block;margin: auto;border-radius: 8px;margin-bottom: 10px;"/></RB:Post_Image>
<p style="padding: 10px;background: #cccccc2e; border-radius: 8px;display: flex;"></p>
<div id="sorenad_banner2"></div>
<p style="display: flex;">[Post_Content]</p>
</div>
 </section>
 
  <p style="text-align: center;"><a href="https://sna24.ir/884" rel="nofollow noopener" target="_blank">تبلیغات زنده</a>
 </p>
 
 <iframe width="100%" height="150px" style="border: none;" src="https://panel.sorenad.com/redirect_add?advertis_id=5120&ip=37.156.62.97&link_number=1&site_id=362&signature=ddc150c4cf68318eac185efd03f984b39d81f804a47124b50c0f244c4a4bbd0d"></iframe>
 
 <p style="text-align: center;"><a href="https://brokeralarm.com/blog/" rel="nofollow noopener" target="_blank">مشاهده کامل وبسایت</a>
 </p>
 
<section class="share">
<ul class="share2"><li><b>اشتراک گذاری در</b></li>
<li><a href="https://gap.im/share/url?url=[Post_Link]" target="_blank">گپ</a></li>
<li><a href="https://twitter.com/intent/tweet?url=[Post_Link]" target="_blank">توییتر</a></li>
<li><a href="https://eitaa.com/share/url?url=[Post_Link]" target="_blank">ایتا</a></li>
<li><a href="whatsapp://send?text=[Post_Link]" data-action="share/whatsapp/share" target="_blank">واتساپ</a></li>
<li><a href="mailto:?subject=[Post_Title]&body=[Post_Link]" target="_blank">ایمیل</a></li>
</ul>
<RB:Post_Rate_Block><RB:Post_Rate_Type:1><div class="like">[Post_Rate]</div></RB:Post_Rate_Block>
</section>
<!-- تبلیغات شماره 1 -->
<RB:Text1><section class="widget">
<div class="title"><h3>تبلیغات</h3></div>
<div class="content">
[-Text1-]
</div>
</section></RB:Text1>
<!-- تبلیغات شماره 1 -->
<!-- مطالب مرتبط-->
<RB:Related_Posts_Block><section class="related">
<div class="title"><h3>اخبار مرتبط</h3></div>
<div class="content">
 <ul><RB:Related_Posts_Loop><li><a href="[Related_Post_Link]"><i>#</i>[Related_Post_Title]</a></li></RB:Related_Posts_Loop></ul>
</div>
</section></RB:Related_Posts_Block>
<!-- مطالب مرتبط-->
<!-- نظرات-->
<RB:Comment_Block><section class="commentPost">
<div id="comments" class="comments-area">
<RB:Comment_Display_Block>
   <RB:Comment_Display_Loop>
      <div class="com1">
         <div class="com2" >
            [Comment_Gavator]
         </div>
         <div class="com3">
            <div class="com4">
               <div class="com5">
                  <a href="[Comment_Web]" target="_blank">[Comment_Author]</a>
               </div>
               <div class="com6">
                  [Comment_Date]
               </div>
               <div style="clear:both"></div>
            </div>
            <div class="com7">
               <div class="com8">
                  [Comment_Content]
                  <RB:Comment_Send_Answer>
  <div class="fxa">
                     <div class="rb_send_answer">
                        <div>
                           <a rel="nofollow" class="btn_send_answer" href="javascript:respond_comment([Comment_Id],0)" data-commentid="[Comment_Id]" data-replyto="پاسخ به [Comment_Author]" aria-label="پاسخ به [Comment_Author]">پاسخ</a>
                        </div>
                        <div class="rb_send_btn_like">
                           <a id="remove_respond_click_[Comment_Id]" rel="nofollow" class="btn_remove_answer" href="javascript:remove_respond_comment([Comment_Id],0)" data-commentid="[Comment_Id]">لغو پاسخ</a>
                        </div>
</div>
                        <RB:Comment_Like>
                           <div class="gap_15 fxc">
                              <a id="like_[Comment_Id]" href="#" onclick="com_like([Comment_Id],1); return false;">
                                 <span class="fxc fx_col gap_5">
                                    <svg style="width: 24px; height: 24px;" class="vis_v">
                                       <use xlink:href="#svg_likee"></use>
                                    </svg>
                                    <span><span id="rb_total_like_[Comment_Id]" class="font_13">[Comment_Like]</span> +</span>
                                 </span>
                              </a>
                              <a id="like_[Comment_Id]" href="#" onclick="com_like([Comment_Id],2); return false;">
                                 <span class="fxc fx_col gap_5">
                                    <svg style="width: 24px; height: 24px;" class="vis_v">
                                       <use xlink:href="#svg_dislikee"></use>
                                    </svg>
                                    <span><span id="rb_total_dislike_[Comment_Id]" class="font_13">[Comment_DisLike]</span> -</span>
                                 </span>
                              </a>
                           </div>
                        </RB:Comment_Like>
                     </div>
                     <div>
                        <div id="respond_comment_[Comment_Id]" class="rb_respond_form"></div>
                     </div>
                  </RB:Comment_Send_Answer>
               </div>
            </div>
         </div>
      </div>
      <RB:Comment_Sub_Display_Loop>
         <div class="com1 com_sub com_type_[Comment_Sub_Class]">
            <div class="com2" >
               [Comment_Sub_Gavator]
            </div>
            <div class="com3 com_c_[Comment_Sub_Class]">
               <div class="com4">
                  <div class="com5">
                     <a href="[Comment_Sub_Web]" target="_blank">[Comment_Sub_Author]</a> <RB:Comment_Sub_Replay_To> پاسخ به [Comment_Sub_Replay_To]</RB:Comment_Sub_Replay_To>
                  </div>
                  <div class="com6">
                     [Comment_Sub_Date]
                  </div>
                  <div style="clear:both"></div>
               </div>
               <div class="com7">
                  <div class="com8">
                     [Comment_Sub_Content]
                     <RB:Comment_Sub_Send_Answer>
<div class="fxa">
                        <div class="rb_send_answer">
                           <div>
                              <a rel="nofollow" class="btn_send_answer" href="javascript:respond_comment([Comment_Id],[Comment_Sub_Id])" data-commentid="[Comment_Sub_Id]" data-replyto="پاسخ به [Comment_Sub_Author]" aria-label="پاسخ به [Comment_Sub_Author]">پاسخ</a>
                           </div>
                           <div class="rb_send_btn_like">
                              <a id="remove_respond_click_[Comment_Sub_Id]" rel="nofollow" class="btn_remove_answer" href="javascript:remove_respond_comment([Comment_Id],[Comment_Sub_Id])" data-commentid="[Comment_Sub_Id]">لغو پاسخ</a>
                           </div>
</div>
                           <RB:Comment_Sub_Like>
                              <div class="gap_15 fxc">
                                 <a id="like_[Comment_Sub_Id]" href="#" onclick="com_like([Comment_Sub_Id],1); return false;">
                                    <span class="fxc fx_col gap_5">
                                       <svg style="width: 24px; height: 24px;" class="vis_v">
                                          <use xlink:href="#svg_likee"></use>
                                       </svg>
                                       <span><span id="rb_total_like_[Comment_Sub_Id]" class="font_13">[Comment_Sub_Like]</span> +</span>
                                    </span>
                                 </a>
                                 <a id="like_[Comment_Sub_Id]" href="#" onclick="com_like([Comment_Sub_Id],2); return false;">
                                    <span class="fxc fx_col gap_5">
                                       <svg style="width: 24px; height: 24px;" class="vis_v">
                                          <use xlink:href="#svg_dislikee"></use>
                                       </svg>
                                       <span><span id="rb_total_dislike_[Comment_Sub_Id]" class="font_13">[Comment_Sub_DisLike]</span> -</span>
                                    </span>
                                 </a>
                              </div>
                              <div style="display:none" id="like_[Commgent_Sub_Id]" onclick="com_like([Comment_Sgub_Id])" class="rb_come_like [Comment_Sugb_Like_Status]">
                                 <span id="rb_total_like_[Comgment_Sub_Id]">[Comment_gSub_Like]</span> <span class="rb_com_heart"> ❤ </span>
                              </div>
                           </RB:Comment_Sub_Like>
                        </div>
                        <div>
                           <div id="respond_comment_[Comment_Sub_Id]" class="rb_respond_form"></div>
                        </div>
                     </RB:Comment_Sub_Send_Answer>
                  </div>
               </div>
            </div>
         </div>
      </RB:Comment_Sub_Display_Loop>
   </RB:Comment_Display_Loop>
</RB:Comment_Display_Block>
<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
   <defs>
      <symbol id="svg_likee" viewBox="0 0 24 24">
         <path fill="#4ccb70" d="M13.12 2.06L7.58 7.6c-.37.37-.58.88-.58 1.41V19c0 1.1.9 2 2 2h9c.8 0 1.52-.48 1.84-1.21l3.26-7.61C23.94 10.2 22.49 8 20.34 8h-5.65l.95-4.58c.1-.5-.05-1.01-.41-1.37-.59-.58-1.53-.58-2.11.01zM3 21c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2s-2 .9-2 2v8c0 1.1.9 2 2 2z" />
      </symbol>
      <symbol id="svg_dislikee" viewBox="0 0 24 24">
         <path fill="#f9563d" d="M10.88 21.94l5.53-5.54c.37-.37.58-.88.58-1.41V5c0-1.1-.9-2-2-2H6c-.8 0-1.52.48-1.83 1.21L.91 11.82C.06 13.8 1.51 16 3.66 16h5.65l-.95 4.58c-.1.5.05 1.01.41 1.37.59.58 1.53.58 2.11-.01zM21 3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2s2-.9 2-2V5c0-1.1-.9-2-2-2z" />
      </symbol>
   </defs>
</svg>
<div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">نظرات خود را در مورد این مقاله ارسال کنید.</h3>
        <RB:Comment_Form_Block><RB:Comment_Submit_Value:ارسال نظر>[Comment_Form]</RB:Comment_Form_Block>
</div>
</div>
</section></RB:Comment_Block>
<!-- نظرات-->
</div>
</div></ROZBLOG>
<div class="col-xl-4 col-lg-12 col-12">
<aside class="sidebar">
<!-- بلاک منوی راست -->
<RB:Block_Right><RB:Block_Right_Loop><section class="widget widget_text">
<div class="title"><h3>[Menu_Title]</h3></div>
<div class="content">
<div class="textwidget">[Menu_Code]</div>
</div>
</section></RB:Block_Right_Loop></RB:Block_Right>
<!-- بلاک منوی راست -->
<!-- بلاک مطالب جدید -->
<RB:Blog_Last_Posts_Block><section class="widget pictureNews">
<div class="title"><h3>آخرین آخبار</h3></div>
<div class="content">
<div class="container">
<div class="row">
<RB:Blog_Last_Posts_Loop><div class="col-xl-6 col-lg-3 col-md-4 col-sm-6 col-6">
<a href="[Last_Post_Url]" class="item"><img width="160" height="120" src="[Last_Post_Img]" alt="[Last_Post_Title]" /><h3>[Last_Post_Title]</h3></a>
</div></RB:Blog_Last_Posts_Loop>
</div>
</div>
</div>
</section></RB:Blog_Last_Posts_Block>
<!-- بلاک مطالب جدید -->
<!-- بلاک مطالب منتخب 2 -->
<RB:Selected_Posts_Block=2><section class="widget pictureNews2">
<div class="title"><h3>اخبار پین شده</h3></div>
<div class="content">
<ul><RB:Selected_Posts_Loop><li><a href="[Selected_Posts_Link]"><img width="160" height="120" src="[Selected_Posts_Img]"  alt="[Selected_Posts_Title]" /><h3>[Selected_Posts_Title]</h3><span class="date"><i class="fa fa-calendar-alt"></i></span></a></li></RB:Selected_Posts_Loop></ul>
</div>
</section></RB:Selected_Posts_Block> 
<!-- بلاک مطالب منتخب 2 -->
<!-- بلاک مطالب پربازدید ماهانه -->
<RB:Month_Hit_Posts_Block><RB:Hit_Posts_Count_Views:15><section class="widget views">
<div class="title"><h3>اخبار داغ ماه</h3></div>
<div class="content">
<ul><RB:Month_Hit_Posts_Loop><li><a href="[Hit_Posts_Link]"><i>#</i>[Hit_Posts_Title]</a></li></RB:Month_Hit_Posts_Loop></ul>
</div>
</section></RB:Month_Hit_Posts_Block> 
<!-- بلاک مطالب پربازدید ماهانه -
<!-- تبلیغات شماره 2 -->
<RB:Text2><section class="widget views">
<div class="title"><h3>تبلیغات</h3></div>
<div class="content">
[-Text2-]
</div>
</section></RB:Text2>
<!-- تبلیغات شماره 2 -->
<!-- بلاک مطالب پربازدید سال -->
<RB:Hit_Posts_Block><section class="widget views">
<div class="title"><h3>اخبار داغ سال</h3></div>
<div class="content">
<ul><RB:Hit_Posts_Loop><li><a href="[Hit_Posts_Link]"><i>#</i>[Hit_Posts_Title]</a></li></RB:Hit_Posts_Loop></ul>
</div>
</section></RB:Hit_Posts_Block>
<!-- بلاک مطالب پربازدید سال -->
<!-- بلاک منوی چپ -->
<RB:Block_Left><RB:Block_Left_Loop><section class="widget widget_text">
<div class="title"><h3>[Menu_Title]</h3></div>
<div class="content">
<div class="textwidget">[Menu_Code]</div>
</div>
</section></RB:Block_Left_Loop></RB:Block_Left> 
<!-- بلاک منوی چپ -->
<!-- بلاک مطالب منتخب 3 -->
<RB:Selected_Posts_Block=3><section class="widget views">
<div class="title"><h3>منتخب سردبیر</h3></div>
<div class="content">
<ul>
<RB:Selected_Posts_Loop><li><a href="[Selected_Posts_Link]"><i>#</i>[Selected_Posts_Title]</a></li></RB:Selected_Posts_Loop>
</ul>
</div>
</section></RB:Selected_Posts_Block> 
<!-- بلاک مطالب منتخب 3 -->
<!-- تبلیغات شماره 3 -->
<RB:Text3><section class="widget views">
<div class="title"><h3>تبلیغات</h3></div>
<div class="content">
[-Text3-]
</div>
</section></RB:Text3>
<!-- تبلیغات شماره 3 -->
<RB:Rand_Posts_Block><section class="widget views">
<div class="title"><h3>اخبار پیشنهادی</h3></div>
<div class="content">
<ul><RB:Rand_Posts_Loop><li><a href="[Rand_Posts_Link]"><i>#</i>[Rand_Posts_Title]</a></li></RB:Rand_Posts_Loop></ul>
</div>
</section></RB:Rand_Posts_Block>
</aside>
</div>
</div>
</div>
    
<script>
document.addEventListener("DOMContentLoaded", () => {
  // تنظیمات: دامنه و مسیری که می‌خواهید مسدود شود
  const targetHost = "sna24.ir";
  const targetPath = "/process/system/goto"; // مسیر یا دسته‌بندی مورد نظر
  const blockContent = (element) => {
    // ویژگی‌هایی که ممکن است حاوی آدرس باشند
    const attrsToCheck = ['src', 'href', 'data-src'];
    
    for (let attr of attrsToCheck) {
      const urlString = element.getAttribute(attr);
      if (!urlString) continue;
      try {
        // ایجاد شیء URL برای تحلیل دقیق آدرس
        // توجه: اگر لینک‌ها به صورت نسبی باشند (مثلاً /category/news/1) 
        // ممکن است نیاز باشد base URL را اضافه کنید.
        const urlObj = new URL(urlString, window.location.origin);
        // بررسی اینکه آیا دامنه با هاست مورد نظر یکی است 
        // و مسیر با مسیر مورد نظر شروع می‌شود یا خیر
        if (urlObj.hostname.includes(targetHost) && urlObj.pathname.startsWith(targetPath)) {
          console.log(`%c🚫 Blocked: ${element.tagName} -> ${urlString}`, "color: red; font-weight: bold;");
          element.remove();
          return true;
        }
      } catch (e) {
        // برای موارد خاص که URL نامعتبر است، بررسی متنی ساده انجام می‌دهیم
        if (urlString.includes(targetHost + targetPath)) {
          element.remove();
          return true;
        }
      }
    }
    return false;
  };
  // تابع اسکن برای پردازش المان‌های موجود
  const scan = (root) => {
    const targets = root.querySelectorAll("iframe, script, img, a, video, audio, source");
    targets.forEach(blockContent);
  };
  // 1. اسکن اولیه صفحه
  scan(document);
  // 2. رصد تغییرات DOM برای محتوای پویا
  const observer = new MutationObserver((mutations) => {
    for (const mutation of mutations) {
      mutation.addedNodes.forEach((node) => {
        if (node.nodeType === 1) { // اگر نود یک المان HTML است
          blockContent(node); // چک کردن خود المان
          scan(node);         // چک کردن فرزندان المان جدید
        }
      });
    }
  });
  observer.observe(document.body, {
    childList: true,
    subtree: true
  });
});
</script>

 
 

نظرات خود را در مورد این مقاله ارسال کنید.

       
کد امنیتی رفرش