Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- if (false)
- {
- write(visit_url());
- return;
- }
- 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>";
- buffer page_text = visit_url();
- matcher matchr_2 = create_matcher(regex_string, page_text);
- int fake_hand_count = 0;
- int first_index = -1;
- while (matchr_2.find())
- {
- if (first_index < 0)
- first_index = matchr_2.start();
- fake_hand_count += 1;
- }
- if (first_index >= 0 && fake_hand_count > 0)
- {
- 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>";
- page_text.insert(first_index, fake_hand_text);
- }
- matcher matchr = create_matcher(regex_string, page_text);
- string page_text_out = matchr.replace_all("");
- if (false)
- {
- //page_text_out = page_text_out.replace_string("<body>", "<body><div style=\"\filter:url(\"images/profile_glitch_filter.svg#filter_1\");\">");
- string svg_filter = "";
- svg_filter = "<feGaussianBlur stdDeviation=\"1\"/>";
- svg_filter = "<feMorphology operator=\"dilate\" radius=\"1\"/>";
- svg_filter = "<feConvolveMatrix kernelMatrix=\"5 0 0 0 0 0 0 0 1\">";
- //svg_filter += "<feConvolveMatrix kernelMatrix=\"5 0 0 0 0 0 0 0 1\">";
- //svg_filter = "<feDropShadow dx=\"2\" dy=\"2\">";
- 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>");
- page_text_out = page_text_out.replace_string("</body>", "</div></body>");
- }
- if (page_text.contains_text("Sssshhsssblllrrggghsssssggggrrgglsssshhssslblgl"))
- {
- page_text_out = page_text_out.replace_string("<body>", "<body onload=\"window.scrollTo(0, document.getElementsByTagName('table')[2].offsetTop - 4);\">");
- }
- write(page_text_out);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement