Coder Social home page Coder Social logo

candypot's Introduction

Candy Pot 糖罐

这里是一罐糖, 用来喂猴

这里有一些脚本,

油猴脚本

运行于 Tampermonkey.

(点击图片以安装)

  • Bibibili 优化
    • 实在受不了 B 站这个垃圾 UI 了,
      写了个简单的脚本 按照我自己的口味 处理页面内容
    • 去掉页面 Header 中的无用入口
    • 去掉首页轮播
    • 去掉直播推荐
    • 去掉少量广告
  • 小黑盒优化
    • 不让复制粘贴内容是吧, 非得让下 APP 是吧?
  • Label Studio 优化
    • Label Studio 自带的快捷键都什么臭鱼烂虾
    • 给 Label Studio 加一点 真正有用 的快捷键
    • (所有快捷键仅针对图片标注模式)
      • Alt + [1-9] 快速选择标注标签
      • Alt + C 隐藏和显示所有区域
      • Alt + S 保存
      • Alt + Q 上一张图片
      • Alt + W 下一张图片
      • 右键图片 撤销
      • Alt + I AI 辅助推理
        需要正确配置 Label Studio Autopilot
        (默认发送请求到 localhost:39270,
        如果需要调整 Label Studio Autopilot 服务器地址,
        可以在浏览器控制台运行 pot.url = "新地址")
  • PTable 优化
    • 广告再见

单行脚本

至少在桌面端 Chrome 浏览器下, 这些脚本可以直接保存为书签, 然后可以直接点击运行.

  • 显示星号密码
    • 将页面上的 <input type="password"> 修改为 <input type"text">
    • javascript:"use strict";!function(){for(var t=document.getElementsByTagName("input"),e=0;e<t.length;e++)"password"===t[e].getAttribute("type")&&t[e].setAttribute("type","text")}();
  • 解除网页限制
    • 可解除部分页面上不允许复制的限制
    • javascript:"use strict";!function(){var t=function(t){t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation()};["copy","cut","contextmenu","selectstart","mousedown","mouseup","keydown","keypress","keyup"].forEach(function(e){document.documentElement.addEventListener(e,t,{capture:!0})}),alert("解除限制成功啦!")}();
  • 网页自由编辑
    • 让页面变得像 Word 一样可被自由编辑
    • javascript:"use strict";!function(){"true"===document.body.getAttribute("contenteditable")?(document.body.setAttribute("contenteditable",!1),alert("网页不能编辑啦!")):(document.body.setAttribute("contenteditable",!0),alert("网页可以编辑啦!"))}();
  • 复制 B 站纯净分享链接 (源码)
    • 尝试将当前 B 站页面不带任何追踪参数 (URL 的 query 参数) 的链接复制到剪切板
    • 使用 JavaScript Compressor 压缩
    • B 站部分页面的定位或传参基于 query 参数, 抹掉后会导致访问的页面与当前页面不同. (比如拜年祭页面, 比如搜索结果页面) 出现此情况请手动复制处理 URL
    • javascript:"use strict";!function(){let i=window.location.protocol+"//"+window.location.host+window.location.pathname;if(!i.includes("bilibili.com"))return;let t=document.title;t.endsWith("_哔哩哔哩_bilibili")&&(t=t.slice(0,-14)),navigator.clipboard.writeText(`${t} ${i}`).finally((()=>{}))}();

(前面 3 个脚本忘了从什么地方转载的了, 不是我自己写的)

改动记录

Bibibili 优化

  • 0.8.0
    • 移除更多标题栏广告
  • 0.7.0
    • 提高搜索栏在未选中状态下的透明度
  • 0.6.0
    • 现在会清理 稍后再看 页面的标题栏
  • 0.5.1
    • 修复错误
  • 0.5.0
    • 优化清理代码
    • 追加清理项
  • 0.4.0
    • 清理方式变为仅隐藏 dom 节点, 而不再直接移除, 避免 B 站的 Vue 实例运行出现问题
    • 现在会移除 AdBlock 提示
    • 不再隐藏动态按钮

小黑盒优化

  • 0.1.0
    • 允许复制文字和图片内容
    • 隐藏 APP 下载按钮

B 站纯净分享链接

  • 0.2.0
    • 现在复制出的链接会包含 URL 协议部分
  • 0.1.0
    • 初步实现功能

Label Studio 优化

  • 0.3.0
    • 增加 AI 辅助推理快捷键
  • 0.2.0
    • 增加鼠标右键快捷键
    • 新增快捷键说明
  • 0.1.0
    • 增加键鼠快捷键

PTable 优化

  • 去除页面顶部广告

candypot's People

Contributors

firokotaku avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.