From e60b043870abf618d14759c0cb8a2726ecfa64da Mon Sep 17 00:00:00 2001 From: Moebius-Strip Date: Tue, 25 Feb 2014 13:05:05 -0500 Subject: [PATCH 1/4] Chrome fix * Should fix things for Chrome users that don't use Tampermonkey. --- better-better-booru.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/better-better-booru.user.js b/better-better-booru.user.js index c523c87..596a02a 100644 --- a/better-better-booru.user.js +++ b/better-better-booru.user.js @@ -22,6 +22,9 @@ function injectMe() { // This is needed to make this script work in Chrome. * Use the "BBB Settings" button in the menu instead. */ + if (!Danbooru) + return; + /* Global Variables */ var bbb = { // Container for script info. cache: { @@ -3757,7 +3760,7 @@ function injectMe() { // This is needed to make this script work in Chrome. } // End of injectMe. // Load script into the page so it can access Danbooru's Javascript in Chrome. Thanks to everyone else that has ever had this problem before... and Google which found the answers to their questions for me. -if (document.body && Danbooru) { +if (document.body) { var script = document.createElement('script'); script.type = "text/javascript"; script.appendChild(document.createTextNode('(' + injectMe + ')();')); From 0165768b646c41160c5dc6085c2e0b349c64ead4 Mon Sep 17 00:00:00 2001 From: Moebius-Strip Date: Tue, 25 Feb 2014 13:07:52 -0500 Subject: [PATCH 2/4] Version 6.2.1 --- better-better-booru.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better-better-booru.user.js b/better-better-booru.user.js index 596a02a..c01b237 100644 --- a/better-better-booru.user.js +++ b/better-better-booru.user.js @@ -3,7 +3,7 @@ // @namespace http://userscripts.org/scripts/show/100614 // @author otani, modified by Jawertae, A Pseudonymous Coder & Moebius Strip. // @description Several changes to make Danbooru much better. Including the viewing of loli/shota images on non-upgraded accounts and more. -// @version 6.2 +// @version 6.2.1 // @updateURL https://userscripts.org/scripts/source/100614.meta.js // @downloadURL https://userscripts.org/scripts/source/100614.user.js // @match http://*.donmai.us/* From 609128dd51eb49473e37ff4ecb59d6cd64deaa2d Mon Sep 17 00:00:00 2001 From: Moebius-Strip Date: Sat, 1 Mar 2014 00:23:25 -0500 Subject: [PATCH 3/4] Test tweak --- better-better-booru.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/better-better-booru.user.js b/better-better-booru.user.js index c01b237..40bf74f 100644 --- a/better-better-booru.user.js +++ b/better-better-booru.user.js @@ -21,8 +21,8 @@ function injectMe() { // This is needed to make this script work in Chrome. * NOTE: You no longer need to edit this script to change settings! * Use the "BBB Settings" button in the menu instead. */ - - if (!Danbooru) + + if (typeof(Danbooru) === "undefined") return; /* Global Variables */ From dea6b2dd26d6b933298aaf36c3f85f1e6420eddd Mon Sep 17 00:00:00 2001 From: Moebius-Strip Date: Sat, 1 Mar 2014 00:37:16 -0500 Subject: [PATCH 4/4] Version 6.2.1 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fb124d2..6119a45 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Various tweaks to make Danbooru better. Changelog ---------- +* Version 6.2.1: + * Fixed a compatibility problem when detecting Danbooru's JavaScript. * Version 6.2: * Added a "hide comment guide notice" option for hiding the "how to comment guide" notice. * Added a "hide tag guide notice" option for hiding the "how to tag guide" notice.