Greasy Fork

Pastebin auto select Unlisted

auto selects unlisted when making a paste

目前为 2022-01-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         Pastebin auto select Unlisted
// @namespace    https://greasyfork.org/en/users/12725-alistair1231
// @version      0.1
// @description  auto selects unlisted when making a paste
// @author       Alistair1231
// @include      https://pastebin.com/edit/*
// @include      https://pastebin.com/clone/*
// @include      https://pastebin.com/
// @grant        none
// @license GPL-3.0
// ==/UserScript==

(function() {
    'use strict';
    document.getElementById("postform-status").value=1;
    document.getElementById("select2-postform-status-container").innerHTML="Unlisted";
    // Your code here...
})();