Skip to content

Instantly share code, notes, and snippets.

@ipid
Last active October 17, 2022 04:42
Show Gist options
  • Save ipid/933b0f3a589fff6cc457ead0600486ef to your computer and use it in GitHub Desktop.
Save ipid/933b0f3a589fff6cc457ead0600486ef to your computer and use it in GitHub Desktop.
隐藏只命中作者的论文,隐藏非 CCF A、CCF B 的论文
// ==UserScript==
// @name dblp 按条件隐藏论文
// @namespace https://ipidkun.com
// @version 0.1
// @description 隐藏只命中作者的论文,隐藏非 CCF A、CCF B 的论文
// @author ipid
// @match *://dblp.org/*
// @match *://*.dblp.org/*
// @match *://dblp.uni-trier.de/*
// @match *://*.dblp.uni-trier.de/*
// @grant none
// ==/UserScript==
(function() {
'use strict'
setInterval(() => {
const papers = document.querySelectorAll('li.entry')
for (const paper of papers) {
const title = paper.querySelector('span.title')
if (title.querySelector('mark') == null) {
paper.style.opacity = '10%'
}
}
}, 1000)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment