Карта сайта

Это автоматически сохраненная страница от 18.04.2013. Оригинал был здесь: http://2ch.hk/b/res/46685022.html
Сайт a2ch.ru не связан с авторами и содержимым страницы
жалоба / abuse: admin@a2ch.ru

Чтв 18 Апр 2013 14:57:00
Посоны, подскажите дополнение для фурифокса для вывода превьюшек изображений на рыгхосте. С меня как обычно.
инфибо: вишмастер


Чтв 18 Апр 2013 14:59:01
.javascript:($(".file_link").each(function(){$(this).html(&amp;#39;<img src="&amp;#39;+$(this).attr(&amp;#39;href&amp;#39;)+&amp;#39;/thumb.png"/>&amp;#39; )}))()

Чтв 18 Апр 2013 15:00:32
>>46685022
в /g тред с подробным описанием есть

Чтв 18 Апр 2013 15:00:47
>>46685121
Вставляю в адресную строку, нажимаю ентер, ничего не происходит.

Чтв 18 Апр 2013 15:01:38
https://userscripts.org/scripts/show/119939

Чтв 18 Апр 2013 15:01:57
>>46685206
в блокнот вставь и положи в папку фаерфокса

Чтв 18 Апр 2013 15:10:02
Полоожил, браузер перезапустил, ничего не изменилось.

Чтв 18 Апр 2013 15:17:28
Ставишь Greasemonkey и пилишь туда этот скрипт:

// ==UserScript==
// @name rghost-thumbs
// @description rghost.ru thumbs with direct download option for search,tags and files pages.
// @version 1.0.1.8
// @namespace VIP
// @include http://rghost.net/files?*
// ==/UserScript==

(function() {
// DIRECT_DOWNLOAD_LINK constant:
// true - use AJAX to get direct download links
// false - only adds thumbnails; no direct download link added
const DIRECT_DOWNLOAD_LINK = true;

// DOWNLOAD_LINK_SEPARATE constant:
// true - place download link near filename
// false - do not add additional links, but replace address in filename link
const DOWNLOAD_LINK_SEPARATE = true;

const d = ((typeof unsafeWindow === "object") ? unsafeWindow : window).document;
if (!d) return;

function remove(node) {if (node) node.parentNode.removeChild(node);}
function $text(text) {return d.createTextNode(text);}
function $elem(tag) {return d.createElement(tag);}
function $attr(el, attrs) {
for (var key in attrs) {
if (key == &amp;#39;html&amp;#39;) {el.innerHTML = attrs[key]; continue}
if (key == &amp;#39;text&amp;#39;) {el.textContent = attrs[key]; continue}
if (key == &amp;#39;value&amp;#39;) {el.value = attrs[key]; continue}
el.setAttribute(key, attrs[key]);
}
return el;
}

function putcss (css) {
d.getElementsByTagName(&amp;#39;head&amp;#39;)[0].appendChild($attr($elem(&amp;#39;style&amp;#39;), {&amp;#39;type&amp;#39;: &amp;#39;text/css&amp;#39;, &amp;#39;text&amp;#39;: css}));
}

function ajaxLoad(addr, trycount, doneCallback, failCallback) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status == 200) doneCallback(xhr.responseText); // everything went good
else {
if (trycount &amp;&amp; trycount > 1)
ajaxLoad(addr, trycount-1, doneCallback, failCallback);
else failCallback();
}
}
};
xhr.open(&amp;#39;GET&amp;#39;, addr, true);
xhr.send(null);
}

function addThumb(node) {
const title = node.title;
if (!title) return;
const match = title.match(/\.([^.]*)$/);
if (!match) return
const ext = match[1];
if (!ext) return;
switch(ext.toLowerCase()) {
case &amp;#39;jpg&amp;#39;:
case &amp;#39;jpeg&amp;#39;:
case &amp;#39;gif&amp;#39;:
case &amp;#39;png&amp;#39;:
const link = $attr($elem(&amp;#39;a&amp;#39;), { &amp;#39;href&amp;#39;: node.href+&amp;#39;/image.png&amp;#39; });
link.appendChild($attr($elem(&amp;#39;img&amp;#39;), { &amp;#39;src&amp;#39;: node.href+&amp;#39;/thumb.png&amp;#39; }));
node.parentNode.appendChild(link);
}
if (DIRECT_DOWNLOAD_LINK) {
const status = $attr($elem(&amp;#39;img&amp;#39;), { &amp;#39;src&amp;#39;: WAITIMG, &amp;#39;class&amp;#39;: &amp;#39;vip_status&amp;#39; });
node.parentNode.insertBefore(status, node.nextElementSibling);
ajaxLoad(node.href, 3,
function(text) {
const result = text.match(new RegExp(&amp;#39;\\shref="([^"]*\\.&amp;#39;+ext+&amp;#39;)"&amp;#39;, &amp;#39;i&amp;#39;));
if (result &amp;&amp; result[1]) {
if (DOWNLOAD_LINK_SEPARATE)
node.parentNode.insertBefore($attr($elem(&amp;#39;a&amp;#39;), { &amp;#39;href&amp;#39;: result[1], &amp;#39;text&amp;#39;: &amp;#39;download&amp;#39;, &amp;#39;class&amp;#39;: &amp;#39;file_link vip_download&amp;#39; }), status.nextElementSibling);
else $attr(node, { &amp;#39;href&amp;#39;: result[1] });
$attr(status, { &amp;#39;src&amp;#39;: DONEIMG });
}
else {
$attr(status, { &amp;#39;src&amp;#39;: FAILIMG });
}
},
function() {
$attr(status, { &amp;#39;src&amp;#39;: FAILIMG });
});
}
}

const WAITIMG = &amp;#39;data:image/gif;base64,R0lGODlhEAAPAIQAAP%2F%2F%2FwAAANra2tDQ0Orq6gYGBgAAAC4uLoKCgmBgYLq6uiIiIkpKSoqKimRkZL6%2BviYmJgQEBE5OTubm5tjY2PT09Dg4ONzc3PLy8ra2tqCgoMrKyu7u7v%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FyH%2FC05FVFNDQVBFMi4wAwEAAAAh%2BQQJCwAfACwAAAIAEAALAAAFLeAnjmRpnmg6Cqwgtu4HCwQxiEN9f7nd7z%2BcLsjTCX3Gou04aDZfLShLRaWGAAAh%2BQQJCwAfACwAAAIAEAALAAAFKOAnjmT5FUFQmGZwHAFburBM0rEt4rpovIbe53cI9ohGHVJYMBhWvRAAIfkECQsAHwAsAAACABAACwAABTrgJ45kaX5LECwmkiSIGDBMYCaKksi0XeI6Xu2W231mw19RZKAZiMFPk%2FFURqdVkgvGdJ5KC4OBVQoBACH5BAkLAB8ALAAAAgAQAAsAAAU04CeOZGmeUBRBZuM4jRhJUmQ6z%2BPItF3iOl7tltt9ZsNfUegjAY3I5ujJbL1ix96plFqFAAAh%2BQQJCwAfACwAAAIAEAALAAAFL%2BAnjmRpnihqLYtlThQ1iYskLSZVVRRt4yUdz3fL7XqfWjF4JAJJMJkzNVq1qKYQACH5BAkLAB8ALAAAAgAQAAsAAAU04CeOZGmeaDoS10WIrCtmmpZdGHaJuC5qm42mt%2FsQf8Fhrnj8AIXN5lMT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RlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDgtMDMtMjRUMTk6MDA6NDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24%2BCiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI%2BCiAgICAgICAgIDxkYzpmb3JtYXQ%2BaW1hZ2UvcG5nPC9kYzpmb3JtYXQ%2BCiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY%2BCjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUdUmQAAADqSURBVDiNY%2Fz%2F%2Fz8DJYCJIt20MGAqAwPDfwJ4KrIGRrQw%2BL%2Fy8QKGgotJWG0Ll01gmKA%2Fj4GBgYERpwGSW5gYDntgD1jbHYwMz33%2BoRjAgk3h%2FZ%2BYYlrscxgYGFIxxLEG4r2fqFiUuZ1BmgW7t3AaEMJ3m%2BHeTwYGXqZwBj2OEoal78OxGoDdCz8YGHiZpRkKRW4ziLMqM2z40MGw8cNqBiSvE3ZBwF01ht%2F%2FGRg2fpjL0PqiiuEelnDB6oKJBvMZ8i8kMjxleMpgdkMNKgqxOVw2AdOE%2F%2F%2F%2FI%2BOp%2FwmDqch60NMByWDgMxMAkVmJnkX0L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mRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI%2BCiAgICAgICAgIDxkYzpmb3JtYXQ%2BaW1hZ2UvcG5nPC9kYzpmb3JtYXQ%2BCiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY%2BCjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUdUmQAAACUSURBVDiNxZMxDoMwDEX%2FR8xcpifgJA0ng5N07NaNkzCF6bNQZJxCREHCkod85z%2FZjkJJOBPFKfflAJIAGUBqI9uEIGnJCIQIKJOt9dAucSBXG63m2kDC6YtQ2kJ03VUZPQGMyYD7%2BvUA32rvZj%2FcwWNe4mcH5AEBQPc9v38bO3tYPSNJvICnv2TNtdRsAv6J%2Bz%2FTBMuCUtS9gEARAAAAAElFTkSuQmCC&amp;#39;;

var items = d.evaluate(&amp;#39;//a[@class="file_link"]&amp;#39;, d.body, null, 6, null);
if (!items) return;
var i = items.snapshotLength;
if (i < 1) return;
putcss(&amp;#39;.vip_status{padding-right:2px;position:relative;top:2px;}.vip_download{padding-right:2px;}&amp;#39;);
while (i--)
addThumb(items.snapshotItem(i));
})()

Чтв 18 Апр 2013 15:19:09
>>46685246
В что блять слепые все?

Чтв 18 Апр 2013 15:19:29
javascript:($("ol%20li%20a").each(function(){$(this).html(&amp;#39;<img%20src="%20http://rghost.ru&amp;#39;+$(this).attr(&amp;#39;href&amp;#39;)+&amp;#39;/thumb.png"/>&amp;#39;)}))()

нюфаги не знают


← К списку тредов