Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Script for Pastebin
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Salim Fadhil
- // @match https://*.com/*
- // @require https://pastebin.com/raw.php?i=4mKv46X9
- // @grant none
- // ==/UserScript==
- (function($) {
- $('#code_buttons').append('<a href="#" class="buttonsm" style="margin:0" id="GetScript">Copy Raw Script</a>');
- $('#GetScript').click(()=>{
- var URL = window.location.href;
- var HypertextTransferProtocol = 'https://' || 'http://';
- window.domain = URL.split('/')[2];
- window.raw = '/raw.php?i=';
- window.pathfile = URL.split('/')[3];
- window.removeHash = HypertextTransferProtocol + window.domain + window.raw + window.pathfile;
- let LinkFull = window.removeHash.split('#')[0];
- $('#code_buttons').append('<input type="text" value='+ LinkFull +' id="SetScript" style="width:45%;" />');
- setTimeout(()=>{
- $('#SetScript').focus();
- $('#SetScript').select();
- document.execCommand("copy");
- },10);
- setTimeout(()=>{$('#SetScript').remove();},15);
- alert('The script was copied successfully !! \n\nThis is the link : '+LinkFull);
- console.log('The script was copied successfully !!');
- const option = confirm('do you want to open this link on another window ?? ');
- if(option == true)
- {
- window.open(LinkFull , '_blank');
- }
- });
- })(window.jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement