Guest User

Seach on Nyaa button script

a guest
Feb 3rd, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Search on Nyaa button
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Add a buton to search the video on nyaa
  6. // @author       Anon
  7. // @match        https://www.javlibrary.com/*
  8. // @icon         https://www.google.com/s2/favicons?domain=javlibrary.com
  9. // @grant        none
  10. // @require      http://code.jquery.com/jquery-3.4.1.min.js
  11. // ==/UserScript==
  12. //"https://sukebei.nyaa.si/?f=0&c=0_0&q=";
  13. (function() {
  14.     'use strict';
  15.     $(".id").each(function () {
  16.         console.log($(this).text());
  17.         var b ='<a target="_blank" href="https://sukebei.nyaa.si/?f=0&c=0_0&q='+$(this).text()+'"><img src="https://sukebei.nyaa.si/static/favicon.png"></a> ';
  18.         $(this).parent().siblings('.toolbar').append(b);
  19.     });
  20.     $("#video_id tr .text").each(function () {
  21.         console.log($(this).text());
  22.         var b ='<a target="_blank" href="https://sukebei.nyaa.si/?f=0&c=0_0&q='+$(this).text()+'"><img src="https://sukebei.nyaa.si/static/favicon.png"></a> ';
  23.         $("#video_title h3").prepend(b);
  24.  
  25.     });
  26.    
  27. })();
Add Comment
Please, Sign In to add comment