tampermonkey 脚本使用

创建
阅读 1647

tampermonkey 允许在自定义添加脚本,可以在网页加载之前执行

微信读书全宽展示

// ==UserScript==
// @name         微信读书全宽版
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://weread.qq.com/web/reader/*
// @grant        GM_addStyle
// ==/UserScript==


(function() {
    'use strict';
    GM_addStyle(
    `.readerContent .app_content{max-width:unset !important}
    .readerTopBar{max-width:unset !important}
    .wr_canvasContainer{width:100% !important}
    .readerControls{left:auto;right:10px}
    .readerCatalog{left:auto;right:100px;}`
    )
})();

https://gist.github.com/ryanlid/fefbe4801cf68ffc31e8fd9b71620b0c

本文链接 https://www.yidiankuaile.com/post/use-tampermonkey

最后更新
留言
0 条留言