<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>京东 &#8211; 天地一沙鸥</title>
	<atom:link href="https://haoluobo.com/tag/%E4%BA%AC%E4%B8%9C/feed/" rel="self" type="application/rss+xml" />
	<link>https://haoluobo.com</link>
	<description>to be continue....</description>
	<lastBuildDate>Thu, 16 Dec 2021 03:27:30 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>京东夺宝岛抢拍脚本</title>
		<link>https://haoluobo.com/2013/02/auction-360buy/</link>
					<comments>https://haoluobo.com/2013/02/auction-360buy/#comments</comments>
		
		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Thu, 21 Feb 2013 11:00:41 +0000</pubDate>
				<category><![CDATA[vicalloy的庄家]]></category>
		<category><![CDATA[京东]]></category>
		<guid isPermaLink="false">/?p=10979</guid>

					<description><![CDATA[京东的夺宝岛是京东的“瑕疵品”拍卖平台。试着拍了个物品，发现竞争还挺激烈。在拍卖即将结束的前几秒，大量买家争相 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>京东的<a href="http://auction.360buy.com/">夺宝岛</a>是京东的“瑕疵品”拍卖平台。试着拍了个物品，发现竞争还挺激烈。在拍卖即将结束的前几秒，大量买家争相出价，要想用心仪的价格抢拍到自己的物品并不是一件容易的事。<br>简单的分析了一下夺宝岛的页面，感觉要实现一个抢拍脚本并不麻烦。找了一下没发现现成插件，于是就自己动手了。<br>要实现抢拍功能，一般思路是做成浏览器插件。做浏览器插件固然不错，就是写起来稍微麻烦了些。更简单的方式是用“浏览器收藏夹”在当前页面执行脚本。将<code>javascript:void(alert('执行当前脚本'))</code>加入浏览器收藏夹，点击该条目时将在当前页面执行JS脚本。<br>利用浏览器的这一特性，我写了下面的脚本。修改脚本中的最高出价以及用户昵称，将脚本并成一行，添加到浏览器的收藏夹。进入需要抢拍的页面，点击，然后就会自动帮你出价了。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
javascript:void(
  t=setInterval(function(){
    max=450;//你的最高出价，超过这个价格就不抢了
    uid=&#039;vicalloy&#039;;//你在京东的昵称（总不能和自己抢东西吧）
    did=$(&#039;.list-info&gt;li.fore1&#039;).text().replace(&#039;夺宝编号：&#039;, &#039;&#039;);
    url=&quot;http://auction.360buy.com/json/paimai/bid_records?pageNo=1&amp;pageSize=1&amp;dealId=&quot;+did;
    ct=$(&#039;.over-time&gt;strong&#039;).text();
    if (parseInt(ct)&gt;10) return;//在最后10秒开抢
    $.getJSON(url, function(d){
      p = parseInt(d.datas&#x5B;0].price)+1;
      cuid = d.datas&#x5B;0].userNickName;
      if (p&gt;max) {
        clearInterval(t);
        return;
      }
      if (uid==cuid) return;
      $.get(&quot;http://auction.360buy.com/json/paimai/bid?dealId=&quot;+did+&quot;&amp;price=&quot;+p);
    });
  }, 1000))//一秒钟刷新一次价格，如果你希望提高出价的成功率，可将间隔改小。
</pre></div>]]></content:encoded>
					
					<wfw:commentRss>https://haoluobo.com/2013/02/auction-360buy/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
