Skip to content

Commit

Permalink
Merge pull request #31 from pseudonymous/chrome-testing
Browse files Browse the repository at this point in the history
Version 6.2.1 (Compatibility fix)
  • Loading branch information
Moebius-Strip committed Mar 1, 2014
2 parents 1f3a7c3 + dea6b2d commit 0c9b702
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions better-better-booru.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand All @@ -21,6 +21,9 @@ 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 (typeof(Danbooru) === "undefined")
return;

/* Global Variables */
var bbb = { // Container for script info.
Expand Down Expand Up @@ -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 + ')();'));
Expand Down

0 comments on commit 0c9b702

Please sign in to comment.