Sleazy Fork is available in English.

Direct Image Link E621/926 Silent

Рипалка ссылок в результатах поиска, для менеджеров закачки (тихий вариант)

  1. // ==UserScript==
  2. // @name Direct Image Link E621/926 Silent
  3. // @version 2021.09.24.1
  4. // @description:en Images direct links ripper for pages with search results (silent version)
  5. // @description Рипалка ссылок в результатах поиска, для менеджеров закачки (тихий вариант)
  6. // @include http*://e621.net/posts*
  7. // @include http*://e926.net/posts*
  8. // @author Rainbow-Spike
  9. // @namespace https://greasyfork.org/users/7568
  10. // @homepage https://greasyfork.org/ru/users/7568-dr-yukon
  11. // @icon https://www.google.com/s2/favicons?domain=e621.net
  12. // @grant GM_setClipboard
  13. // @run-at document-end
  14. // ==/UserScript==
  15.  
  16. var prevs = document . querySelectorAll ( '.post-preview' ),
  17. txt = document . createTextNode ( '' ),
  18. x, src, md5, link, name,
  19. lever = 0; // 1 - pic source, 0 - file name
  20.  
  21. if ( prevs != null ) {
  22. for ( x = 0; x < prevs . length; x++ ) {
  23. src = prevs [ x ] . getAttribute ( 'data-file-url' );
  24. md5 = src . split ( '/' );
  25. name = md5 [ md5 . length - 1 ];
  26. md5 = name . split ( '.' ) [ 0 ];
  27.  
  28. txt . textContent += ( lever ? src : name ) + '\n'; /* select link */
  29.  
  30. link = document . createElement ( 'a' ); /* thumb link */
  31. link . setAttribute ( 'href', src );
  32. link . innerHTML = md5;
  33. link . style = 'word-wrap: anywhere;';
  34. prevs [ x ] . appendChild ( link );
  35.  
  36. }
  37. GM_setClipboard ( txt . textContent, "text" );
  38. }