<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[分享：种子详情当页预览图片（不用弹出新窗口）的greasemonkey脚本]]></title><description><![CDATA[<p dir="auto">不爽GTRU预览图片时那个变态的弹出窗口，装了greasemonkey，写了个脚本，用FF或者Chrome的同学可以拿去。</p>
<p dir="auto">脚本代码：</p>
<blockquote>
<p dir="auto">// <a href="http://GT.ru" rel="nofollow ugc">GT.ru</a> pic preview script<br />
// version 0.1<br />
// 2011-6-26<br />
// Copyright <img src="https://community.gaytor.rent/assets/plugins/nodebb-plugin-emoji/emoji/apple/00a9.png?v=57695cee877" class="not-responsive emoji emoji-apple emoji--copyright" style="height:23px;width:auto;vertical-align:middle" title="©" alt="©" /> 2011, dangl71<br />
// Released under the GPL license<br />
// hxxp://www.gnu.org/copyleft/gpl.html<br />
//<br />
// --------------------------------------------------------------------<br />
//<br />
// This is a Greasemonkey user script.  To install it, you need<br />
// Greasemonkey 0.3 or later: hxxp://greasemonkey.mozdev.org/<br />
// Then restart Firefox and revisit this script.<br />
// Under Tools, there will be a new menu item to "Install User Script".<br />
// Accept the default configuration and install.<br />
//<br />
// To uninstall, go to Tools/Manage User Scripts,<br />
// select "<a href="http://GT.ru" rel="nofollow ugc">GT.ru</a>", and click Uninstall.<br />
//<br />
// --------------------------------------------------------------------<br />
//<br />
// ==UserScript==<br />
// <a class="plugin-mentions-user plugin-mentions-a" href="/user/name" aria-label="Profile: name">@<bdi>name</bdi></a>          <a href="http://GT.ru" rel="nofollow ugc">GT.ru</a><br />
// @description   change <a href="http://GT.ru" rel="nofollow ugc">GT.ru</a> pic preview<br />
// @include       <a href="http://tracker.gaytor.rent/details.php" rel="nofollow ugc">http://tracker.gaytor.rent/details.php</a>*<br />
// ==/UserScript==</p>
<p dir="auto">picDiv = document.createElement("div");<br />
picDiv.setAttribute("id", "picDiv");<br />
picDiv.setAttribute("style", "position:absolute; top:100px; left:0px; z-index:99; visibility:hidden; width:99.6%; height:80%; text-align:center");<br />
picDiv.innerHTML = '&lt;iframe id="theFrame" border="0" style="width:100%; height:95%; background:gray" noresize="resize"&gt;&lt;/iframe&gt;<br />
  &gt;&gt; Close Pic Preview &lt;&lt;  ';<br />
document.body.appendChild(picDiv);</p>
<p dir="auto">newScript = document.createElement("script");<br />
newScript.innerHTML = 'function showpic(pic) { document.getElementById("theFrame").src="/showpic.php?pic=" + pic; document.getElementById("picDiv").style.visibility="visible"; document.getElementById("picDiv").style.top = window.pageYOffset + "px"; } function hidePic() { document.getElementById("picDiv").style.visibility="hidden"; }';<br />
document.body.appendChild(newScript);</p>
<p dir="auto">newScript = document.createElement("script");<br />
newScript.innerHTML = 'window.onscroll = function () { document.getElementById("picDiv").style.top = window.pageYOffset + "px" }';<br />
document.body.appendChild(newScript);</p>
<p dir="auto">function scrollpicDiv(){ document.getElementById("picDiv").style.posTop = document.body.scrollTop; }</p>
</blockquote>
<p dir="auto">以上脚本。</p>
<p dir="auto">首先要安装greasemonkey插件（重启FF以后才可以应用）。把这段代码复制下来，存成 yourfilename.user.js 文件，把它拖进FF窗口，应该就可以了。</p>
<p dir="auto">@管理员/版主：<br />
@include那一句链接的是本站URL，不要改成hxxp哦！</p>
]]></description><link>https://community.gaytor.rent/topic/5100/分享-种子详情当页预览图片-不用弹出新窗口-的greasemonkey脚本</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 15:28:40 GMT</lastBuildDate><atom:link href="https://community.gaytor.rent/topic/5100.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Jun 2011 15:34:00 GMT</pubDate><ttl>60</ttl></channel></rss>