Skip to content

Commit

Permalink
Fix for image expand on samechan.org
Browse files Browse the repository at this point in the history
  • Loading branch information
SthephanShinkufag committed Dec 10, 2011
1 parent 264382a commit cf62813
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dollchan_Extension_Tools.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Dollchan Extension Tools
// @version 2011-12-09
// @name Dollchan Extension Tools
// @version 2011-12-10
// @namespace http://www.freedollchan.org/scripts
// @author Sthephan Shinkufag @ FreeDollChan
// @copyright (C)2084, Bender Bending Rodriguez
Expand Down
9 changes: 6 additions & 3 deletions Dollchan_Extension_Tools.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Dollchan Extension Tools
// @version 2011-12-09
// @version 2011-12-10
// @namespace http://www.freedollchan.org/scripts
// @author Sthephan Shinkufag @ FreeDollChan
// @copyright (C)2084, Bender Bending Rodriguez
Expand All @@ -12,7 +12,7 @@
(function(scriptStorage) {

var defaultCfg = {
version: '2011-12-09',
version: '2011-12-10',
lang: 0, // script language [0=ru, 1=en]
awipe: 1, // antiwipe detectors:
samel: 1, // same lines
Expand Down Expand Up @@ -2879,7 +2879,9 @@ function getSpells(post) {
}

function getImgInfo(post) {
return $x('.//em|.//span[@class="filesize" or @class="fileinfo"]|.//p[@class="fileinfo"]', post).textContent;
var xp = './/em|.//span[@class="filesize" or @class="fileinfo"]|.//p[@class="fileinfo"]';
if(ch.same) xp = './/div[@class="file_thread"]/span|.//div[@class="file_reply"]/span[2]';
return $x(xp, post).textContent;
}

function getImgWeight(post) {
Expand Down Expand Up @@ -3166,6 +3168,7 @@ function initBoard() {
krau: dm == 'krautchan.net',
_410: dm == '410chan.ru',
sib: dm == 'sibirchan.ru',
same: dm == 'samechan.org',
tire: dm == '2--ch.ru',
_5ch: dm == '5channel.net',
hid: dm == 'hiddenchan.i2p',
Expand Down

0 comments on commit cf62813

Please sign in to comment.