X IAFD - SEARCH TERMS REVEAL v.11

Add the search term in the top of the results page

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         X IAFD - SEARCH TERMS REVEAL v.11
// @author       janvier56
// @namespace    https://greasyfork.org/fr/users/7434-janvier56
// @description  Add the search term in the top of the results page
// @version      11
// @include      http://www.iafd.com/results.asp?*
// @include      https://www.iafd.com/results.asp?*
// @include      https://www.iafd.com/results.rme/*
// @grant           none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @license     unlicense
// @icon         https://external-content.duckduckgo.com/ip3/www.iafd.com.ico

// ==/UserScript==
// IF you use NoScript enable : dzwnexfz53ofs.cloudfront.net

// FROM : http://stackoverflow.com/questions/540851/jquery-change-element-type-from-hidden-to-input?rq=1
$(document).ready(function(){
  $(".col-xs-12>form>input:first-of-type[type='hidden']").each(function(){
    var name = $(this).attr('name'); // grab name of original
    var value = $(this).attr('value'); // grab value of original
    /* create new visible input */
    var html = $('<input type="text" name="'+name+'" value="'+value+'" />');
    html.css({"color":"gold", "position": "fixed !important" , "top": "40px !important", "z-index":"5000 !important", "padding":"0 2px 1px" , "background-color":"black" , "font-size":"20px" , "border":"1px solid gray" , "border-radius":"10px" ,"height":"30px" , "line-height":"20px" , "text-align":"center" });

    $(this).before(html).remove(); // add new, then remove original input

    $(".col-xs-12>h1").css({"margin-top":"0 !important" });
  });
});