您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Рипалка ссылок в результатах поиска, для менеджеров закачки
当前为
// ==UserScript== // @name Direct Image Link E621/926 // @version 2021.01.16.1 // @description:en Images direct links ripper for pages with search results // @description Рипалка ссылок в результатах поиска, для менеджеров закачки // @include http*://e621.net/posts // @include http*://e621.net/posts?tags=* // @include http*://e926.net/posts // @include http*://e926.net/posts?tags=* // @author Rainbow-Spike // @namespace https://greasyfork.org/users/7568 // @homepage https://greasyfork.org/ru/users/7568-dr-yukon // @icon https://www.google.com/s2/favicons?domain=e621.net // @grant none // @run-at document-end // ==/UserScript== var artic = document.querySelectorAll ( '.post-preview' ), span = document.createElement ( 'span' ), mesto = document.querySelector ( '#top' ), x, src, md5, link, name, lever = 0; // 1 - pic source, 0 - file name // SELECT function selectblock ( name ) { var rng = document.createRange ( ); rng.selectNode (name); var sel = window.getSelection ( ); sel.removeAllRanges ( ); sel.addRange ( rng ); } if ( artic != null ) { mesto.innerHTML += '<div align = "center"><b>From <a href="https://comicslate.org" target="_blank">comicslate.org</a> with love.</b></div>'; for ( x = 0; x < artic.length; x++ ) { src = artic [ x ].getAttribute ( 'data-file-url' ); md5 = src.split ( '/' ); name = md5 [ md5.length - 1 ]; md5 = name.split ( '.' )[0]; span.innerHTML += '<a href = "' + src + '">' + ( lever ? src : name ) + '</a><br>'; /* select link */ link = document.createElement ( 'a' ); /* thumb link */ link.setAttribute ( 'href', src ); link.innerHTML = md5; link.style = 'word-wrap: anywhere;'; artic [ x ].appendChild ( link ); } span.style = 'display: inline-block; column-gap: 5px; column-count: 3; max-height: 200px; overflow: auto;'; mesto.appendChild ( span ); selectblock ( span ); }