101.jpg.to
@@ -1,17 +1,24 @@
/*
* @title 101.jpg.to
- * @description jpg.to countup
+ * @description jpg.to countup (Forked)
* @license MIT License
+ * @contributor taizooo http://let.hatelabo.jp/taizooo/let/gYC-yqXmm9uVag (Fork of)
*/
-
+
+// FIXME go to wrong url. no problems when you use Debuglet
+// => Resource interpreted as Document but transferred with MIME type image/gif:
+// => "http://businessnewstoday.us/wp-content/uploads/2011/09/0-PERCENT.gif".
(function () {
- var h = location.hostname;
- if (!/(\\d+)\.jpg\.to$/.test(h)) location.href = 'http://0.jpg.to/';
- n = h.match('(\\d+)\.jpg\.to')[1];
- x = parseInt(n);
- x++;
- location.href = 'http://' + x + '.jpg.to';
-})()
-
+ var n;
+ if (!(n = (/(\d+)\.jpg\.to/.exec(location.hostname) || [])[1])) {
+ // XXX http://0.jpg.to/ invalid Response?
+ // Response Headers => Location: http://businessnewstoday.us/wp-content/uploads/2011/09/0-PERCENT.gif
+ location.href = 'http://0.jpg.to/';
+ return; // for Fx
+ }
+ //var x = parseInt(n, 10) + 1;
+ var x = Number(n) + 1;
+ location.href = 'http://' + x + '.jpg.to';
+})();
/*
* @title 101.jpg.to
* @description jpg.to countup (Forked)
* @license MIT License
* @contributor taizooo http://let.hatelabo.jp/taizooo/let/gYC-yqXmm9uVag (Fork of)
*/
// FIXME go to wrong url. no problems when you use Debuglet
// => Resource interpreted as Document but transferred with MIME type image/gif:
// => "http://businessnewstoday.us/wp-content/uploads/2011/09/0-PERCENT.gif".
(function () {
var n;
if (!(n = (/(\d+)\.jpg\.to/.exec(location.hostname) || [])[1])) {
// XXX http://0.jpg.to/ invalid Response?
// Response Headers => Location: http://businessnewstoday.us/wp-content/uploads/2011/09/0-PERCENT.gif
location.href = 'http://0.jpg.to/';
return; // for Fx
}
//var x = parseInt(n, 10) + 1;
var x = Number(n) + 1;
location.href = 'http://' + x + '.jpg.to';
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。