Advertisement
Guest User

https://prnt.sc/ dickpick finder без говняка

a guest
Mar 21st, 2021
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         New Userscript
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://prnt.sc/dicpic
  8. // @grant        unsafeWindow
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.     function generateId(length) {
  14.         const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
  15.         let result = '';
  16.    
  17.         for (let i = 0, randNum; i < length; i++) {
  18.           randNum = Math.floor(Math.random() * chars.length);
  19.           result += chars.charAt(randNum);
  20.         }
  21.    
  22.         return result;
  23.     }
  24.  
  25.     const button = document.createElement("button");
  26.     button.innerHTML = "Next dickpick...";
  27.     button.onclick = function () {
  28.        unsafeWindow.location.href = `https://prnt.sc/${generateId(6)}`
  29.     }
  30.    
  31.     unsafeWindow.document.body.prepend(button);
  32. })();
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement