Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var blogBanPrefs = { // Don't change this line.
- myBannedCommenters: [ // Don't change this line.
- /*******************************************************
- * Message to blog administrators:
- * Add Blogger profile IDs, commenter names, or commenter
- * URLs in the list below to control which comments get
- * erased in post pages when the blog loads. (This script
- * will not work in pop-up comment forms or full page
- * comment forms.)
- *
- * Blogger Profile IDs are usually 20-digit numbers.
- * Enter commenter names exactly as they appear in the
- * comment. Enter full URLs, including the http:// at
- * the beginning.
- *
- * Everything must be surrounded by single or double
- * quotation marks and be followed by a comma after
- * the closing quotation mark. If a name includes a
- * single quotation mark, surround the name with
- * double quotation marks, or vice versa. You can
- * also put a backslash, \, in front of quotation
- * marks in a commenter's name, \' or \", to safely
- * enter them between the quotations marks surrounding
- * the name of the banned commenter in your list.
- *
- * Anything on the same line after the double forward
- * slashes, //, is a comment for your benefit and
- * does not affect the script.
- *
- * Example Profile ID entry:
- * '00532888325841953106', // Bob
- *
- * Example Name entry:
- * 'Bob', // A spammer
- *
- * Example URL entry:
- * 'http://www.somewhere.com', // Bob's website
- *******************************************************/
- // Start entering banned commenters on next line.
- '11439396562879158519' // James. Constant off-topic harassment, political spamming, and thread-derailing. Hated by everybody.
- 'TBTBTBTB'], // WARNING: Don't change this line.
- blockDM: // WARNING: Don't change this line.
- /*******************************************************
- * Message to blog administrators:
- * If you are experiencing problems with spam from David
- * Mabus, leave the following value set to true.
- *
- * If you do not want to automatically block spam
- * comments from David Mabus, change the value
- * from true to false.
- *******************************************************/
- false, // WARNING: Don't delete the comma.
- myCustomHTML: // Don't modify or delete this line.
- /*******************************************************
- * Message to blog administrators:
- * Enter a custom HTML message below between a pair of
- * double or single quotation marks (whichever kind of
- * quotation mark you use to surround the HTML, do not
- * use that kind of quotation mark in the HTML message
- * or the script will not work and give an error).
- *
- * Use the text __NAME__ as a stand-in for the banned
- * commenter's name in the HTML.
- *
- * If you do not enter anything, the default HTML entry
- * is as follows (it shows the banned person's name):
- * "<p><i>[__NAME__'s comment has been removed.]</i></p>"
- *
- * An example without the banned commenter name would be:
- * "<p><i>[Comment removed.]</i></p>"
- *******************************************************/
- // Enter your own HTML in the quotation marks below:
- "This post has been automatically hidden."
- }; // WARNING: Don't modify or delete this line.
- // Don't delete the following lines either.
- </script>
- <script>
- (function(){var e;if(blogBanPrefs&&blogBanPrefs.blockDM){e=new Date;e.setMinutes(Math.floor(e.getMinutes()/15)*15,0,0);document.write("<script type='text/javascript' src='http://blogbanscript.googlecode.com/files/bbs.dm.js?rnd="+e.getTime()+"'><\/script>")}})();
- </script>
- <script>
- var blogBanScript=function(){var e,c,g,h,i,j,k,f=[],l="<p><i>[__NAME__'s comment has been removed.]</i></p>";e=document.getElementById("comments-block");h=function(){var a,b,d=/^[0-9]+$/;b=[];for(a=0;a<c.length;a++)if(d.test(c[a])){b.push(c[a]);c[a]=""}b.length>0&&f.push(RegExp("profile\\/(?:"+b.join("|")+")"))};i=function(){var a,b,d=/^http:\/\/[a-z0-9.]+$/i;b=[];for(a=0;a<c.length;a++)if(d.test(c[a])){b.push(c[a].replace(/\./g,"\\.").replace(/\//g,"\\/"));c[a]=""}b.length>0&&f.push(RegExp(b.join("|")))};
- j=function(){var a,b,d=/^.+$/i;b=[];for(a=0;a<c.length;a++)d.test(c[a])&&b.push(c[a].replace(/\./g,"\\.").replace(/\//g,"\\/'"));b.length>0&&f.push(RegExp('title="(?:'+b.join("|")+')"'))};g=function(){var a;c=[];if(blogBanPrefs){if(blogBanPrefs.blockDM&&blogBanDMList&&blogBanDMList.data){a=blogBanDMList.data;if(a[a.length-1]==="TBTBTBTB"||a[a.length-1]==="")a.pop();c=c.concat(a)}if(blogBanPrefs.myBannedCommenters){a=blogBanPrefs.myBannedCommenters;if(a[a.length-1]==="TBTBTBTB"||a[a.length-1]==="")a.pop();
- c=c.concat(a)}}};k=function(a){var b=a.getElementsByTagName("a");if(b.length<=1){b=a.getElementsByTagName("div");if(b.length!==0){for(b=b[b.length-1].nextSibling.nodeValue;b.search(/^\s/)!==-1;)b=b.slice(1);b=b.slice(0,-8)}else b="Someone"}else b=b[b.length-1].innerHTML;return b};return{run:function(){var a,b,d,m;if(e){if(blogBanPrefs.myCustomHTML!=="")l=blogBanPrefs.myCustomHTML;g();h();i();j();d=e.getElementsByTagName("dt");m=e.getElementsByTagName("dd");for(a=0;a<d.length;a++)for(b=0;b<f.length;b++)if(f[b].test(d[a].innerHTML)){b=
- l;if(/__NAME__/.test(b))b=b.replace(/__NAME__/,k(d[a]));d[a].innerHTML=b;m[a*2].innerHTML="";break}}}}}();blogBanScript.run();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement