Feature/#3 better display of language icons #55
|
@ -1,9 +1,14 @@
|
|||
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, false);
```
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, true);
```
kaffem
commented
Review
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
registerScript(node => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// run the scripts
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (isHtmlElement(node)) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
updateLanguageDisplay(node)
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}, "^/anime/[0-9]*$");
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
import * as core from '../utils/aniwatchCore';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
import * as helper from '../utils/helpers';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
export function init() {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
core.registerScript(node => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// run the scripts
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (helper.isHtmlElement(node)) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
updateLanguageDisplay(node)
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}, "^/anime/[0-9]*$");
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
function updateLanguageDisplay(node) {
|
||||
const langPrefix = 'ep.lang.';
|
||||
|
|
|||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
|
@ -4,6 +4,7 @@ import { initCore } from './utils/aniwatchCore';
|
|||
import { initHelpers } from './utils/helpers';
|
||||
// enhancements
|
||||
import { init as animeRequests } from './enhancements/animeRequests';
|
||||
import { init as languageDisplay } from './enhancements/languageDisplay';
|
||||
import { init as lists } from './enhancements/lists';
|
||||
import { init as quickSearch } from './enhancements/quickSearch';
|
||||
|
||||
|
@ -15,5 +16,6 @@ initHelpers();
|
|||
|
||||
// enhancements
|
||||
animeRequests();
|
||||
languageDisplay();
|
||||
lists();
|
||||
quickSearch();
|
Loading…
Reference in a new issue