Skip to content

Commit

Permalink
Catch both .jpg and .jpeg extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
desudesutalk committed Jul 8, 2017
1 parent 02b9fe8 commit ce0f792
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ddt.meta.js
@@ -1,7 +1,7 @@
// ==UserScript==
// @name DesuDesuTalk
// @namespace udp://desushelter/*
// @version 0.4.85
// @version 0.4.86
// @description Write something useful!
// @include *://dobrochan.com/*/*
// @include *://dobrochan.ru/*/*
Expand Down
7 changes: 4 additions & 3 deletions ddt.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/main.js
Expand Up @@ -141,8 +141,7 @@ $(function($) {
setTimeout(startAnimeWatch, 1000);
});

if(window.location.href.substring(window.location.href.length-4,window.location.href.length)===".jpg")
{
if(window.location.href.match(/\.jpe?g$/i)){
process_images.push([window.location.href, window.location.href, 0, true]);
process_olds();
}
2 changes: 1 addition & 1 deletion src/metablock.js
@@ -1,7 +1,7 @@
// ==UserScript==
// @name DesuDesuTalk
// @namespace udp://desushelter/*
// @version 0.4.85
// @version 0.4.86
// @description Write something useful!
// @include *://dobrochan.com/*/*
// @include *://dobrochan.ru/*/*
Expand Down

0 comments on commit ce0f792

Please sign in to comment.