Advertisement
kolpastebin

showplayer.ash

Mar 13th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. void main()
  2. {
  3. if (false)
  4. {
  5. write(visit_url());
  6. return;
  7. }
  8. string regex_string = "<tr><td width=30 height=30><img src=.[^\"]*. class=hand onClick=.descitem.826737671, [0-9]*..></td><td valign=center><b>fake hand</b></td></tr>";
  9. buffer page_text = visit_url();
  10. matcher matchr_2 = create_matcher(regex_string, page_text);
  11.  
  12. int fake_hand_count = 0;
  13. int first_index = -1;
  14. while (matchr_2.find())
  15. {
  16. if (first_index < 0)
  17. first_index = matchr_2.start();
  18. fake_hand_count += 1;
  19. }
  20. if (first_index >= 0 && fake_hand_count > 0)
  21. {
  22. string fake_hand_text = "<tr><td width=30 height=30><img src=\"/images/itemimages/glove.gif\" class=hand onClick='descitem(826737671)'></td><td valign=center><b>" + (fake_hand_count > 1 ? (fake_hand_count + " ") : "") + "fake hand" + (fake_hand_count > 1 ? "s" : "") + "</b></td></tr>";
  23. page_text.insert(first_index, fake_hand_text);
  24. }
  25. matcher matchr = create_matcher(regex_string, page_text);
  26. string page_text_out = matchr.replace_all("");
  27.  
  28. if (false)
  29. {
  30. //page_text_out = page_text_out.replace_string("<body>", "<body><div style=\"\filter:url(\"images/profile_glitch_filter.svg#filter_1\");\">");
  31. string svg_filter = "";
  32. svg_filter = "<feGaussianBlur stdDeviation=\"1\"/>";
  33. svg_filter = "<feMorphology operator=\"dilate\" radius=\"1\"/>";
  34. svg_filter = "<feConvolveMatrix kernelMatrix=\"5 0 0 0 0 0 0 0 1\">";
  35. //svg_filter += "<feConvolveMatrix kernelMatrix=\"5 0 0 0 0 0 0 0 1\">";
  36. //svg_filter = "<feDropShadow dx=\"2\" dy=\"2\">";
  37. page_text_out = page_text_out.replace_string("<body>", "<body><div style=\"\filter:url(#filter_1);\"><svg height=\"0\"><filter id=\"filter_1\">" + svg_filter + "</fliter></svg>");
  38. page_text_out = page_text_out.replace_string("</body>", "</div></body>");
  39. }
  40. if (page_text.contains_text("Sssshhsssblllrrggghsssssggggrrgglsssshhssslblgl"))
  41. {
  42. page_text_out = page_text_out.replace_string("<body>", "<body onload=\"window.scrollTo(0, document.getElementsByTagName('table')[2].offsetTop - 4);\">");
  43. }
  44.  
  45.  
  46. write(page_text_out);
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement