-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhilangiklan.js
More file actions
24 lines (20 loc) · 838 Bytes
/
hilangiklan.js
File metadata and controls
24 lines (20 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(function () {
const iframes = document.querySelectorAll('iframe');
iframes?.forEach(iframe => {
const src = iframe.src || '';
if (src.includes('smoothpre.com') || src.includes('movearnpre.com')) {
// Tambahkan allowfullscreen jika belum ada
if (!iframe.hasAttribute('allowfullscreen')) {
iframe.setAttribute('allowfullscreen', '');
}
// Tambahkan security="restricted" jika belum ada
if (!iframe.hasAttribute('security')) {
iframe.setAttribute('security', 'restricted');
}
// Tambahkan sandbox jika belum ada
if (!iframe.hasAttribute('sandbox')) {
iframe.setAttribute('sandbox', 'allow-same-origin allow-forms allow-scripts');
}
}
});
})();