projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9779f8
)
domains/prnewsthailand.com.js
author
leon
<leon@roojs.com>
Fri, 9 Feb 2024 01:46:13 +0000
(09:46 +0800)
committer
leon
<leon@roojs.com>
Fri, 9 Feb 2024 01:46:13 +0000
(09:46 +0800)
domains/prnewsthailand.com.js
[new file with mode: 0644]
patch
|
blob
diff --git a/domains/prnewsthailand.com.js
b/domains/prnewsthailand.com.js
new file mode 100644
(file)
index 0000000..
352e4fb
--- /dev/null
+++ b/
domains/prnewsthailand.com.js
@@ -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