Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://prnt.sc/dicpic
- // @grant unsafeWindow
- // ==/UserScript==
- (function() {
- 'use strict';
- function generateId(length) {
- const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
- let result = '';
- for (let i = 0, randNum; i < length; i++) {
- randNum = Math.floor(Math.random() * chars.length);
- result += chars.charAt(randNum);
- }
- return result;
- }
- const button = document.createElement("button");
- button.innerHTML = "Next dickpick...";
- button.onclick = function () {
- unsafeWindow.location.href = `https://prnt.sc/${generateId(6)}`
- }
- unsafeWindow.document.body.prepend(button);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement