// ==UserScript== // @name worse edge // @version 1.0.1 // @description worse edge // @author lemon_qwq // @match *://*/* // @icon https://cdn.luogu.com.cn/upload/image_hosting/3axapabh.png // @grant none // ==/UserScript== (function(){ 'use strict'; setTimeout(function() { if(window.location.hostname!='player.bilibili.com'){ //Cookies 初始化函数 function setCookieIfNotExists(name, value) { if (!document.cookie.split('; ').map(cookie => cookie.split('=')[0]).includes(name)) { document.cookie = `${name}=${encodeURIComponent(value)};path=/;expires=${new Date(Date.now()+365*24*60*60*1000).toUTCString()}` } } //获取 Cookies 模块 function getCookie(name) { const match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); return match ? decodeURIComponent(match[2]) : null } console.log(getCookie('sid')); console.log(getCookie('sid.sig')); const element=document.querySelector('html'); element.remove(); const newDiv = document.createElement('html'); newDiv.innerHTML = '