googlud / Load la to google

// ==UserScript==
// @name         Load la to google
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://*.load.la/*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    if(!$('#google-manga').length) {
       $('#searchform').append('<button id="google-manga">Search on google</button>');
    }

    $('#google-manga').click(function(event) {
       event.preventDefault();

        location.href = 'https://www.google.com/search?q=hentai2read ' + $('.index_box h2').first().find('a').last().text()
    });

})();