הסתרת כרטיסיות ע"י סקריפט
-
@33064325
אפשר לפתור את זה עם jquery,
הקוד הבא לדוג' יסתיר רק את הטאב של אבטחה:$("a[href$='view=events']").parent().hide();עם JS נקי זה יצא קצת יותר ארוך:
document.querySelectorAll("a[href$='view=events']")[0].parentNode.style.display = "none"; -
@שואל-ברצינות ולשאר הכרטיסיות איך משנים ?
-
@33064325 אמר בהסתרת כרטיסיות ע"י סקריפט:
@שואל-ברצינות ולשאר הכרטיסיות איך משנים ?
לפי הקישור שלהם.
זה עובד כך:
א. מחפש את הקישור.
ב. מחפש את האלמנט 'הורה' של הקישור.
ג. מסתיר אותו. -
@שואל-ברצינות אז למעשה כדי להסתיר את לשונית ממשק ניוד ושלא יסתיר לי בלילה משהו אחר, איזה קוד אני צריך להכניס?
-
$("a[href$='view=transfer_mobile']").parent().hide();עם JS פשוט:
document.querySelectorAll("a[href$='view=transfer_mobile']")[0].parentNode.style.display = "none"; -
@שמואל-ש
מצורף כאן את כל הקוד להסתיר את הכל
כל אחד שישתמש במה שהוא צריך(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";// מסתיר את כרטיסיית ----מרכזיה עסקית" document.querySelectorAll("a[href$='view=Tzintukim]")[0].parentNode.style.display = "none";// מסתיר את כרטיסיית צינטוקים" })(); -
@שואל-ברצינות אמר בהסתרת כרטיסיות ע"י סקריפט:
$("a[href$='view=transfer_mobile']").parent().hide();עם JS פשוט:
document.querySelectorAll("a[href$='view=transfer_mobile']")[0].parentNode.style.display = "none";וזה מסתיר לא לפי מספרים אלא לפי זיהוי?
-
@שואל-ברצינות אמר בהסתרת כרטיסיות ע"י סקריפט:
$("a[href$='view=transfer_mobile']").parent().hide();עם JS פשוט:
document.querySelectorAll("a[href$='view=transfer_mobile']")[0].parentNode.style.display = "none";אני לא מבין, להוסיף את זה לסקריפט שכתבו כאן או שזה סקריפט חדש?
-
פוסט זה נמחק! -
@33064325 ואח"כ כל השורות הנ"ל?
ומה זה השורה הזאת? -
@שמואל-ש האמת היא שאני לא בטוח שאני צודק כי זה לא עובד לי
נחכה ל @תפארת1 שיסביר לנו עוד קצת
-
@שמואל-ש אמר בהסתרת כרטיסיות ע"י סקריפט:
@שואל-ברצינות אמר בהסתרת כרטיסיות ע"י סקריפט:
$("a[href$='view=transfer_mobile']").parent().hide();עם JS פשוט:
document.querySelectorAll("a[href$='view=transfer_mobile']")[0].parentNode.style.display = "none";וזה מסתיר לא לפי מספרים אלא לפי זיהוי?
בהחלט. אם תקרא תראה שזה עובד לפי הקישור של הטאב.
-
@שואל-ברצינות צריך 2 שורות לכל כרטיסייה נכון ?
-
@33064325 אמר בהסתרת כרטיסיות ע"י סקריפט:
@שואל-ברצינות צריך 2 שורות לכל כרטיסייה נכון ?
למה פעמיים?
כתבתי אפשרות קצרה ב-JQUERY, ואת אותו דבר בקוד JS נקי. הפעולה זהה לחלוטין. השאלה היא אם יש לך כבר 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 // @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";// מסתיר את כרטיסיית ----מרכזיה עסקית" })(); -
@שואל-ברצינות עכשיו גם ככה זה עובד לי
// ==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() { })(); -
@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 אמר בהסתרת כרטיסיות ע"י סקריפט:
customer_units
אם רוצים להסתיר את כרטיסיה צינטוקים
document.querySelectorAll("a[href$='view=Tzintukim]")[0].parentNode.style.display = "none";// מסתיר את כרטיסיית צינטוקים" -
ש שמחה - זו הסיסמא סימן נושא זה כשאלה ב
-
ש שמחה - זו הסיסמא סימן נושא זה כנפתר ב
-
@תפארת1 מופיע לי כזאת הודעה

שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות