Greasy Fork is available in English.
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.
当前为
// ==UserScript==
// @name Pastebin Ublocker ve Pastebin Link Açıcı
// @namespace http://tampermonkey.net/
// @version 1.0
// @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 buton ekle // Add button on pastebinp.com
if (window.location.host === 'pastebinp.com') {
var button = document.createElement('button');
button.textContent = 'Orjinal Link';
button.style.position = 'fixed';
button.style.top = '10px';
button.style.left = '10px';
button.style.backgroundColor = 'green';
button.style.color = 'white';
button.style.border = 'none';
button.style.padding = '10px';
button.style.zIndex = '1000';
button.onclick = function() {
window.open(originalLink, '_blank');
};
document.body.appendChild(button);
}
})();