NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name eksi-googleda-ara // @namespace https://openuserjs.org/users/asyard // @version 0.1.4 // @description Ekşi Sözlük'teki 'araştır' linkini geri getirir. Google'da arar. // @author asyard // @match https://eksisozluk.com/* // @match https://*.eksisozluk.com/* // @grant none // @license MIT // @require https://code.jquery.com/jquery-3.5.1.min.js // ==/UserScript== /* jshint -W097 */ 'use strict'; // Your code here... var $ = window.jQuery; function getGoogleSearchLink() { return "https://www.google.com.tr/search?q="; } function getHeader() { var header = ""; if($("h1").data('title') != undefined) { header = $("h1").data('title'); //.replace(/'/g, ''').replace(/\+/g, '%2B'); } else { header = $("h1").text(); } return header; } if($('.sub-title-menu') != undefined ) { $($('.sub-title-menu')[0]).append('<a href="' + getGoogleSearchLink() + encodeURIComponent(getHeader()) + '" target="_blank">google\'da ara</a>'); }