• 06-10-2024, 23:40:49
    #1
    Merhaba aynı sekmede kalarak 1'e basınca bir sayfayı 2'ye basınca diğer sayfayı açacak bir eklenti arıyorum. Bildiğiniz böyle bir eklenti var mı?

    Şimdiden teşekkürler.
  • Kabul Edilen Cevap
    • 1 Beğeni
      chromede tampermonkey ekletisin kur bunu script olarak ekle

      // ==UserScript==
      // @name         Key Press Redirect
      // @namespace    http://tampermonkey.net/
      // @version      1.1
      // @description  Redirect to specific websites only when specific keys are pressed
      // @author       ChatGPT
      // @match        *://*/*
      // @grant        none
      // ==/UserScript==
      
      (function() {
          'use strict';
      
          // Klavye tuşlarına basılma olayını dinle
          document.addEventListener('keydown', function(event) {
              // '1' tuşuna basıldığında turkpaneli.com'a git
              if (event.key === '1') {
                  window.location.href = "https://turkpaneli.com";
              }
      
              // '2' tuşuna basıldığında hotmail.com'a git
              if (event.key === '2') {
                  window.location.href = "https://hotmail.com";
              }
          });
      })();
  • 06-10-2024, 23:45:40
    #2
    Bu cevap, konu sahibi tarafından kabul edilebilir bir cevap olarak işaretlendi.
    chromede tampermonkey ekletisin kur bunu script olarak ekle

    // ==UserScript==
    // @name         Key Press Redirect
    // @namespace    http://tampermonkey.net/
    // @version      1.1
    // @description  Redirect to specific websites only when specific keys are pressed
    // @author       ChatGPT
    // @match        *://*/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        // Klavye tuşlarına basılma olayını dinle
        document.addEventListener('keydown', function(event) {
            // '1' tuşuna basıldığında turkpaneli.com'a git
            if (event.key === '1') {
                window.location.href = "https://turkpaneli.com";
            }
    
            // '2' tuşuna basıldığında hotmail.com'a git
            if (event.key === '2') {
                window.location.href = "https://hotmail.com";
            }
        });
    })();
  • 06-10-2024, 23:55:23
    #3
    kodu düzelttim hocam yanlış yazmişim.
  • 07-10-2024, 00:28:35
    #4
    shms adlı üyeden alıntı: mesajı görüntüle
    chromede tampermonkey ekletisin kur bunu script olarak ekle

    // ==UserScript==
    // @name         Key Press Redirect
    // @namespace    http://tampermonkey.net/
    // @version      1.1
    // @description  Redirect to specific websites only when specific keys are pressed
    // @author       ChatGPT
    // @match        *://*/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        // Klavye tuşlarına basılma olayını dinle
        document.addEventListener('keydown', function(event) {
            // '1' tuşuna basıldığında turkpaneli.com'a git
            if (event.key === '1') {
                window.location.href = "https://turkpaneli.com";
            }
    
            // '2' tuşuna basıldığında hotmail.com'a git
            if (event.key === '2') {
                window.location.href = "https://hotmail.com";
            }
        });
    })();
    Teşekkür ederim hocam istediğim gibi oldu. Elinize sağlık.