Nga那个伪装成word的摸鱼插件有大佬知道吗?

RealBoyK-avatar

RealBoyK

马克一下
infamousRobb-avatar

infamousRobb

greasyfork上有 叫usable nga excel
Aarondp1430-avatar

Aarondp1430

[url=https://greasyfork.org/zh-CN/scripts/393991-nga%E4%BC%98%E5%8C%96%E6%91%B8%E9%B1%BC%E4%BD%93%E9%AA%8C]是Excel[/url]
前提是要先装油猴
Foreigncrises-avatar

Foreigncrises

我也找不到

自己写了个

将就着用吧
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.php?fid=624&rand=151
// @grant none
// ==/UserScript==
history.pushState = wr('pushState');
(function() {
'use strict';
var CKEY = 67;
var isDouble = 0;
init();
window.onpopstate = () => {
setTimeout(function () {
addImg();
},1000)
}
if(localStorage.getItem('ngaNice')) {
install();
}

document.onkeyup = function (ev) {
if(ev.keyCode === CKEY) {
if(isDouble === 1) {
if(localStorage.getItem('ngaNice')) {
remove();
}else {
install();
}
}else {
isDouble ++;
}
clearTimeout(timer);
var timer = setTimeout(function () {
isDouble = 0;
}, 500)
}
}
// Your code here...
})();
function install () {
localStorage.setItem('ngaNice', 1);
addImg();
document.body.classList.add('ngaNice');
}
function remove () {
localStorage.removeItem('ngaNice');
const img = document.querySelector('#ngaNiceHeaderImg');
if(img) {
img.parentNode.removeChild(img);
}

document.body.classList.remove('ngaNice');
}
function addImg () {
if(!localStorage.getItem('ngaNice')) {
return;
}
var headerImg = "https://s1.ax1x.com/2020/09/01/dx0OT1.png";
var imgBoxEl = document.createElement("div");
imgBoxEl.id = 'ngaNiceHeaderImg';
imgBoxEl.style.cssText="width:100%;height:134px;position:fixed;top:0;left:0;background:url(" + headerImg + ") no-repeat left top !important";
document.querySelector("#mc").insertBefore(imgBoxEl, document.querySelector("#m_threads"));
}
function wr (type) {
var orig = history[type];
return function() {
var e = new Event(type);
e.arguments = arguments;
window.dispatchEvent(e);
// 注意事件监听在url变更方法调用之前 也就是在事件监听的回调函数中获取的页面链接为跳转前的链接
var rv = orig.apply(this, arguments);
setTimeout(function () {
addImg();
},1000)
return rv;
};
};

function init () {
var styles = document.createElement('style');
styles.innerHTML = `
.ngaNice * {
background:#fff !important;
}
.ngaNice #mainmenu {display:none}
.ngaNice #m_pbtntop {display:none}
.ngaNice #sub_forums_c {display:none}
.ngaNice #b_nav {display:none}
.ngaNice #mc {
padding-top:135px;
}
.ngaNice #sub_forums {
display:flex;
}
.ngaNice #sub_forums .c {
float:none;
}
.ngaNice #sub_forums .c .a {margin:0;}
.ngaNice #sub_forums .c .a .b {display:flex;height:20px;line-height:20px;}
.ngaNice #sub_forums .c .a .b a {width:80px;overflow:hidden;}
.ngaNice #sub_forums .c .a .b input[type=checkbox]{margin-top: 4px;}
.ngaNice #mainmenu {
margin-bottom:0 !important;
}
.ngaNice #m_nav {
border:1px solid #cacaca;
border-bottom:none;
height:37px;
}
.ngaNice #m_nav * {
line-height:37px !important;
}
.ngaNice #m_nav .nav .nav_root_c .nav_root, .ngaNice #m_nav .nav .nav_link {
height:auto;
border:none;
line-height:1;
box-shadow:none;
color:#1a3959;
font-size:12px;
margin:0;
}
.ngaNice .nav_root {
color:#666!important;
}
.ngaNice .invert {
color:#666!important;
}
.ngaNice .replies {
color:#666 !important;
}
.ngaNice .c1 {
border-left:none !important;
font-size:6px;
width:24px !important;
}
.ngaNice #toptopics {
display:none !important;
}
.ngaNice table {
border-collapse: collapse;
box-shadow:none !important;
}
.ngaNice td {
border:1px solid #dcdcdc;
line-height:0 !important;
}
.ngaNice #m_posts {
box-shadow:none;
}
.ngaNice .stdbtn td {line-height:3em !important;}
.overlay {height:auto !important;}
`;
document.body.appendChild(styles);
}

用户包括写个正则 如图
[img]https://img.nga.178.com/attachments/mon_202101/08/-7Q5-f29iKhT1kSeq-at.jpg[/img]


连续按2下 c 键 可以来回切换

效果如下

[img]https://img.nga.178.com/attachments/mon_202101/08/-7Q5-grv5K1wT3cSsg-cc.jpg[/img]
Jayyy-avatar

Jayyy

我猜你在说的是这个[s:ac:哭笑]
[url]https://github.com/binbyu/Reader[/url]
Die_go999-avatar

Die_go999

[quote][pid=483547996,25018506,1]Reply[/pid] Post by [uid=1304437]yh583843162[/uid] (2021-01-08 10:05):

我也找不到

自己写了个

将就着用吧
[code]
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.[/quote]牛逼了大哥
Frost 霜-avatar

Frost 霜

[quote][pid=483547996,25018506,1]Reply[/pid] Post by [uid=1304437]yh583843162[/uid] (2021-01-08 10:05):

我也找不到

自己写了个

将就着用吧
[code]
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.[/quote]大佬牛逼!!
hotjb-avatar

hotjb

居然有这种牛X的插件
kyaki-avatar

kyaki

油猴子里面下
niceteal-avatar

niceteal

[quote][pid=483547996,25018506,1]Reply[/pid] Post by [uid=1304437]yh583843162[/uid] (2021-01-08 10:05):

我也找不到

自己写了个

将就着用吧
[code]
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.[/quote]这反而更像某种不正经网站啊朋友[s:ac:哭笑]
Latoni-avatar

Latoni

有没有vscode的nga插件[img]http://img.nga.178.com/attachments/mon_201209/14/-47218_5052bc4cc6331.png[/img]
hart351-avatar

hart351

[url]https://github.com/kisshang1993/NGA-BBS-Script[/url]
𝓢𝓲𝓵𝓸𝓷 𝓥𝓸𝓷 𝓛𝓪𝓶𝓹𝓮𝓻𝓸𝓾𝓰𝓮-avatar

𝓢𝓲𝓵𝓸𝓷 𝓥𝓸𝓷 𝓛𝓪𝓶𝓹𝓮𝓻𝓸𝓾𝓰𝓮

差不多得了[img]http://img.nga.178.com/attachments/mon_201209/14/-47218_5052bca2a2f43.png[/img]
altafaria-avatar

altafaria

[quote][pid=483547996,25018506,1]Reply[/pid] Post by [uid=1304437]yh583843162[/uid] (2021-01-08 10:05):
我也找不到
自己写了个
将就着用吧
......[/quote]这就是码农嘛[img]http://img.nga.178.com/attachments/mon_201209/14/-47218_5052bc80140e3.png[/img]