• הרשמה
    • התחברות
    • חיפוש
    • דף הבית
    • אינדקס קישורים
    • פוסטים אחרונים
    • קבלת התראות מהדפדפן
    • משתמשים
    • חיפוש בהגדרות המתקדמות
    • חיפוש גוגל בפורום
    • ניהול המערכת
    • ניהול המערכת - שרת private

    נפתר הסתרת כרטיסיות ע"י סקריפט

    טיפים עצות והדגמות מהמשתמשים
    7
    28
    779
    טוען פוסטים נוספים
    • מהישן לחדש
    • מהחדש לישן
    • הכי הרבה הצבעות
    תגובה
    • הגיבו כנושא
    התחברו בכדי לפרסם תגובה
    נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
    • ש
      שואל ברצינות @שמואל ש. נערך לאחרונה על ידי

      @שמואל-ש אמר בהסתרת כרטיסיות ע"י סקריפט:

      @שואל-ברצינות אמר בהסתרת כרטיסיות ע"י סקריפט:

      $("a[href$='view=transfer_mobile']").parent().hide();
      

      עם JS פשוט:

      document.querySelectorAll("a[href$='view=transfer_mobile']")[0].parentNode.style.display = "none";
      

      וזה מסתיר לא לפי מספרים אלא לפי זיהוי?

      בהחלט. אם תקרא תראה שזה עובד לפי הקישור של הטאב.

      3 תגובה 1 תגובה אחרונה תגובה ציטוט 0
      • 3
        33064325 @שואל ברצינות נערך לאחרונה על ידי

        @שואל-ברצינות צריך 2 שורות לכל כרטיסייה נכון ?

        ש תגובה 1 תגובה אחרונה תגובה ציטוט 0
        • ש
          שואל ברצינות @33064325 נערך לאחרונה על ידי שואל ברצינות

          @33064325 אמר בהסתרת כרטיסיות ע"י סקריפט:

          @שואל-ברצינות צריך 2 שורות לכל כרטיסייה נכון ?

          למה פעמיים?
          כתבתי אפשרות קצרה ב-JQUERY, ואת אותו דבר בקוד JS נקי. הפעולה זהה לחלוטין. השאלה היא אם יש לך כבר JQUERY שנטען בדף.

          3 2 תגובות תגובה אחרונה תגובה ציטוט 0
          • 3
            33064325 @שואל ברצינות נערך לאחרונה על ידי

            @שואל-ברצינות אני לא מבין בזה ביכלל כשכתבתי רק

            // ==UserScript==
            // @name         New Userscript
            // @namespace    http://tampermonkey.net/
            // @version      0.1
            // @description  try to take over the world!
            // @author       You
            // @match        https://www.call2all.co.il/*
            // @icon         https://www.google.com/s2/favicons?domain=co.il
            // @grant        none
            // ==/UserScript==
            
            
             
            (function() {
             
            document.querySelectorAll("a[href$='view=customer_settings]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----הגדרות משתמש"
            document.querySelectorAll("a[href$='view=customer_units]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----יחידות"
            document.querySelectorAll("a[href$='view=ivr2]")[0].parentNode.style.display = "none";// 					מסתיר את כרטיסיית ----מערכת תוכן"
            document.querySelectorAll("a[href$='view=incoming_current]")[0].parentNode.style.display = "none";//  		 מסתיר את כרטיסיית ----שיחות נכנסות"
            document.querySelectorAll("a[href$='view=marketing_app]")[0].parentNode.style.display = "none";//     		  מסתיר את כרטיסיית ----ניהול מכירות"
            document.querySelectorAll("a[href$='view=dataRec]")[0].parentNode.style.display = "none";// 				מסתיר את כרטיסיית ----ניהול קבלת נתונים"
            document.querySelectorAll("a[href$='view=customer_select_campaign]")[0].parentNode.style.display = "none";// מסתיר את כרטיסיית ----שיגור הודעות"
            document.querySelectorAll("a[href$='view=transfer_mobile]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----אבטחה"
            document.querySelectorAll("a[href$='view=transfer_mobile]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----ממשק ניוד"
            document.querySelectorAll("a[href$='view=send_fax]")[0].parentNode.style.display = "none";//				 מסתיר את כרטיסיית ----שליחת פקס"
            document.querySelectorAll("a[href$='view=Incoming_sms]")[0].parentNode.style.display = "none";// 			מסתיר את כרטיסיית ----מערכת SMS"
            document.querySelectorAll("a[href$='view=events]")[0].parentNode.style.display = "none";// 				מסתיר את כרטיסיית ----אבטחה"
            document.querySelectorAll("a[href$='view=sip]")[0].parentNode.style.display = "none";// 					מסתיר את כרטיסיית ----מרכזיה עסקית"
             
            })();
            
            

            או עם שתי השורות האלו באמצע גם כן

            'use strict';
            var appBanners = document.getElementsByClassName('ui-state-default ui-corner-top'), i;
            

            זה לא עבד, ניסיתי להחליף את החלק השני של הסקריפט וזה גם לא עבד

            רק כשכתבי ככה זה עובד לי

            // ==UserScript==
            // @name         New Userscript
            // @namespace    http://tampermonkey.net/
            // @version      0.1
            // @description  try to take over the world!
            // @author       You
            // @match        https://www.call2all.co.il/*
            // @icon         https://www.google.com/s2/favicons?domain=co.il
            // @match        https://private.call2all.co.il/*
            // @icon         https://private.google.com/s2/favicons?domain=co.il
            // @grant        none
            // ==/UserScript==
            
            $("a[href$='view=transfer_mobile']").parent().hide();
            $("a[href$='view=marketing_app']").parent().hide();
            $("a[href$='view=events']").parent().hide();
            $("a[href$='view=send_fax']").parent().hide();
            $("a[href$='view=Incoming_sms']").parent().hide();
            $("a[href$='view=dataRec']").parent().hide();
            $("a[href$='view=sip']").parent().hide();
            
            (function() {
            
            document.querySelectorAll("a[href$='view=customer_settings]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----הגדרות משתמש"
            document.querySelectorAll("a[href$='view=customer_units]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----יחידות"
            document.querySelectorAll("a[href$='view=ivr2]")[0].parentNode.style.display = "none";// 					מסתיר את כרטיסיית ----מערכת תוכן"
            document.querySelectorAll("a[href$='view=incoming_current]")[0].parentNode.style.display = "none";//  		 מסתיר את כרטיסיית ----שיחות נכנסות"
            document.querySelectorAll("a[href$='view=marketing_app]")[0].parentNode.style.display = "none";//     		  מסתיר את כרטיסיית ----ניהול מכירות"
            document.querySelectorAll("a[href$='view=dataRec]")[0].parentNode.style.display = "none";// 				מסתיר את כרטיסיית ----ניהול קבלת נתונים"
            document.querySelectorAll("a[href$='view=customer_select_campaign]")[0].parentNode.style.display = "none";// מסתיר את כרטיסיית ----שיגור הודעות"
            document.querySelectorAll("a[href$='view=transfer_mobile]")[0].parentNode.style.display = "none";// 		מסתיר את כרטיסיית ----ממשק ניוד"
            document.querySelectorAll("a[href$='view=send_fax]")[0].parentNode.style.display = "none";//				 מסתיר את כרטיסיית ----שליחת פקס"
            document.querySelectorAll("a[href$='view=Incoming_sms]")[0].parentNode.style.display = "none";// 			מסתיר את כרטיסיית ----מערכת SMS"
            document.querySelectorAll("a[href$='view=events]")[0].parentNode.style.display = "none";// 				מסתיר את כרטיסיית ----אבטחה"
            document.querySelectorAll("a[href$='view=sip]")[0].parentNode.style.display = "none";// 					מסתיר את כרטיסיית ----מרכזיה עסקית"
            
            })();
            
            
            תגובה 1 תגובה אחרונה תגובה ציטוט 1
            • 3
              33064325 @שואל ברצינות נערך לאחרונה על ידי

              @שואל-ברצינות עכשיו גם ככה זה עובד לי

              // ==UserScript==
              // @name         New Userscript
              // @namespace    http://tampermonkey.net/
              // @version      0.1
              // @description  try to take over the world!
              // @author       You
              // @match        https://www.call2all.co.il/*
              // @icon         https://www.google.com/s2/favicons?domain=co.il
              // @match        https://private.call2all.co.il/*
              // @icon         https://private.google.com/s2/favicons?domain=co.il
              // @grant        none
              // ==/UserScript==
              
              $("a[href$='view=transfer_mobile']").parent().hide();
              $("a[href$='view=marketing_app']").parent().hide();
              $("a[href$='view=events']").parent().hide();
              $("a[href$='view=send_fax']").parent().hide();
              $("a[href$='view=Incoming_sms']").parent().hide();
              $("a[href$='view=dataRec']").parent().hide();
              $("a[href$='view=sip']").parent().hide();
              
              (function() {
              
              
              
              })();
              
              
              ש תגובה 1 תגובה אחרונה תגובה ציטוט 1
              • ש
                שואל ברצינות @33064325 נערך לאחרונה על ידי שואל ברצינות

                @33064325 אמר בהסתרת כרטיסיות ע"י סקריפט:

                // ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.call2all.co.il/* // @icon https://www.google.com/s2/favicons?domain=co.il // @match https://private.call2all.co.il/* // @icon https://private.google.com/s2/favicons?domain=co.il // @grant none // ==/UserScript== $("a[href$='view=transfer_mobile']").parent().hide(); $("a[href$='view=marketing_app']").parent().hide(); $("a[href$='view=events']").parent().hide(); $("a[href$='view=send_fax']").parent().hide(); $("a[href$='view=Incoming_sms']").parent().hide(); $("a[href$='view=dataRec']").parent().hide(); $("a[href$='view=sip']").parent().hide();

                אם זה עובד לך, זה אומר שיש JQUERY שנטען בדף.
                ואגב, אתה יכול למחוק את הפונקציה הריקה בסוף ולהשאיר רק את זה:

                // ==UserScript==
                // @name         New Userscript
                // @namespace    http://tampermonkey.net/
                // @version      0.1
                // @description  try to take over the world!
                // @author       You
                // @match        https://www.call2all.co.il/*
                // @icon         https://www.google.com/s2/favicons?domain=co.il
                // @match        https://private.call2all.co.il/*
                // @icon         https://private.google.com/s2/favicons?domain=co.il
                // @grant        none
                // ==/UserScript==
                 
                $("a[href$='view=transfer_mobile']").parent().hide();
                $("a[href$='view=marketing_app']").parent().hide();
                $("a[href$='view=events']").parent().hide();
                $("a[href$='view=send_fax']").parent().hide();
                $("a[href$='view=Incoming_sms']").parent().hide();
                $("a[href$='view=dataRec']").parent().hide();
                $("a[href$='view=sip']").parent().hide();
                
                תגובה 1 תגובה אחרונה תגובה ציטוט 1
                • 3
                  33064325 @תפארת1 נערך לאחרונה על ידי חנון המרבה

                  @תפארת1 אמר בהסתרת כרטיסיות ע"י סקריפט:

                  customer_units

                  אם רוצים להסתיר את כרטיסיה צינטוקים

                  document.querySelectorAll("a[href$='view=Tzintukim]")[0].parentNode.style.display = "none";// מסתיר את כרטיסיית צינטוקים"
                  
                  תגובה 1 תגובה אחרונה תגובה ציטוט 1
                  • הנושא סומן כשאלה  ש שמחה - זו הסיסמא 
                  • הנושא סומן כנפתר  ש שמחה - זו הסיסמא 
                  • נ
                    נר יצחק מומחה נערך לאחרונה על ידי

                    @תפארת1 מופיע לי כזאת הודעה 0807fe55-96ec-41c5-9ab5-a9e2e07434ce-image.png

                    תגובה 1 תגובה אחרונה תגובה ציטוט 0
                    • פוסט ראשון
                      פוסט אחרון