文章
江湖

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

thphd  ·  2021年9月27日 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. 天下无贼  

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

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

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

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

  4. 庆丰话   品葱难民君子以不强自息
  5. Chaospig97 低端人口
    Chaospig97   冲浪测试
    内容已隐藏
    内容已被作者本人或管理员隐藏。 如有疑问,请点击菜单按钮,查看管理日志以了解原因。