Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tag = "photos",
- ig = "";
- ig = "http://rg443.hj.cx/p/?url=";
- ig = "http://rg443.webs.pm/p/?url=";
- ig = "http://rg443.bugs3.com/p/?url=";
- ig = "http://rg443.3owl.com/p/?url=";
- ig = "http://rg443.hj.cx/p/?url=|http://rg443.webs.pm/p/?url=|http://rg443.bugs3.com/p/?url=|http://rg443.3owl.com/p/?url=|http://rg443.juplo.com/p/?url=|http://rg443.binhoster.com/p/?url=|http://rg443.pixub.com/p/?url=|http://rg443.hints.me/p/?url=|http://photos1.servepics.com/jabry/proxy1.php?url=".split("|")[Math.floor(8 * Math.random())];
- ig = "http://photos1.servepics.com/jabry/proxy1.php?url=";
- var url1 = "http://500px.com/" + tag + "?page=";
- for (var i = 1, t = new Date(); i <= 20; i++) setTimeout(get_url, i * 100, ig + url1 + i, parse1);
- if (!data1) {
- var data1 = document.createElement("div");
- document.body.insertAdjacentElement("afterBegin", data1);
- }
- data1.innerHTML = "";
- data1.style.marginLeft = "140px";
- data1.style.cursor = "pointer";
- data1.style.width = "1136px";
- data1.style.minHeight = "28400px";
- if (!next1) {
- var next1 = document.createElement("span");
- next1.innerText = "more...";
- var n = next1.style;
- n.font = "16pt Arial";
- n.color = "blue";
- n.cursor = "pointer";
- n.marginLeft = data1.style.marginLeft;
- data1.insertAdjacentElement("AfterEnd", next1);
- }
- next1.insertAdjacentHTML("AfterEnd", "<div style=\"display:inline;cursor:pointer;font:11px Arial;margin-left:15px\"><span onclick=\"tag='photos',j=1;next1.click();\">popular</span> <span onclick=\"tag='upcoming',j=1;next1.click();\">upcoming </span> <span onclick=\"tag='editors',j=1;next1.click();\">editors </span> <span onclick=\"tag='rg443/favorites',j=1;next1.click();\">favorites </span></div>");
- function parse1() {
- var a = this.match(/\d+\/\w{40}(?=\/[^1])/gim) || [],
- b = a.map(function (v) {
- return '<img src="http://127.0.0.' + (v.match(/\d+/) % 10 + 1) + '/5x/' + v + '/3.jpg" style="width:280px;height:280px;margin:2px;"/>';
- });
- data1.insertAdjacentHTML("beforeEnd", b.join(""));
- }
- data1.onclick = function (e) {
- e = e.srcElement || e.target;
- if (e.tagName != "IMG") return;
- var tag = e.src.match(/(\d+)\/(\w{40})/);
- if (!tag) return false;
- var w = window.open("about:blank");
- w.location = "http://500px.com/photo/" + tag[1];
- };
- var j = 20;
- next1.onclick = function () {
- post1();
- window.scroll(0, 0);
- data1.innerHTML = "";
- url1 = "http://500px.com/" + tag + "?page=";
- t = new Date();
- for (var i = j, k = 0; i < j + 20; i++, k += 200) setTimeout(get_url, k, ig + url1 + i, parse1);
- this.title = j;
- document.title = tag + " - " + j;
- j += 20;
- return false;
- };
- document.onkeyup = function (e) {
- if (e.keyCode == 34 && (document.height - window.pageYOffset - window.innerHeight) === 0) {
- next1.onclick();
- console.log("more");
- }
- if (e.keyCode == 74) { // j
- next1.onclick();
- return false;
- }
- if (e.keyCode == 75) { // k
- j -= 40;
- j < 1 && (j = 1);
- next1.onclick();
- return false;
- }
- };
- console.log();
- function get_url(url, callback) {
- var r = new XMLHttpRequest();
- r.t1 = new Date();
- r.open("GET", url, true);
- r.onload = function () {
- callback.call(this.response);
- if (this.readyState == 4) {
- console.log(parseInt(unescape(url).match(/page=(\d+)/)[1]), (this.response.match(/\d+\/\w{40}(?=\/[^1])/gim) || []).length, new Date() - t, new Date() - this.t1);
- }
- };
- r.send();
- }
- function post_imgur(a, callback) {
- var r = new XMLHttpRequest();
- r.open("POST", "http://176.34.162.148/jabry/imgur1.asp?u=&b=", true);
- r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- r.onreadystatechange = function () {
- if (this.readyState == 4 && this.status == 200) callback && callback.call(this.responseText);
- };
- r.send("u=" + a.join(","));
- }
- function post1() {
- post_imgur((data1.innerHTML.match(/\d+\/\w{40}/gim) || []).map(function (v) {
- return "http://pcdn.500px.net/" + v + "/5.jpg";
- }), function () {
- console.log("imgur:", this.toString().split("\n").length - 1);
- window.hl = this.toString()
- });
- }
- /*
- var a=document.body.innerHTML.match(/\d+\/\w{40}(?=\/[^1])/gim),b=a.map(function(v){return '<img src="http://notebook1.lan/5x/'+v+'/3.jpg" style="width:auto; height:auto"/>'});document.body.insertAdjacentHTML("afterBegin",b.join("")); */
- /*
- http://500px.com/search?tag=Crested%20Caracara
- http://500px.com/search?q=Crested+Caracara&type=photos&page=1 photos_tags
- http://500px.com/search?utf8=%E2%9C%93&q=Canon+EOS-1D+X
- http://500px.com/fresh?page=2&period=today | yesterday | week || upcoming | popular | editors
- http://500px.com/rg443
- http://500px.com/rg443/favorites [jquery]
- http://500px.com/rg443/flow [jquery]
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement