PageSourceSearch

https://ashefaa.com/Mktba/themes/modern-vII/js/CR-Remover.js

js ashefaa.com collected 2026-10-02 12:36:39 UTC 1,286 bytes, 34 lines download raw bytes

1// ÇáÚäÕÑ ÇáãÓÊåÏÝ ááãÑÇÞÈÉ
2var targetNode = document.body;
3
4// Êßæíä ÇáãÑÇÞÈ
5var config = { childList: true, subtree: true };
6
7// ÏÇáÉ ÇáÇÓÊÏÚÇÁ áÊäÝíÐåÇ ÚäÏ ãÑÇÞÈÉ ÇáÊÛííÑÇÊ
8var callback = function(mutationsList, observer) {
9    // ÇáÏæÑÇä Úáì ßá ÊÛííÑ
10    for(var mutation of mutationsList) {
11        // ÇáÊÍÞÞ ããÇ ÅÐÇ ÊãÊ ÅÖÇÝÉ ÇáÚäÇÕÑ
12        if (mutation.type === 'childList') {
13            // ÇáÏæÑÇä Úáì ÇáÚäÇÕÑ ÇáãÖÇÝÉ
14            for(var node of mutation.addedNodes) {
15                // ÇáÊÍÞÞ ããÇ ÅÐÇ ßÇäÊ ÇáÚäÕÑ ÇáãÖÇÝÉ ÊØÇÈÞ ÇáÚäÕÑ ÇáãÓÊåÏÝ ááÍÐÝ
16                if (node.nodeType === 1 && node.tagName.toLowerCase() === 'table' && node.style.textAlign === 'right') {
17                    // ÇáÊÍÞÞ ããÇ ÅÐÇ ßÇä ÇáÚäÕÑ íÍÊæí Úáì ÇáãÍÊæì ÇáãÍÏÏ ááÍÐÝ
18                    if (node.innerHTML.includes('Powered by: MktbaGoldPro')) {
19                        // ÍÐÝ ÇáÚäÕÑ
20                        node.remove();
21                        // ÝÕá ÇáãÑÇÞÈ ÈÚÏ ÍÐÝ ÇáÚäÕÑ
22                        observer.disconnect();
23                    }
24                }
25            }
26        }
27    }
28};
29
30// ÅäÔÇÁ ãËíá ÌÏíÏ ááãÑÇÞÈ
31var observer = new MutationObserver(callback);
32
33// ÈÏÁ ãÑÇÞÈÉ ÇáÚäÕÑ ÇáãÓÊåÏÝ ááÊÛííÑÇÊ ÇáãßæäÉ
34observer.observe(targetNode, config);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.