Ignore style#antiClickjak to make nvd.nist.gov not-completely-blank. - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 60daafd6bf1ac4236ef765bd84ac1e4a9d8c5faf
(DIR) parent daa6309207423de8f1326e2ffb9d078267bdb3f7
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 3 Feb 2019 10:37:50
Ignore style#antiClickjak to make nvd.nist.gov not-completely-blank.
(Sigh, despite the rationale behind that change it is really not nice...
Probably all web browsers that supports CSS but do not have Javascript enabled
are affected and just a completely blank page is seen.)
Diffstat:
config/vimb/scripts.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff -r daa630920742 -r 60daafd6bf1a config/vimb/scripts.js
--- a/config/vimb/scripts.js Sun Feb 03 10:16:15 2019 +0100
+++ b/config/vimb/scripts.js Sun Feb 03 10:37:50 2019 +0100
@@ -47,6 +47,11 @@
function userscript_nvd()
{
+ ["style#antiClickjack"].forEach(function(c) {
+ document.querySelectorAll(c).forEach(function(e) {
+ e.remove();
+ });
+ });
[".vuln-change-history-container"].forEach(function(c) {
document.querySelectorAll(c).forEach(function(e) {
e.style["display"] = "block";