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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
    }
})();