站点正在导入数据,暂时处于只读模式:这段时间里无法登录,也不能发帖或回复。

【油猴脚本】去除背景水印,把品葱变成2047

thphd
thphd · 2047前站长
// ==UserScript==
// @name         Pincong No BG
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.pincong.rocks/*
// @match        https://pincong.rocks/*
// @icon         https://www.google.com/s2/favicons?domain=pincong.rocks
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var div = document.createElement('style')
    div.innerHTML = `.aw-content-wrap.clearfix {background-image: none;}`
    document.body.appendChild(div)
    document.getElementsByClassName('aw-logo')[0].firstElementChild.setAttribute(
        'style',
        `background-image: url(https://2047.name/images/2049bbslogo_clipped_small_pressed.png);
        background-size: contain;
        background-repeat-x: no-repeat;`
    )
})();

品葱站长做了脚本防御,直接修改<div>的style.backgroundImage属性会把页面搞没,所以只能用<style>去override原有的style


此脚本会同时将品葱logo修改为2047

1
  1. 天下无贼
    天下无贼

    品葱通过没有www的域名也可以访问,可以再加一行:

    // @match https://pincong.rocks/*

  2. thphd
    thphd2047前站长
  3. arisu中间偏左人
    arisu

    话说品葱现在是不是已经沦落成一个需要依靠洋葱浏览器才能进入的暗网网站了.....

  4. 庆丰话
    庆丰话品葱难民君子以不强自息

    @addjapan <#171508> 我刚才试了,没有。不过我没有登录

  5. Chaospig97低端人口
    Chaospig97冲浪测试

    @addjapan <#171508> 感觉你这句话有深意,我想不明白。