@ -51,7 +51,7 @@
var define_BUILD_VERSION_default ;
var init_define_BUILD_VERSION = __ esm ( {
"<define:BUILD_VERSION>" ( ) {
define_BUILD_VERSION_default = [ 0 , 255 ] ;
define_BUILD_VERSION_default = [ 0 , 256 ] ;
}
} ) ;
@ -13819,50 +13819,7 @@
conc : 8 ,
ho : false ,
blacklist : [ "guro" , "scat" , "ryona" , "gore" ] ,
rsources : [
{
name : "Gelbooru" ,
domain : "gelbooru.com" ,
endpoint : "/index.php?page=dapi&s=post&q=index&json=1&tags=md5:" ,
view : "https://gelbooru.com/index.php?page=post&s=view&id="
} ,
{
name : "Yandere" ,
domain : "yande.re" ,
endpoint : "/post.json?tags=md5:" ,
view : ` https://yande.re/post/show/ `
} ,
{
name : "Sankaku" ,
domain : "capi-v2.sankakucomplex.com" ,
endpoint : "/posts/keyset?tags=md5:" ,
view : ` https://chan.sankakucomplex.com/post/show/ `
} ,
{
name : "Rule34" ,
domain : "api.rule34.xxx" ,
endpoint : "/index.php?page=dapi&s=post&q=index&json=1&tags=md5:" ,
view : "https://rule34.xxx/index.php?page=post&s=view&id="
} ,
{
name : "Danbooru" ,
domain : "danbooru.donmai.us" ,
endpoint : "/posts.json?tags=md5:" ,
view : "https://danbooru.donmai.us/posts/"
} ,
{
name : "Lolibooru" ,
domain : "lolibooru.moe" ,
endpoint : "/post.json?tags=md5:" ,
view : "https://lolibooru.moe/post/show/"
} ,
{
name : "ATFbooru" ,
domain : "booru.allthefallen.moe" ,
endpoint : "/posts.json?tags=md5:" ,
view : "https://booru.allthefallen.moe/posts/"
}
] ,
rsources : [ ] ,
... localLoad ( "settingsv2" , { } )
} ) ;
var settings = writable ( initial_settings ) ;
@ -14136,6 +14093,8 @@
// src/platform.ts
var lqueue = { } ;
var localLoad2 = ( key , def ) => "__pee__" + key in localStorage ? JSON . parse ( localStorage . getItem ( "__pee__" + key ) ) : def ;
var localSet2 = ( key , value ) => localStorage . setItem ( "__pee__" + key , JSON . stringify ( value ) ) ;
var { port1 , port2 } = new MessageChannel ( ) ;
console . log ( "chrome_api" , false ) ;
if ( true ) {
@ -14179,10 +14138,33 @@
for ( const k of keys )
ctor [ k ] = bridge ( k , ctor [ k ] ) ;
} ;
var altdomains = [
"desuarchive.org" ,
"archived.moe" ,
"archive.nyafuu.org" ,
"arch.b4k.co" ,
"archive.wakarimasen.moe" ,
"b4k.co" ,
"fireden.net" ,
"thebarchive.com" ,
"archiveofsins.com"
] ;
function supportedAltDomain ( s ) {
if ( false )
return GM . info . script . matches . slice ( 2 ) . some ( ( m ) => m . includes ( s ) ) ;
return ! location . host . includes ( "boards.4chan" ) ;
return altdomains . includes ( s ) ;
}
function supportedMainDomain ( s ) {
return [ "boards.4channel.org" , "boards.4chan.org" ] . includes ( s ) ;
}
var popupport ;
var pendingcmds = { } ;
if ( true ) {
popupport = chrome . runtime . connect ( { name : "popup" } ) ;
popupport . onMessage . addListener ( ( msg ) => {
if ( msg . id in pendingcmds ) {
pendingcmds [ msg . id ] ( msg ) ;
delete pendingcmds [ msg . id ] ;
}
} ) ;
}
var Platform = class {
static async openInTab ( src , opts ) {
@ -14195,10 +14177,35 @@
i = ( await obj . tabs . getCurrent ( ) ) . index + 1 ;
return obj . tabs . create ( { active : opts . active , url : src , index : i } ) ;
}
static getValue ( name , def ) {
return localLoad2 ( name , def ) ;
}
static setValue ( name , val ) {
localSet2 ( name , val ) ;
}
} ;
Platform . cmdid = 0 ;
Platform = __ decorateClass ( [
Bridged
] , Platform ) ;
var cmdid = 0 ;
function request ( domain ) {
try {
popupport . postMessage ( { id : cmdid , type : "grant" , domain } ) ;
cmdid ++ ;
} catch ( e ) {
if ( e . message . includes ( "disconnected" ) ) {
popupport = chrome . runtime . connect ( { name : "popup" } ) ;
popupport . onMessage . addListener ( ( msg ) => {
if ( msg . id in pendingcmds ) {
pendingcmds [ msg . id ] ( msg ) ;
delete pendingcmds [ msg . id ] ;
}
} ) ;
return request ( domain ) ;
}
}
}
async function serialize ( src ) {
if ( src instanceof FormData ) {
const value = [ ] ;
@ -19406,7 +19413,7 @@
// src/Components/App.svelte
function add_css8 ( target ) {
append_styles ( target , "svelte-98wprd" , '.bepis.svelte-98wprd.svelte-98wprd{max-height:260px;overflow-y:auto}.tagcont.svelte-98wprd.svelte-98wprd{display:flex;gap:5px;margin-bottom:10px;flex-wrap:wrap}label.svelte-98wprd>input[type="text"].svelte-98wprd,label.svelte-98wprd>input[type="number"].svelte-98wprd{width:95%}.content.svelte-98wprd.svelte-98wprd{display:flex;flex-direction:column}.error.svelte-98wprd.svelte-98wprd{color:red}hr.svelte-98wprd.svelte-98wprd{width:100%}h1.svelte-98wprd.svelte-98wprd{text-align:center}.form.svelte-98wprd.svelte-98wprd {display:flex;flex-direction:column;gap:20px;position:absolute;padding:15px;border:1px solid white;background-color:inherit;border-radius:10px}.form.svelte-98wprd>label.svelte-98wprd{display:flex;flex-direction:column;gap:10px}.newsbox.svelte-98wprd.svelte-98wprd{max-height:300px;overflow-y:scroll}.backpanel.svelte-98wprd.svelte-98wprd {position:absolute;right:32px;padding:10px;width:15%;top:32px;border:1px solid;border-radius:5px;background-color:rgba(0, 0, 0, 0.8);pointer-events:all;backdrop-filter:blur(9px);max-height:80vh;min-width:321px}' ) ;
append_styles ( target , "svelte-2r0xqp" , '.bepis.svelte-2r0xqp.svelte-2r0xqp{max-height:260px;overflow-y:auto}.tagcont.svelte-2r0xqp.svelte-2r0xqp{display:flex;gap:5px;margin-bottom:10px;flex-wrap:wrap}label.svelte-2r0xqp>input[type="text"].svelte-2r0xqp,label.svelte-2r0xqp>input[type="number"].svelte-2r0xqp{width:95%}.content.svelte-2r0xqp.svelte-2r0xqp{display:flex;flex-direction:column}.error.svelte-2r0xqp.svelte-2r0xqp{color:red}hr.svelte-2r0xqp.svelte-2r0xqp{width:100%}h1.svelte-2r0xqp.svelte-2r0xqp{text-align:center}.form.svelte-2r0xqp.svelte-2r0xqp {display:flex;flex-direction:column;gap:20px;position:absolute;padding:15px;border:1px solid white;background-color:black;border-radius:10px}.form.svelte-2r0xqp>label.svelte-2r0xqp{display:flex;flex-direction:column;gap:10px}.newsbox.svelte-2r0xqp.svelte-2r0xqp{max-height:300px;overflow-y:scroll}.backpanel.svelte-2r0xqp.svelte-2r0xqp {position:absolute;right:32px;padding:10px;width:15%;top:32px;border:1px solid;border-radius:5px;background-color:rgba(0, 0, 0, 0.8);pointer-events:all;backdrop-filter:blur(9px);max-height:80vh;min-width:321px}' ) ;
}
function get_each_context2 ( ctx , list , i ) {
const child_ctx = ctx . slice ( ) ;
@ -19465,10 +19472,10 @@
hr = element ( "hr" ) ;
t3 = space ( ) ;
create_component ( tabs . $$ . fragment ) ;
attr ( h1 , "class" , "svelte-98wprd " ) ;
attr ( hr , "class" , "svelte-98wprd " ) ;
attr ( div0 , "class" , "content svelte-98wprd " ) ;
attr ( div1 , "class" , "backpanel svelte-98wprd " ) ;
attr ( h1 , "class" , "svelte-2r0xqp " ) ;
attr ( hr , "class" , "svelte-2r0xqp " ) ;
attr ( div0 , "class" , "content svelte-2r0xqp " ) ;
attr ( div1 , "class" , "backpanel svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , div1 , anchor ) ;
@ -19593,7 +19600,7 @@
}
} ;
}
function create_if_block_10 ( ctx ) {
function create_if_block_11 ( ctx ) {
let tab ;
let current ;
tab = new Tab_default ( {
@ -19685,7 +19692,7 @@
}
} ) ;
tab4 . $on ( "select" , ctx [ 19 ] ) ;
let if_block = ctx [ 8 ] . akValid && create_if_block_10 ( ctx ) ;
let if_block = ctx [ 8 ] . akValid && create_if_block_11 ( ctx ) ;
return {
c ( ) {
create_component ( tab0 . $$ . fragment ) ;
@ -19750,7 +19757,7 @@
transition_in ( if_block , 1 ) ;
}
} else {
if_block = create_if_block_10 ( ctx2 ) ;
if_block = create_if_block_11 ( ctx2 ) ;
if_block . c ( ) ;
transition_in ( if_block , 1 ) ;
if_block . m ( if_block_anchor . parentNode , if_block_anchor ) ;
@ -19806,7 +19813,7 @@
}
} ;
}
function create_if_block_9 ( ctx ) {
function create_if_block_10 ( ctx ) {
let label ;
let input ;
let t ;
@ -19842,7 +19849,7 @@
}
} ;
}
function create_if_block_6 2 ( ctx ) {
function create_if_block_7 2 ( ctx ) {
let t0 ;
let label ;
let t1 ;
@ -19853,8 +19860,8 @@
let if_block1_anchor ;
let mounted ;
let dispose ;
let if_block0 = ctx [ 8 ] . herror && create_if_block_8 ( ctx ) ;
let if_block1 = ctx [ 8 ] . akValid && create_if_block_72 ( ctx ) ;
let if_block0 = ctx [ 8 ] . herror && create_if_block_9 ( ctx ) ;
let if_block1 = ctx [ 8 ] . akValid && create_if_block_8 ( ctx ) ;
return {
c ( ) {
if ( if_block0 )
@ -19872,8 +19879,8 @@
if_block1_anchor = empty ( ) ;
attr ( a , "title" , "Only requires Search Files permission. See Hydrus docs on where to set this up." ) ;
attr ( input , "type" , "text" ) ;
attr ( input , "class" , "svelte-98wprd " ) ;
attr ( label , "class" , "svelte-98wprd " ) ;
attr ( input , "class" , "svelte-2r0xqp " ) ;
attr ( label , "class" , "svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
if ( if_block0 )
@ -19899,7 +19906,7 @@
if ( if_block0 ) {
if_block0 . p ( ctx2 , dirty ) ;
} else {
if_block0 = create_if_block_8 ( ctx2 ) ;
if_block0 = create_if_block_9 ( ctx2 ) ;
if_block0 . c ( ) ;
if_block0 . m ( t0 . parentNode , t0 ) ;
}
@ -19914,7 +19921,7 @@
if ( if_block1 ) {
if_block1 . p ( ctx2 , dirty ) ;
} else {
if_block1 = create_if_block_72 ( ctx2 ) ;
if_block1 = create_if_block_8 ( ctx2 ) ;
if_block1 . c ( ) ;
if_block1 . m ( if_block1_anchor . parentNode , if_block1_anchor ) ;
}
@ -19941,7 +19948,7 @@
}
} ;
}
function create_if_block_8 ( ctx ) {
function create_if_block_9 ( ctx ) {
let span ;
let t_value = ctx [ 8 ] . herror + "" ;
let t ;
@ -19949,7 +19956,7 @@
c ( ) {
span = element ( "span" ) ;
t = text ( t_value ) ;
attr ( span , "class" , "error svelte-98wprd " ) ;
attr ( span , "class" , "error svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , span , anchor ) ;
@ -19965,7 +19972,7 @@
}
} ;
}
function create_if_block_72 ( ctx ) {
function create_if_block_8 ( ctx ) {
let label0 ;
let t0 ;
let input0 ;
@ -19986,12 +19993,12 @@
input1 = element ( "input" ) ;
set_style ( input0 , "width" , "5ch" ) ;
attr ( input0 , "type" , "number" ) ;
attr ( input0 , "class" , "svelte-98wprd " ) ;
attr ( label0 , "class" , "svelte-98wprd " ) ;
attr ( input0 , "class" , "svelte-2r0xqp " ) ;
attr ( label0 , "class" , "svelte-2r0xqp " ) ;
attr ( input1 , "placeholder" , "Restrict to these tags (space to separate tags, _ to separate words)" ) ;
attr ( input1 , "type" , "text" ) ;
attr ( input1 , "class" , "svelte-98wprd " ) ;
attr ( label1 , "class" , "svelte-98wprd " ) ;
attr ( input1 , "class" , "svelte-2r0xqp " ) ;
attr ( label1 , "class" , "svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , label0 , anchor ) ;
@ -20097,8 +20104,8 @@
let if_block1_anchor ;
let mounted ;
let dispose ;
let if_block0 = ctx [ 7 ] . eye && create_if_block_9 ( ctx ) ;
let if_block1 = ctx [ 7 ] . hyd && create_if_block_6 2 ( ctx ) ;
let if_block0 = ctx [ 7 ] . eye && create_if_block_10 ( ctx ) ;
let if_block1 = ctx [ 7 ] . hyd && create_if_block_7 2 ( ctx ) ;
return {
c ( ) {
label0 = element ( "label" ) ;
@ -20319,7 +20326,7 @@
if ( if_block0 ) {
if_block0 . p ( ctx2 , dirty ) ;
} else {
if_block0 = create_if_block_9 ( ctx2 ) ;
if_block0 = create_if_block_10 ( ctx2 ) ;
if_block0 . c ( ) ;
if_block0 . m ( t16 . parentNode , t16 ) ;
}
@ -20352,7 +20359,7 @@
if ( if_block1 ) {
if_block1 . p ( ctx2 , dirty ) ;
} else {
if_block1 = create_if_block_6 2 ( ctx2 ) ;
if_block1 = create_if_block_7 2 ( ctx2 ) ;
if_block1 . c ( ) ;
if_block1 . m ( if_block1_anchor . parentNode , if_block1_anchor ) ;
}
@ -20443,23 +20450,25 @@
let t2 ;
let h30 ;
let t4 ;
let div0 ;
let t5 ;
let div0 ;
let t6 ;
let button ;
let t7 ;
let dialog ;
let t8 ;
let hr ;
let dialog ;
let t9 ;
let hr ;
let t10 ;
let h31 ;
let t11 ;
let div1 ;
let t12 ;
let div1 ;
let t13 ;
let input1 ;
let current ;
let mounted ;
let dispose ;
let if_block = ctx [ 7 ] . phash && create_if_block_52 ( ctx ) ;
let if_block0 = ctx [ 7 ] . phash && create_if_block_62 ( ctx ) ;
let if_block1 = ctx [ 7 ] . rsources . length == 0 && create_if_block_52 ( ctx ) ;
let each_value_4 = ctx [ 7 ] . rsources ;
let each_blocks_1 = [ ] ;
for ( let i = 0 ; i < each_value_4 . length ; i += 1 ) {
@ -20488,37 +20497,40 @@
input0 = element ( "input" ) ;
t0 = text ( "\n Enable perceptual hash-based filtering" ) ;
t1 = space ( ) ;
if ( if_block )
if_block . c ( ) ;
if ( if_block0 )
if_block0 . c ( ) ;
t2 = space ( ) ;
h30 = element ( "h3" ) ;
h30 . textContent = "Booru sources" ;
t4 = space ( ) ;
if ( if_block1 )
if_block1 . c ( ) ;
t5 = space ( ) ;
div0 = element ( "div" ) ;
for ( let i = 0 ; i < each_blocks_1 . length ; i += 1 ) {
each_blocks_1 [ i ] . c ( ) ;
}
t5 = space ( ) ;
t6 = space ( ) ;
button = element ( "button" ) ;
button . textContent = "Add a source" ;
t7 = space ( ) ;
create_component ( dialog . $$ . fragment ) ;
t8 = space ( ) ;
hr = element ( "hr" ) ;
create_component ( dialog . $$ . fragment ) ;
t9 = space ( ) ;
hr = element ( "hr" ) ;
t10 = space ( ) ;
h31 = element ( "h3" ) ;
h31 . textContent = "Blacklisted tags" ;
t11 = space ( ) ;
t12 = space ( ) ;
div1 = element ( "div" ) ;
for ( let i = 0 ; i < each_blocks . length ; i += 1 ) {
each_blocks [ i ] . c ( ) ;
}
t12 = space ( ) ;
t13 = space ( ) ;
input1 = element ( "input" ) ;
attr ( input0 , "type" , "checkbox" ) ;
attr ( div0 , "class" , "tagcont svelte-98wprd " ) ;
attr ( hr , "class" , "svelte-98wprd " ) ;
attr ( div1 , "class" , "tagcont svelte-98wprd " ) ;
attr ( div0 , "class" , "tagcont svelte-2r0xqp " ) ;
attr ( hr , "class" , "svelte-2r0xqp " ) ;
attr ( div1 , "class" , "tagcont svelte-2r0xqp " ) ;
attr ( input1 , "placeholder" , "Press enter after typing your tag" ) ;
} ,
m ( target , anchor ) {
@ -20527,29 +20539,32 @@
input0 . checked = ctx [ 7 ] . phash ;
append ( label , t0 ) ;
insert ( target , t1 , anchor ) ;
if ( if_block )
if_block . m ( target , anchor ) ;
if ( if_block0 )
if_block0 . m ( target , anchor ) ;
insert ( target , t2 , anchor ) ;
insert ( target , h30 , anchor ) ;
insert ( target , t4 , anchor ) ;
if ( if_block1 )
if_block1 . m ( target , anchor ) ;
insert ( target , t5 , anchor ) ;
insert ( target , div0 , anchor ) ;
for ( let i = 0 ; i < each_blocks_1 . length ; i += 1 ) {
each_blocks_1 [ i ] . m ( div0 , null ) ;
}
insert ( target , t5 , anchor ) ;
insert ( target , t6 , anchor ) ;
insert ( target , button , anchor ) ;
insert ( target , t7 , anchor ) ;
mount_component ( dialog , target , anchor ) ;
insert ( target , t8 , anchor ) ;
insert ( target , hr , anchor ) ;
mount_component ( dialog , target , anchor ) ;
insert ( target , t9 , anchor ) ;
insert ( target , hr , anchor ) ;
insert ( target , t10 , anchor ) ;
insert ( target , h31 , anchor ) ;
insert ( target , t11 , anchor ) ;
insert ( target , t12 , anchor ) ;
insert ( target , div1 , anchor ) ;
for ( let i = 0 ; i < each_blocks . length ; i += 1 ) {
each_blocks [ i ] . m ( div1 , null ) ;
}
insert ( target , t12 , anchor ) ;
insert ( target , t13 , anchor ) ;
insert ( target , input1 , anchor ) ;
current = true ;
if ( ! mounted ) {
@ -20566,16 +20581,27 @@
input0 . checked = ctx2 [ 7 ] . phash ;
}
if ( ctx2 [ 7 ] . phash ) {
if ( if_block ) {
if_block . p ( ctx2 , dirty ) ;
if ( if_block0 ) {
if_block0 . p ( ctx2 , dirty ) ;
} else {
if_block = create_if_block_5 2 ( ctx2 ) ;
if_block . c ( ) ;
if_block . m ( t2 . parentNode , t2 ) ;
if_block0 = create_if_block_6 2 ( ctx2 ) ;
if_block0 . c ( ) ;
if_block0 . m ( t2 . parentNode , t2 ) ;
}
} else if ( if_block ) {
if_block . d ( 1 ) ;
if_block = null ;
} else if ( if_block0 ) {
if_block0 . d ( 1 ) ;
if_block0 = null ;
}
if ( ctx2 [ 7 ] . rsources . length == 0 ) {
if ( if_block1 ) {
} else {
if_block1 = create_if_block_52 ( ctx2 ) ;
if_block1 . c ( ) ;
if_block1 . m ( t5 . parentNode , t5 ) ;
}
} else if ( if_block1 ) {
if_block1 . d ( 1 ) ;
if_block1 = null ;
}
if ( dirty [ 0 ] & 73856 ) {
each_value_4 = ctx2 [ 7 ] . rsources ;
@ -20654,40 +20680,44 @@
detach ( label ) ;
if ( detaching )
detach ( t1 ) ;
if ( if_block )
if_block . d ( detaching ) ;
if ( if_block0 )
if_block0 . d ( detaching ) ;
if ( detaching )
detach ( t2 ) ;
if ( detaching )
detach ( h30 ) ;
if ( detaching )
detach ( t4 ) ;
if ( if_block1 )
if_block1 . d ( detaching ) ;
if ( detaching )
detach ( t5 ) ;
if ( detaching )
detach ( div0 ) ;
destroy_each ( each_blocks_1 , detaching ) ;
if ( detaching )
detach ( t5 ) ;
detach ( t6 ) ;
if ( detaching )
detach ( button ) ;
if ( detaching )
detach ( t7 ) ;
detach ( t8 ) ;
ctx [ 50 ] ( null ) ;
destroy_component ( dialog , detaching ) ;
if ( detaching )
detach ( t8 ) ;
detach ( t9 ) ;
if ( detaching )
detach ( hr ) ;
if ( detaching )
detach ( t9 ) ;
detach ( t10 ) ;
if ( detaching )
detach ( h31 ) ;
if ( detaching )
detach ( t11 ) ;
detach ( t12 ) ;
if ( detaching )
detach ( div1 ) ;
destroy_each ( each_blocks , detaching ) ;
if ( detaching )
detach ( t12 ) ;
detach ( t13 ) ;
if ( detaching )
detach ( input1 ) ;
mounted = false ;
@ -20695,7 +20725,7 @@
}
} ;
}
function create_if_block_5 2 ( ctx ) {
function create_if_block_6 2 ( ctx ) {
let label ;
let input ;
let t0 ;
@ -20710,9 +20740,9 @@
a = element ( "a" ) ;
a . textContent = "?" ;
attr ( input , "type" , "number" ) ;
attr ( input , "class" , "svelte-98wprd " ) ;
attr ( input , "class" , "svelte-2r0xqp " ) ;
attr ( a , "title" , "Higher will filter more potentially different images, lower will let more identical images through" ) ;
attr ( label , "class" , "svelte-98wprd " ) ;
attr ( label , "class" , "svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , label , anchor ) ;
@ -20738,6 +20768,22 @@
}
} ;
}
function create_if_block_52 ( ctx ) {
let p ;
return {
c ( ) {
p = element ( "p" ) ;
p . textContent = "Don't know what to put here? Ask some anons ;)" ;
} ,
m ( target , anchor ) {
insert ( target , p , anchor ) ;
} ,
d ( detaching ) {
if ( detaching )
detach ( p ) ;
}
} ;
}
function create_each_block_4 ( ctx ) {
let tag ;
let current ;
@ -20834,22 +20880,22 @@
button = element ( "button" ) ;
button . textContent = "Add" ;
attr ( input0 , "type" , "text" ) ;
attr ( input0 , "placeholder" , "Gel booru" ) ;
attr ( input0 , "class" , "svelte-98wprd " ) ;
attr ( label0 , "class" , "svelte-98wprd " ) ;
attr ( input0 , "placeholder" , "Safe booru" ) ;
attr ( input0 , "class" , "svelte-2r0xqp " ) ;
attr ( label0 , "class" , "svelte-2r0xqp " ) ;
attr ( input1 , "type" , "text" ) ;
attr ( input1 , "placeholder" , "gel booru.com" ) ;
attr ( input1 , "class" , "svelte-98wprd " ) ;
attr ( label1 , "class" , "svelte-98wprd " ) ;
attr ( input1 , "placeholder" , "safe booru.com" ) ;
attr ( input1 , "class" , "svelte-2r0xqp " ) ;
attr ( label1 , "class" , "svelte-2r0xqp " ) ;
attr ( input2 , "type" , "text" ) ;
attr ( input2 , "placeholder" , "/post.json?tags=md5:" ) ;
attr ( input2 , "class" , "svelte-98wprd " ) ;
attr ( label2 , "class" , "svelte-98wprd " ) ;
attr ( input2 , "class" , "svelte-2r0xqp " ) ;
attr ( label2 , "class" , "svelte-2r0xqp " ) ;
attr ( input3 , "type" , "text" ) ;
attr ( input3 , "placeholder" , "https://yande.re /post/show/" ) ;
attr ( input3 , "class" , "svelte-98wprd " ) ;
attr ( label3 , "class" , "svelte-98wprd " ) ;
attr ( div , "class" , "form svelte-98wprd " ) ;
attr ( input3 , "placeholder" , "https://safebooru.com /post/show/" ) ;
attr ( input3 , "class" , "svelte-2r0xqp " ) ;
attr ( label3 , "class" , "svelte-2r0xqp " ) ;
attr ( div , "class" , "form svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , div , anchor ) ;
@ -21083,8 +21129,8 @@
if ( ctx [ 7 ] . fhost === void 0 )
add_render_callback ( ( ) => ctx [ 53 ] . call ( select ) ) ;
attr ( input , "type" , "number" ) ;
attr ( input , "class" , "svelte-98wprd " ) ;
attr ( label , "class" , "svelte-98wprd " ) ;
attr ( input , "class" , "svelte-2r0xqp " ) ;
attr ( label , "class" , "svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , p , anchor ) ;
@ -21185,7 +21231,7 @@
for ( let i = 0 ; i < each_blocks . length ; i += 1 ) {
each_blocks [ i ] . c ( ) ;
}
attr ( div , "class" , "bepis svelte-98wprd " ) ;
attr ( div , "class" , "bepis svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , div , anchor ) ;
@ -21473,7 +21519,7 @@
t2 = space ( ) ;
div = element ( "div" ) ;
if_block . c ( ) ;
attr ( div , "class" , "newsbox svelte-98wprd " ) ;
attr ( div , "class" , "newsbox svelte-2r0xqp " ) ;
} ,
m ( target , anchor ) {
insert ( target , p , anchor ) ;
@ -21819,6 +21865,10 @@
$$invalidate ( 3 , news = await res . json ( ) ) ;
} ;
function appendBooru ( ) {
if ( true ) {
request ( newbooru . domain ) ;
alert ( "Requested! Please click the PEE icon to validate" ) ;
}
set_store_value ( settings , $settings . rsources = [ ... $settings . rsources , newbooru ] , $settings ) ;
dial . toggle ( ) ;
$$invalidate ( 1 , newbooru = { } ) ;
@ -24747,6 +24797,8 @@
var ViewCount_default = ViewCount ;
// src/main.ts
if ( ! supportedMainDomain ( location . host ) && ! supportedAltDomain ( location . host ) )
throw "PEE not supported here, skipping" ;
var qp ;
var csettings5 = initial_settings ;
var processors = [ thirdeye_default , pomf_default , pngv3_default , jpg_default , webm_default , gif_default ] ;
@ -24998,14 +25050,21 @@
var __ DOMParser = false ? _ DOMParser : DOMParser ;
var gmo ;
var earlystartup = async ( ) => {
if ( location . host == "arch.b4k.co" && false ) {
if ( [ "arch.b4k.co" , "desuarchive.org" ] . includes ( location . host ) && false ) {
if ( ! GM_getValue ( "warning_seen2" , false ) ) {
alert ( ` Due to b4k's policies being mean, PEE will get you banned, so the userscript version is disabled here ` ) ;
alert ( "Use the WebExtension version of PEE if you want to use b4k!" ) ;
alert ( ` Due to b4k and desuarchive policies being mean, PEE will get you banned, so the userscript version is disabled here
Use the WebExtension version of PEE if you want to use b4k ! ` );
GM_setValue ( "warning_seen2" , true ) ;
return false ;
}
}
if ( [ "arch.b4k.co" , "desuarchive.org" ] . includes ( location . host ) && true ) {
if ( ! Platform . getValue ( "warning_seen3" , false ) ) {
alert ( 'Due to b4k and desuarchive policies being mean, PEE cannot display content properly here. A "PEE companion" extension will be released as including that functionnallity in PEE lengthens ChromeWebStore review delays, please understando.' ) ;
Platform . setValue ( "warning_seen3" , true ) ;
return false ;
}
}
return true ;
} ;
var init4 = false ;