Sorry for forgetting to respond, was restricted to just my phone and iPad around the time you answered and by the time I had access to my computer i had forgot about it. Both userscripts are up to date (0.4.20 & 0.7.2), so here’s what was in the console:
userscript.html?id=f64838d3-a988-4c07-8448-f7f5f51d46c3:674 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘unsafe-eval’ ‘self’ https://derpicdn.net https://www.amcharts.com https://www.google-analytics.com https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-8UwpdwiuqXJty4DoSWEA9W+FMdXW5Ol0a3ZjF7czsyo=’), or a nonce (‘nonce-…’) is required to enable inline execution.
addScript @ userscript.html?id=f64838d3-a988-4c07-8448-f7f5f51d46c3:674
userscript.html?id=f64838d3-a988-4c07-8448-f7f5f51d46c3:674 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘unsafe-eval’ ‘self’ https://derpicdn.net https://www.amcharts.com https://www.google-analytics.com https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-nC1EIFTfIzbc0hgADWC4Eos+jMRdIaPymHrOT/14N2s=’), or a nonce (‘nonce-…’) is required to enable inline execution.
addScript @ userscript.html?id=f64838d3-a988-4c07-8448-f7f5f51d46c3:674
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:3 ERROR: Execution of script ‘Derpibooru Explorer’ failed! Cannot read property ‘__addEventListener’ of undefined
(anonymous) @ chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:3
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:3 TypeError: Cannot read property ‘__addEventListener’ of undefined
at R.e.addEventListener (eval at exec_fn (:1:108), <anonymous>:49:469)
at e.History.start (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:16:20898)
at Window.window.runDerpibooruExplorer (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:800:20)
at Window.tms_9b71244d_0f74_413b_b724_83f256b32ad5 (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:852:8)
at <anonymous>:2:120
at eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:3:1)
at eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:4:3)
at Object.eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=9b71244d-0f74-413b-b724-83f256b32ad5:1057:6)
at <anonymous>:2:120
at Object.E_c (<anonymous>:2:433)
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=0d22843e-f01b-4678-9fdd-affb7c0c68d1:288 Uncaught TypeError: window._YDB_public.funcs.tagAliases is not a function
at Object.i (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=0d22843e-f01b-4678-9fdd-affb7c0c68d1:288)
at eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:315)
at Array.forEach (<anonymous>)
at renderer (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:192)
at rr (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:239)
at eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:296)
at Array.forEach (<anonymous>)
at renderer (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:192)
at renderCustom (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:342)
at settingPage (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b7dd8eb3-5aa4-403a-85ae-55af1a3e742d:704)
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=b9d51423-637d-4f89-baa7-a9c2439d5368:404 check
I noticed that function to resize thumbnails and realized a slight modification of it could be used (with the help of a custom style) to do something I wanted, that is to make thumbnails slightly bigger to fit the default 15 of them on one page, so this is how I edited the function…
// once sidescript loaded execute that
function init() {
// since your script may load faster, you ought to create whole object tree
if (window._YDB_public undefined\) window.\_YDB\_public = {};
if \(window.\_YDB\_public.funcs undefined) window._YDB_public.funcs = {};
if (window._YDB_public.funcs.feedURLs undefined\) window.\_YDB\_public.funcs.feedURLs = {};
if \(window.\_YDB\_public.funcs.feedPP undefined) window._YDB_public.funcs.feedPP = {};
// add your function as postprocessor
window._YDB_public.funcs.feedPP.manualResize = resizeWrapper;
// add function to postprocessor at feeds
window._YDB_public.funcs.feedURLs.addResize = addResize;
}
// receives feed object, field "container" contains current feed element container
function resizeWrapper(feed) {
// you need to override default resizer
setTimeout(resizeEverything, 10);
}
// receives feed object too
function addResize(f) {
if (f.postprocessors == undefined) f.postprocessors = [];
f.postprocessors.push('manualResize');
// originally designed to add params in query, so must return empty string
return '';
}
One bug I found, (not sure if it still exists, but I’m too afraid to test it) is that if I’m on derpibooru.org, and for some reason I browse or change some setting on www.derpibooru.org, settings are lost.
Another thing I’d like if that’s ok is to have something like a __ydb_yesterday (eg. today is 2018-4-20, that will return pictures uploaded on 2018-4-19).
Also, since in the main page it hides the recently uploaded pics, but doesn’t prevent them from loading
And one last thing is that feeds don’t work if “Show large thumbnails” is unchecked in your display settings (they may still show the last cache properly, but once it’s refreshed nothing is shown).
(created_at:2018-04-21)
__ydb_DaysAgo:5X
-> (created_at:2018-04-17)
(works only with YDB:Tools because of parser complexity) __ydb_DaysAgo:X
. __ydb_LastYears:5
-> (created_at:2017-04-17 || created_at:2016-04-17 || created_at:2015-04-17 || created_at:2014-04-17 || created_at:2013-04-17 || created_at:2012-04-17)
damn first_seen_at
and created_at
created_at
, you will see >>10000 in the recent images; first_seen_at
, you will see >>10000 in a place where >>100 was, like it wasn’t merged into new.@St@SyaN
Я попробовал менять фильтры, но все так же “feeds in home page that contain custom tags are reset to use default filter”
Help fund the $15 daily operational cost of Derpibooru - support us financially!