Sleazy Fork is available in English.

Lible

Make library lible.

  1. // ==UserScript==
  2. // @name Lible
  3. // @name:zh-CN Lible
  4. // @namespace Lible
  5. // @version 0.2
  6. // @description Make library lible.
  7. // @description:zh-CN Make library lible.
  8. // @author LSP
  9. // @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js
  10.  
  11. // @match https://www.javlibrary.com/cn/*
  12. // @match https://www.javlibrary.com/en/*
  13. // @match https://www.javlibrary.com/ja/*
  14.  
  15. // @match http://www.javlibrary.com/cn/*
  16. // @match http://www.javlibrary.com/en/*
  17. // @match http://www.javlibrary.com/ja/*
  18.  
  19. // @exclude */vl_newentries.php
  20. // @exclude */vl_bestrated.php
  21. // @exclude */vl_update.php
  22. // @exclude */vl_mostwanted.php
  23. // @exclude */search.php
  24. // @exclude */genres.php
  25. // @exclude */star_mostfav.php
  26. // @exclude */star_mostfav.php
  27. // @exclude */star_list.php*
  28. // @exclude */tl_bestreviews.php
  29. // @exclude */publicgroups.php
  30.  
  31. // @grant GM_xmlhttpRequest
  32. // @grant GM_getValue
  33. // @grant GM_log(message)
  34. // @grant unsafeWindow
  35. // ==/UserScript==
  36.  
  37. (function() {
  38. // Your code here...
  39. 'use strict';
  40.  
  41. var jav_sites = {
  42. jable: {
  43. favicon : "https://assetscdn.jable.tv/assets/icon/favicon-32x32.png"
  44. },
  45. avgle: {
  46. favicon : "https://avgle.com/templates/frontend/bright-blue/img/webapp-icon.png"
  47. },
  48. javmost: {
  49. favicon : "https://nonecss.com/icon/favicon-32x32.png"
  50. },
  51. solidtorrents: {
  52. favicon : "https://solidtorrents.net/favicon.png"
  53. }
  54. };
  55.  
  56. var lible_CSS = "display: inline-block; float: left; vertical-align: middle; margin-left: 5px; margin-right: 5px";
  57.  
  58. var video_id = document.querySelector('#video_id').querySelector("td.text");
  59. var topbanner = document.querySelector('div.topbanner1');
  60.  
  61. var ad = document.querySelector('div.topbanner1').querySelector('iframe');
  62. if(ad != null){
  63. ad.parentNode.removeChild(ad);
  64. }
  65.  
  66. jav_sites.jable.link = 'https://jable.tv/videos/' + video_id.innerText + '/';
  67. jav_sites.avgle.link = 'https://avgle.com/search/videos?search_query=' + video_id.innerText;
  68. jav_sites.javmost.link = 'https://www5.javmost.com/'+ video_id.innerText + '/';
  69. jav_sites.solidtorrents.link = 'https://solidtorrents.net/search?q=' + video_id.innerText;
  70.  
  71. // $('div#video_id').find("td.text").wrap("<a href='%LINK%'></a>".replace(/%LINK%/, jable_link));
  72. video_id.innerHTML = "<a href='" + jav_sites.jable.link + "'>" + video_id.innerText + "</a>";
  73.  
  74.  
  75. var banner_div = document.createElement('div');
  76. banner_div.style.cssText = "float: right";
  77. for (var key in jav_sites) {
  78. var div = document.createElement('div');
  79. div.className = 'lible';
  80. div.style.cssText = lible_CSS;
  81.  
  82. var a = document.createElement('a');
  83. a.href = jav_sites[key].link;
  84.  
  85. var img = document.createElement('img');
  86. img.src = jav_sites[key].favicon;
  87. img.width = 32;
  88. img.height = 32;
  89.  
  90. a.appendChild(img);
  91. div.appendChild(a);
  92. banner_div.appendChild(div);
  93. }
  94.  
  95. topbanner.appendChild(banner_div);
  96.  
  97. // document.getElementsByClassName('lible').style.cssText =
  98.  
  99. })();