Greasy Fork

Easy Cookie Manager

A manager that helps you to set cookies instantly!

目前为 2021-02-05 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/421266/897842/Easy%20Cookie%20Manager.js

// ==UserScript==
// @name         Easy Cookie Manager
// @namespace    http://tampermonkey.net/
// @version      a0.1
// @description  A manager that helps you to set cookies instantly!
// @description  To use Say setCookie(Name,value,domain,path,expires);
// @description  If you don't want one of them to be used, do "" (NO SPACE)
// @author       You
// @match        *://*.*/*
// @grant        none
// ==/UserScript==

alert("This userscript Uses Easy Cookie Manager. Search up on greasyfork.org.");
function setCookie(name,value,domain,path,expires) {
    document.cookie=name+"="+value+"; domain="+domain+"; path="+path+"; expires="+expires;
}