Skip to content

Commit b9dfd22

Browse files
committed
GETs not POSTs - caching for the win.
1 parent 808dd94 commit b9dfd22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BrickJax.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// @include https://bricks.meta.stackexchange.com/*
1212
// @include https://chat.stackexchange.com/rooms/1741/*
1313
// @include https://chat.stackexchange.com/rooms/1653/*
14-
// @include https://stackapps.com/*
14+
// @include https://stackapps.com/questions/2799/*
1515
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
1616
// @author Kevin Cathcart and @Zhaph
17-
// @version 1.0.8
17+
// @version 1.0.9
1818
// @updateURL https://github.com/Zhaph/BrickJax/raw/master/BrickJax.user.js
1919
// ==/UserScript==
2020

@@ -151,7 +151,7 @@ var brickJax = (function ($) {
151151
log("Entered getBricksForImage");
152152

153153
GM_xmlhttpRequest({
154-
method: "POST",
154+
method: "GET",
155155
url: "https://brickjax.doodle.uk/bricks/Details/" + number + "/" + colour + "/json.js",
156156
dataType: "jsonp",
157157
onload: function (data) {
@@ -164,7 +164,7 @@ var brickJax = (function ($) {
164164
log("Entered getBricksForLink");
165165

166166
GM_xmlhttpRequest({
167-
method: "POST",
167+
method: "GET",
168168
url: "https://brickjax.doodle.uk/bricks/Details/" + number + "/" + colour + "/json.js",
169169
dataType: "jsonp",
170170
onload: function (data) {

0 commit comments

Comments
 (0)