Pastebin Unblocker - Pastebin Link Açıcı

pastebin.com sitesine girildiğinde pastebinp.com sitesine otomatik yönlendirir ve orijinal linki gösterir. // Redirects pastebin.com to pastebinp.com and shows the original link.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Pastebin Unblocker - Pastebin Link Açıcı
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  pastebin.com sitesine girildiğinde pastebinp.com sitesine otomatik yönlendirir ve orijinal linki gösterir. // Redirects pastebin.com to pastebinp.com and shows the original link.
// @match        *://pastebin.com/*
// @match        *://pastebinp.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Orijinal linki sakla // Store the original link
    var originalLink = window.location.href;

    // pastebin.com sitesine girildiğinde yönlendir // Redirect from pastebin.com
    if (window.location.host === 'pastebin.com') {
        var newUrl = originalLink.replace('pastebin.com', 'pastebinp.com');
        window.location.href = newUrl;
    }

    // pastebinp.com sitesinde orijinal linki göster // Show original link on pastebinp.com
    if (window.location.host === 'pastebinp.com') {
        var linkContainer = document.createElement('div');
        linkContainer.style.position = 'fixed';
        linkContainer.style.top = '10px';
        linkContainer.style.right = '10px';
        linkContainer.style.backgroundColor = 'white';
        linkContainer.style.color = 'green';
        linkContainer.style.padding = '5px';
        linkContainer.style.border = '1px solid green';
        linkContainer.style.zIndex = '1000';
        linkContainer.style.fontFamily = 'Arial, sans-serif';
        linkContainer.style.fontSize = '12px';

        // Orijinal linki göstermek için değiştir // Modify to show the original link
        var originalLinkText = originalLink.replace('pastebinp.com', 'pastebin.com');
        var linkText = document.createElement('span');
        linkText.textContent = 'Orijinal: ' + originalLinkText;

        linkContainer.appendChild(linkText);
        document.body.appendChild(linkContainer);
    }
})();