您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name findImg in en // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match *.en.cx/gameengines/encounter/play/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @grant none // ==/UserScript== (function() { 'use strict'; $('head').append('<style>'+ '.imgWrap{position:relative;}'+ '.imgWrap .imgLnk{background:#fff;padding:0 5px;position: absolute;z-index: 10000;left: 0;top: 0;opacity: .3;}'+ '.imgWrap .imgLnk:hover{opacity: 1;}'+ '.imgWrap .imgLnk a{color:#000; font-size:12px;}'+ '</style>'); var intervalID = window.setTimeout(imgLnkAdd, 3000); function imgLnkAdd(){ let arImg=$('.content #task img'); $.each(arImg, function( index, img ) { img=$(img); let div='<div class="imgWrap"></div>'; let src=img.prop('src'); let block='<div class="imgLnk" >'+ '<a href="'+src+'" target="_blank">Ссылка на картинку</a><br>'+ '<a href="https://www.google.com/searchbyimage?image_url='+(src)+'" target="_blank">Искать в гугле</a><br>'+ '<a href="https://yandex.ru/images/search?rpt=imageview&cbird=1&img_url='+encodeURIComponent(src).replace(/%20/g,'+')+'" target="_blank">Искать в яндекс</a>'+ '</div>' $(div).insertBefore(img).append(img).append(block); }); } })();