Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Search on Nyaa button
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Add a buton to search the video on nyaa
- // @author Anon
- // @match https://www.javlibrary.com/*
- // @icon https://www.google.com/s2/favicons?domain=javlibrary.com
- // @grant none
- // @require http://code.jquery.com/jquery-3.4.1.min.js
- // ==/UserScript==
- //"https://sukebei.nyaa.si/?f=0&c=0_0&q=";
- (function() {
- 'use strict';
- $(".id").each(function () {
- console.log($(this).text());
- 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> ';
- $(this).parent().siblings('.toolbar').append(b);
- });
- $("#video_id tr .text").each(function () {
- console.log($(this).text());
- 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> ';
- $("#video_title h3").prepend(b);
- });
- })();
Add Comment
Please, Sign In to add comment