Merge branch 'palemoon'
This commit is contained in:
commit
dcc5e4973d
@ -2,6 +2,13 @@
|
||||
|
||||
Sometimes the changelog has notes (not comprehensive) acknowledging people's work. This does not mean the changes are their fault, only that their code was used. All changes to the script are chosen by and the fault of the maintainer (ccd0).
|
||||
|
||||
### v1.11.10
|
||||
|
||||
**v1.11.10.0** *(2015-08-20)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.10.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.10.0/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||
- Based on v1.11.9.2.
|
||||
- Support [port of Greasemonkey 3 to Pale Moon](https://github.com/janekptacijarabaci/greasemonkey/releases/latest).
|
||||
- Fix bug causing updateless versions of userscript to check for and install updates.
|
||||
|
||||
### v1.11.9
|
||||
|
||||
**v1.11.9.4** *(2015-08-22)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.4/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||
|
||||
@ -304,6 +304,7 @@ module.exports = (grunt) ->
|
||||
GM_xmlhttpRequest: true
|
||||
GM_info: true
|
||||
cloneInto: true
|
||||
unsafeWindow: true
|
||||
chrome: true
|
||||
script: 'tmp-<%= pkg.type %>/*.js'
|
||||
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X beta
|
||||
// @version 1.11.9.4
|
||||
// @version 1.11.10.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.11.9.4
|
||||
// @version 1.11.10.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.9.4' />
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.10.0' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.9.4' />
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.10.0' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
"meta": {
|
||||
"name": "4chan X",
|
||||
"fork": "ccd0",
|
||||
"version": "1.11.9.4",
|
||||
"date": "2015-08-22T09:17:38.413Z",
|
||||
"version": "1.11.10.0",
|
||||
"date": "2015-08-20T08:34:03.582Z",
|
||||
"page": "https://www.4chan-x.net/",
|
||||
"downloads": "https://www.4chan-x.net/builds/",
|
||||
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
||||
|
||||
@ -224,6 +224,28 @@ $.event = (event, detail, root=d) ->
|
||||
<% } %>
|
||||
root.dispatchEvent new CustomEvent event, {bubbles: true, detail}
|
||||
|
||||
<% if (type === 'userscript') { %>
|
||||
# XXX Make $.event work in Pale Moon with GM 3.x (no cloneInto function).
|
||||
do ->
|
||||
return unless /PaleMoon\//.test(navigator.userAgent) and +GM_info?.version?.split('.')[0] >= 2 and typeof cloneInto is 'undefined'
|
||||
|
||||
try
|
||||
new CustomEvent 'x', detail: {}
|
||||
catch err
|
||||
unsafeConstructors =
|
||||
Object: unsafeWindow.Object
|
||||
Array: unsafeWindow.Array
|
||||
clone = (obj) ->
|
||||
if obj? and typeof obj is 'object' and (constructor = unsafeConstructors[obj.constructor.name])
|
||||
obj2 = new constructor()
|
||||
obj2[key] = clone val for key, val of obj
|
||||
obj2
|
||||
else
|
||||
obj
|
||||
$.event = (event, detail, root=d) ->
|
||||
root.dispatchEvent new CustomEvent event, {bubbles: true, detail: clone detail}
|
||||
<% } %>
|
||||
|
||||
$.open =
|
||||
<% if (type === 'userscript') { %>
|
||||
if GM_openInTab?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user