Move Flash features into their own function
Also standardize code
This commit is contained in:
parent
56ed876be8
commit
3a8ccfc237
@ -112,7 +112,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var $, $$, Anonymize, ArchiveLink, AutoGIF, Banner, Board, Build, Callbacks, CatalogLinks, Clone, Color, Conf, Config, CustomCSS, DataBoard, DeleteLink, Dice, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Gallery, Get, GlobalMessage, Header, IDColor, ImageExpand, ImageHover, ImageLoader, Index, InfiniScroll, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Navigate, Notice, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, RandomAccessList, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, SimpleDict, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
var $, $$, Anonymize, ArchiveLink, AutoGIF, Banner, Board, Build, Callbacks, CatalogLinks, Clone, Color, Conf, Config, CustomCSS, DataBoard, DeleteLink, Dice, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Flash, Fourchan, Gallery, Get, GlobalMessage, Header, IDColor, ImageExpand, ImageHover, ImageLoader, Index, InfiniScroll, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Navigate, Notice, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, RandomAccessList, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, SimpleDict, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
||||||
__slice = [].slice,
|
__slice = [].slice,
|
||||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||||
__hasProp = {}.hasOwnProperty,
|
__hasProp = {}.hasOwnProperty,
|
||||||
@ -13612,26 +13612,6 @@
|
|||||||
while (item = items[i++]) {
|
while (item = items[i++]) {
|
||||||
Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
|
Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
|
||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'f') {
|
|
||||||
$.ready(function() {
|
|
||||||
var badLink, sauceLink, swfName;
|
|
||||||
$.globalEval('SWFEmbed.init()');
|
|
||||||
if (g.VIEW === 'thread') {
|
|
||||||
sauceLink = d.createElement('a');
|
|
||||||
swfName = $('.fileText > a');
|
|
||||||
badLink = $('.navLinks');
|
|
||||||
i = 0;
|
|
||||||
while (i < 3) {
|
|
||||||
badLink.removeChild(badLink.firstChild);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
sauceLink.textContent = 'Check Sauce on SWFCHAN';
|
|
||||||
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent;
|
|
||||||
badLink.appendChild(sauceLink);
|
|
||||||
return badLink.removeChild(badLink.firstChild.nextSibling);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$.addStyle(JSColor.css(), 'jsColor');
|
$.addStyle(JSColor.css(), 'jsColor');
|
||||||
$.asap((function() {
|
$.asap((function() {
|
||||||
return d.body;
|
return d.body;
|
||||||
@ -14765,6 +14745,29 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Flash = {
|
||||||
|
init: function() {
|
||||||
|
if (g.BOARD.ID === 'f') {
|
||||||
|
return $.ready(Flash.initReady);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
initReady: function() {
|
||||||
|
var nav, sauceLink, swfName;
|
||||||
|
$.globalEval('SWFEmbed.init()');
|
||||||
|
if (g.VIEW !== 'thread') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
swfName = $('.fileText > a');
|
||||||
|
nav = $('.navLinks');
|
||||||
|
sauceLink = $.el('a', {
|
||||||
|
textContent: 'Check Sauce on SWFCHAN',
|
||||||
|
href: "http://eye.swfchan.com/search/?q=" + swfName.textContent
|
||||||
|
});
|
||||||
|
$.rmAll(nav);
|
||||||
|
return $.add(nav, [$.tn('['), sauceLink, $.tn(']')]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
Fourchan = {
|
Fourchan = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var board;
|
var board;
|
||||||
@ -17481,7 +17484,7 @@
|
|||||||
}
|
}
|
||||||
return Main.thisPageIsLegit;
|
return Main.thisPageIsLegit;
|
||||||
},
|
},
|
||||||
features: [['Polyfill', Polyfill], ['Emoji', Emoji], ['Style', Style], ['Mascots', MascotTools], ['Rice', Rice], ['Banner', Banner], ['Announcements', GlobalMessage], ['Archive Redirection', Redirect], ['Header', Header], ['Catalog Links', CatalogLinks], ['Settings', Settings], ['Index Generator', Index], ['Announcement Hiding', PSAHiding], ['Fourchan thingies', Fourchan], ['Color User IDs', IDColor], ['Custom CSS', CustomCSS], ['Linkify', Linkify], ['Reveal Spoilers', RemoveSpoilers], ['Resurrect Quotes', Quotify], ['Filter', Filter], ['Thread Hiding Buttons', ThreadHiding], ['Reply Hiding Buttons', PostHiding], ['Recursive', Recursive], ['Strike-through Quotes', QuoteStrikeThrough], ['Quick Reply', QR], ['Menu', Menu], ['Report Link', ReportLink], ['Thread Hiding (Menu)', ThreadHiding.menu], ['Reply Hiding (Menu)', PostHiding.menu], ['Delete Link', DeleteLink], ['Filter (Menu)', Filter.menu], ['Download Link', DownloadLink], ['Archive Link', ArchiveLink], ['Quote Inlining', QuoteInline], ['Quote Previewing', QuotePreview], ['Quote Backlinks', QuoteBacklink], ['Mark Quotes of You', QuoteYou], ['Mark OP Quotes', QuoteOP], ['Mark Cross-thread Quotes', QuoteCT], ['Anonymize', Anonymize], ['Time Formatting', Time], ['Relative Post Dates', RelativeDates], ['File Info Formatting', FileInfo], ['Fappe Tyme', FappeTyme], ['Gallery', Gallery], ['Gallery (menu)', Gallery.menu], ['Sauce', Sauce], ['Image Expansion', ImageExpand], ['Image Expansion (Menu)', ImageExpand.menu], ['Reveal Spoiler Thumbnails', RevealSpoilers], ['Image Loading', ImageLoader], ['Image Hover', ImageHover], ['Thread Expansion', ExpandThread], ['Thread Excerpt', ThreadExcerpt], ['Favicon', Favicon], ['Unread', Unread], ['Quote Threading', QuoteThreading], ['Thread Updater', ThreadUpdater], ['Thread Stats', ThreadStats], ['Thread Watcher', ThreadWatcher], ['Thread Watcher (Menu)', ThreadWatcher.menu], ['Index Navigation', Nav], ['Keybinds', Keybinds], ['Show Dice Roll', Dice], ['Navigate', Navigate]],
|
features: [['Polyfill', Polyfill], ['Emoji', Emoji], ['Style', Style], ['Mascots', MascotTools], ['Rice', Rice], ['Banner', Banner], ['Announcements', GlobalMessage], ['Archive Redirection', Redirect], ['Header', Header], ['Catalog Links', CatalogLinks], ['Settings', Settings], ['Index Generator', Index], ['Announcement Hiding', PSAHiding], ['Fourchan thingies', Fourchan], ['Color User IDs', IDColor], ['Custom CSS', CustomCSS], ['Linkify', Linkify], ['Reveal Spoilers', RemoveSpoilers], ['Resurrect Quotes', Quotify], ['Filter', Filter], ['Thread Hiding Buttons', ThreadHiding], ['Reply Hiding Buttons', PostHiding], ['Recursive', Recursive], ['Strike-through Quotes', QuoteStrikeThrough], ['Quick Reply', QR], ['Menu', Menu], ['Report Link', ReportLink], ['Thread Hiding (Menu)', ThreadHiding.menu], ['Reply Hiding (Menu)', PostHiding.menu], ['Delete Link', DeleteLink], ['Filter (Menu)', Filter.menu], ['Download Link', DownloadLink], ['Archive Link', ArchiveLink], ['Quote Inlining', QuoteInline], ['Quote Previewing', QuotePreview], ['Quote Backlinks', QuoteBacklink], ['Mark Quotes of You', QuoteYou], ['Mark OP Quotes', QuoteOP], ['Mark Cross-thread Quotes', QuoteCT], ['Anonymize', Anonymize], ['Time Formatting', Time], ['Relative Post Dates', RelativeDates], ['File Info Formatting', FileInfo], ['Fappe Tyme', FappeTyme], ['Gallery', Gallery], ['Gallery (menu)', Gallery.menu], ['Sauce', Sauce], ['Image Expansion', ImageExpand], ['Image Expansion (Menu)', ImageExpand.menu], ['Reveal Spoiler Thumbnails', RevealSpoilers], ['Image Loading', ImageLoader], ['Image Hover', ImageHover], ['Thread Expansion', ExpandThread], ['Thread Excerpt', ThreadExcerpt], ['Favicon', Favicon], ['Unread', Unread], ['Quote Threading', QuoteThreading], ['Thread Updater', ThreadUpdater], ['Thread Stats', ThreadStats], ['Thread Watcher', ThreadWatcher], ['Thread Watcher (Menu)', ThreadWatcher.menu], ['Index Navigation', Nav], ['Keybinds', Keybinds], ['Show Dice Roll', Dice], ['Navigate', Navigate], ['Flash Features', Flash]],
|
||||||
setMascotString: function() {
|
setMascotString: function() {
|
||||||
var type;
|
var type;
|
||||||
type = "Enabled Mascots";
|
type = "Enabled Mascots";
|
||||||
|
|||||||
@ -88,7 +88,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var $, $$, Anonymize, ArchiveLink, AutoGIF, Banner, Board, Build, Callbacks, CatalogLinks, Clone, Color, Conf, Config, CustomCSS, DataBoard, DeleteLink, Dice, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Gallery, Get, GlobalMessage, Header, IDColor, ImageExpand, ImageHover, ImageLoader, Index, InfiniScroll, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Navigate, Notice, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, RandomAccessList, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, SimpleDict, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
var $, $$, Anonymize, ArchiveLink, AutoGIF, Banner, Board, Build, Callbacks, CatalogLinks, Clone, Color, Conf, Config, CustomCSS, DataBoard, DeleteLink, Dice, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Flash, Fourchan, Gallery, Get, GlobalMessage, Header, IDColor, ImageExpand, ImageHover, ImageLoader, Index, InfiniScroll, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Navigate, Notice, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, RandomAccessList, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, SimpleDict, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
||||||
__slice = [].slice,
|
__slice = [].slice,
|
||||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||||
__hasProp = {}.hasOwnProperty,
|
__hasProp = {}.hasOwnProperty,
|
||||||
@ -13613,26 +13613,6 @@
|
|||||||
while (item = items[i++]) {
|
while (item = items[i++]) {
|
||||||
Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
|
Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
|
||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'f') {
|
|
||||||
$.ready(function() {
|
|
||||||
var badLink, sauceLink, swfName;
|
|
||||||
$.globalEval('SWFEmbed.init()');
|
|
||||||
if (g.VIEW === 'thread') {
|
|
||||||
sauceLink = d.createElement('a');
|
|
||||||
swfName = $('.fileText > a');
|
|
||||||
badLink = $('.navLinks');
|
|
||||||
i = 0;
|
|
||||||
while (i < 3) {
|
|
||||||
badLink.removeChild(badLink.firstChild);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
sauceLink.textContent = 'Check Sauce on SWFCHAN';
|
|
||||||
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent;
|
|
||||||
badLink.appendChild(sauceLink);
|
|
||||||
return badLink.removeChild(badLink.firstChild.nextSibling);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$.addStyle(JSColor.css(), 'jsColor');
|
$.addStyle(JSColor.css(), 'jsColor');
|
||||||
$.asap((function() {
|
$.asap((function() {
|
||||||
return d.body;
|
return d.body;
|
||||||
@ -14768,6 +14748,29 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Flash = {
|
||||||
|
init: function() {
|
||||||
|
if (g.BOARD.ID === 'f') {
|
||||||
|
return $.ready(Flash.initReady);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
initReady: function() {
|
||||||
|
var nav, sauceLink, swfName;
|
||||||
|
$.globalEval('SWFEmbed.init()');
|
||||||
|
if (g.VIEW !== 'thread') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
swfName = $('.fileText > a');
|
||||||
|
nav = $('.navLinks');
|
||||||
|
sauceLink = $.el('a', {
|
||||||
|
textContent: 'Check Sauce on SWFCHAN',
|
||||||
|
href: "http://eye.swfchan.com/search/?q=" + swfName.textContent
|
||||||
|
});
|
||||||
|
$.rmAll(nav);
|
||||||
|
return $.add(nav, [$.tn('['), sauceLink, $.tn(']')]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
Fourchan = {
|
Fourchan = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var board;
|
var board;
|
||||||
@ -17460,7 +17463,7 @@
|
|||||||
}
|
}
|
||||||
return Main.thisPageIsLegit;
|
return Main.thisPageIsLegit;
|
||||||
},
|
},
|
||||||
features: [['Polyfill', Polyfill], ['Emoji', Emoji], ['Style', Style], ['Mascots', MascotTools], ['Rice', Rice], ['Banner', Banner], ['Announcements', GlobalMessage], ['Archive Redirection', Redirect], ['Header', Header], ['Catalog Links', CatalogLinks], ['Settings', Settings], ['Index Generator', Index], ['Announcement Hiding', PSAHiding], ['Fourchan thingies', Fourchan], ['Color User IDs', IDColor], ['Custom CSS', CustomCSS], ['Linkify', Linkify], ['Reveal Spoilers', RemoveSpoilers], ['Resurrect Quotes', Quotify], ['Filter', Filter], ['Thread Hiding Buttons', ThreadHiding], ['Reply Hiding Buttons', PostHiding], ['Recursive', Recursive], ['Strike-through Quotes', QuoteStrikeThrough], ['Quick Reply', QR], ['Menu', Menu], ['Report Link', ReportLink], ['Thread Hiding (Menu)', ThreadHiding.menu], ['Reply Hiding (Menu)', PostHiding.menu], ['Delete Link', DeleteLink], ['Filter (Menu)', Filter.menu], ['Download Link', DownloadLink], ['Archive Link', ArchiveLink], ['Quote Inlining', QuoteInline], ['Quote Previewing', QuotePreview], ['Quote Backlinks', QuoteBacklink], ['Mark Quotes of You', QuoteYou], ['Mark OP Quotes', QuoteOP], ['Mark Cross-thread Quotes', QuoteCT], ['Anonymize', Anonymize], ['Time Formatting', Time], ['Relative Post Dates', RelativeDates], ['File Info Formatting', FileInfo], ['Fappe Tyme', FappeTyme], ['Gallery', Gallery], ['Gallery (menu)', Gallery.menu], ['Sauce', Sauce], ['Image Expansion', ImageExpand], ['Image Expansion (Menu)', ImageExpand.menu], ['Reveal Spoiler Thumbnails', RevealSpoilers], ['Image Loading', ImageLoader], ['Image Hover', ImageHover], ['Thread Expansion', ExpandThread], ['Thread Excerpt', ThreadExcerpt], ['Favicon', Favicon], ['Unread', Unread], ['Quote Threading', QuoteThreading], ['Thread Updater', ThreadUpdater], ['Thread Stats', ThreadStats], ['Thread Watcher', ThreadWatcher], ['Thread Watcher (Menu)', ThreadWatcher.menu], ['Index Navigation', Nav], ['Keybinds', Keybinds], ['Show Dice Roll', Dice], ['Navigate', Navigate]],
|
features: [['Polyfill', Polyfill], ['Emoji', Emoji], ['Style', Style], ['Mascots', MascotTools], ['Rice', Rice], ['Banner', Banner], ['Announcements', GlobalMessage], ['Archive Redirection', Redirect], ['Header', Header], ['Catalog Links', CatalogLinks], ['Settings', Settings], ['Index Generator', Index], ['Announcement Hiding', PSAHiding], ['Fourchan thingies', Fourchan], ['Color User IDs', IDColor], ['Custom CSS', CustomCSS], ['Linkify', Linkify], ['Reveal Spoilers', RemoveSpoilers], ['Resurrect Quotes', Quotify], ['Filter', Filter], ['Thread Hiding Buttons', ThreadHiding], ['Reply Hiding Buttons', PostHiding], ['Recursive', Recursive], ['Strike-through Quotes', QuoteStrikeThrough], ['Quick Reply', QR], ['Menu', Menu], ['Report Link', ReportLink], ['Thread Hiding (Menu)', ThreadHiding.menu], ['Reply Hiding (Menu)', PostHiding.menu], ['Delete Link', DeleteLink], ['Filter (Menu)', Filter.menu], ['Download Link', DownloadLink], ['Archive Link', ArchiveLink], ['Quote Inlining', QuoteInline], ['Quote Previewing', QuotePreview], ['Quote Backlinks', QuoteBacklink], ['Mark Quotes of You', QuoteYou], ['Mark OP Quotes', QuoteOP], ['Mark Cross-thread Quotes', QuoteCT], ['Anonymize', Anonymize], ['Time Formatting', Time], ['Relative Post Dates', RelativeDates], ['File Info Formatting', FileInfo], ['Fappe Tyme', FappeTyme], ['Gallery', Gallery], ['Gallery (menu)', Gallery.menu], ['Sauce', Sauce], ['Image Expansion', ImageExpand], ['Image Expansion (Menu)', ImageExpand.menu], ['Reveal Spoiler Thumbnails', RevealSpoilers], ['Image Loading', ImageLoader], ['Image Hover', ImageHover], ['Thread Expansion', ExpandThread], ['Thread Excerpt', ThreadExcerpt], ['Favicon', Favicon], ['Unread', Unread], ['Quote Threading', QuoteThreading], ['Thread Updater', ThreadUpdater], ['Thread Stats', ThreadStats], ['Thread Watcher', ThreadWatcher], ['Thread Watcher (Menu)', ThreadWatcher.menu], ['Index Navigation', Nav], ['Keybinds', Keybinds], ['Show Dice Roll', Dice], ['Navigate', Navigate], ['Flash Features', Flash]],
|
||||||
setMascotString: function() {
|
setMascotString: function() {
|
||||||
var type;
|
var type;
|
||||||
type = "Enabled Mascots";
|
type = "Enabled Mascots";
|
||||||
|
|||||||
@ -329,6 +329,7 @@ Main =
|
|||||||
['Keybinds', Keybinds]
|
['Keybinds', Keybinds]
|
||||||
['Show Dice Roll', Dice]
|
['Show Dice Roll', Dice]
|
||||||
['Navigate', Navigate]
|
['Navigate', Navigate]
|
||||||
|
['Flash Features', Flash]
|
||||||
]
|
]
|
||||||
|
|
||||||
setMascotString: ->
|
setMascotString: ->
|
||||||
|
|||||||
17
src/Miscellaneous/Flash.coffee
Normal file
17
src/Miscellaneous/Flash.coffee
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Flash =
|
||||||
|
init: ->
|
||||||
|
if g.BOARD.ID is 'f'
|
||||||
|
$.ready Flash.initReady
|
||||||
|
|
||||||
|
initReady: ->
|
||||||
|
$.globalEval 'SWFEmbed.init()'
|
||||||
|
|
||||||
|
return unless g.VIEW is 'thread'
|
||||||
|
|
||||||
|
swfName = $ '.fileText > a'
|
||||||
|
nav = $ '.navLinks'
|
||||||
|
sauceLink = $.el 'a',
|
||||||
|
textContent: 'Check Sauce on SWFCHAN'
|
||||||
|
href: "http://eye.swfchan.com/search/?q=#{swfName.textContent}"
|
||||||
|
$.rmAll nav
|
||||||
|
$.add nav, [$.tn('['), sauceLink, $.tn(']')]
|
||||||
@ -22,22 +22,6 @@ Style =
|
|||||||
while item = items[i++]
|
while item = items[i++]
|
||||||
Style.sheets[item[0]] = $.addStyle item[1], item[0]
|
Style.sheets[item[0]] = $.addStyle item[1], item[0]
|
||||||
|
|
||||||
if g.BOARD.ID is 'f'
|
|
||||||
$.ready ->
|
|
||||||
$.globalEval 'SWFEmbed.init()'
|
|
||||||
if g.VIEW is 'thread'
|
|
||||||
sauceLink = d.createElement 'a'
|
|
||||||
swfName = $ '.fileText > a'
|
|
||||||
badLink = $ '.navLinks'
|
|
||||||
i = 0
|
|
||||||
while i < 3
|
|
||||||
badLink.removeChild badLink.firstChild
|
|
||||||
i++
|
|
||||||
sauceLink.textContent = 'Check Sauce on SWFCHAN'
|
|
||||||
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent
|
|
||||||
badLink.appendChild(sauceLink)
|
|
||||||
badLink.removeChild badLink.firstChild.nextSibling
|
|
||||||
|
|
||||||
# Non-customizable
|
# Non-customizable
|
||||||
$.addStyle JSColor.css(), 'jsColor'
|
$.addStyle JSColor.css(), 'jsColor'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user