daily pastebin goal
13%
SHARE
TWEET

r/counting bookmarklets obfuscated

Nik333 Jan 21st, 2019 (edited) 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ===================================
  2. // For each bookmarklet, just copy the entire line starting with "javascript:" and ending with "}})();" (inclusive) and paste is as a bookmark url.
  3. // ===================================
  4.  
  5. // (c) 2019 NoxZet (aka NikinCZ)
  6. // This code is licensed under MIT license (https://opensource.org/licenses/MIT)
  7.  
  8. // Only Repeating Digit
  9. javascript: (function(){var cn=prompt('Find next "Only Repeating Digits" after:','')-0;while(1){cn++;ca=(cn+"").split("");var dd={};for(let i in ca){dd[ca[i]-0]=(dd[ca[i]-0]||0)+1;}var ik=1;for(let i in dd){if(dd[i]<2){ik=0;break;}}if(ik){alert(cn+' is the next "Only Repeating Digits" number');break;}}})();
  10.  
  11. // 420 Counting
  12. javascript: (function(){var cn=prompt('Find next "420 Counting" after:','')-0;var w=1;while(w){cn++;ca=(cn+"").split("");for(let i=0;i<ca.length-2;i++){if(ca[i]=="4"&&ca[i+1]=="2"&&ca[i+2]=="0"){alert(cn+' is the next "420 Counting" number');w=0;break;}}}})();
  13.  
  14. // 88 Counting
  15. javascript: (function(){var cn=prompt('Find next "88 Counting" after:','')-0;var w=1;while(w){cn++;ca=(cn+"").split("");for(let i=0;i<ca.length-1;i++){if(ca[i]=="8"&&ca[i+1]=="8"){alert(cn+' is the next "88 Counting" number');w=0;break;}}}})();
  16.  
  17. // Only numbers that contain the digits 1 and 4
  18. javascript: (function(){var cn=prompt('Find next "Only numbers that contain the digits 1 and 4" after:','')-0;while(1){cn++;ca=(cn+"").split("");var dd={};for(let i in ca){dd[ca[i]-0]=1;}if(dd[1]==1&&dd[4]==1){alert(cn+' is the next "Only numbers that contain the digits 1 and 4" number');break;}}})();
  19.  
  20. // Only consecutive digits
  21. javascript: (function(){var cn=prompt('Find next "Only consecutive digits" after:','')-0;while(1){cn++;ca=(cn+"").split("");var dd={};for(let i in ca){dd[ca[i]-0]=(dd[ca[i]-0]||0)+1;}var da=Object.keys(dd);ik=1;for(let i in da){if(da[i-0+1]!==undefined&&(da[i-0]-0)+1!==(da[i-0+1]-0)){ik=0;}}if(ik){alert(cn+' is the next "Only consecutive digits" number');break;}}})();
  22.  
  23. // No consecutive digits
  24. javascript: (function(){var cn=prompt('Find next "No consecutive digits" after:','')-0;while(1){cn++;ca=(cn+"").split("");var dd={};for(let i in ca){dd[ca[i]-0]=(dd[ca[i]-0]||0)+1;}var ik=1;for(let i=0;i<9;i++){if(dd[i]>0&&dd[i+1]>0){ik=0;break;}}if(ik){alert(cn+' is the next "No consecutive digits" number');break;}}})();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top