domains/prnewsthailand.com.js
authorleon <leon@roojs.com>
Fri, 9 Feb 2024 01:46:13 +0000 (09:46 +0800)
committerleon <leon@roojs.com>
Fri, 9 Feb 2024 01:46:13 +0000 (09:46 +0800)
domains/prnewsthailand.com.js [new file with mode: 0644]

diff --git a/domains/prnewsthailand.com.js b/domains/prnewsthailand.com.js
new file mode 100644 (file)
index 0000000..352e4fb
--- /dev/null
@@ -0,0 +1,22 @@
+(function (args) {
+    var tries = 0;
+    var timer = window.setInterval(function() {
+        try {
+            tries++;
+            target = document.getElementsByClassName('bt_full_post')[0];
+
+            if(target == null) {
+                // give up after 5 tries
+                if(tries == 5) {
+                    clearInterval(timer);
+                }
+                return;
+            }
+            target.style.display = 'none';
+            clearInterval(timer);
+          
+        } catch(e) {}
+            
+    },150);
+    
+})(); 
\ No newline at end of file