Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's some assorted JavaScript hacks. These are all labelled, depending on their usage.
- Make Post In-Game:
- Run this on 3DSverse's "https://3ds-us.olv.nintendo.net/titles/[titleID]/[communityID]/post" page, and your posts will automatically become in-game posts.
- In-game posts cost you no posts-per-day to make, and have absolutely no character limit (for now). This also lets you comment on any post up to the old limit of 1005 comments!
- They're forbidden in certain communities (such as the Play Nintendo community and previously the YouTube community), so if you get a random error after inserting this, it may be forbidden.
- If the permissions on the community are right, you can use this bookmarklet to post to verified-only communities like Miiverse Announcements, though Nintendo is cracking down on more and more of those.
- javascript:$('<input type="hidden" name="has_title_depended_value" value="1">').insertAfter('.spoiler-button');
- Add URL Form to Post:
- Running this on some of Wii Uverse's post forms will allow you to add a verified-user URL field to non-redesigned communities, or in-game posts.
- Inserting a YouTube URL will auto-embed it as a video, making this twice as useful as just a clickable URL button.
- This is made for Wii Uverse, though you can change the value="your url here" part of it to make it work well with 3DSverse if you wnat.
- javascript:$('<input type="text" name="url" placeholder="URL" value="" style="width: 850px; margin: 20px 0 0; background: url("/img/textarea-line-bg-l.jpg") no-repeat 0 0;" img="" no-repeat="">').insertBefore('.spoiler-button');
- Miiverse Post Generator:
- This is a useless little extra thing I made for PCverse, this hasn't been tested on Wii Uverse and definitely wouldn't work on 3DSverse.
- Run this on an un-redesigned community page while logged in, and this will read the post list and use Markov to generate a post for you. You have to be logged in because it sets the post form's text to show the post, though you could replace "$("textarea[name=body]").val" with "alert" to make this not require a login.
- The Markov part of the code was taken from here: https://github.com/dshahin/markovmaker
- javascript:!function(a){function b(a,b){c={},d=[],e={},f=b.split(a.punctuation_marks);for(var g=0;g<f.length;g++){var i=f[g].split(a.word_splitter);c[i[i.length-1]]=!0,d.push(i[0]);for(var j=0;j<i.length-1;j++){var k=i[j],l=i[j+1];""!==k&&null!==l&&(e.hasOwnProperty(k)?e[k].push(l):e[k]=[l])}}var m=h(a.min_length);return m+a.punctuation}var c={},d=[],e={},f=[];a.markovmaker=function(c,d){d=a.extend({},a.markovmaker.options,d);var e=b(d,c);return e},a.markovmaker.options={punctuation:".",min_length:2,punctuation_marks:/\.|\;|\?|\:|\n/,word_splitter:/\s/};var g=function(a){var b=Math.floor(a.length*Math.random());return a[b]},h=function(a){for(var b=g(d),f=[b];e.hasOwnProperty(b);){var i=e[b];if(b=g(i),f.push(b),f.length>a&&c.hasOwnProperty(b))break}return f.length<a?h(a):f.join(" ")}}(jQuery);list="";for(post=0;post<$("p.post-content-text").length;post++){list=list+$("p.post-content-text")[post].innerText+"\n";}$("textarea[name=body]").val($.markovmaker(list,{punctuation: '\n', min_length: 5}).split('\n')[0]);$('.black-button').removeAttr('disabled');$('.black-button').removeClass('disabled');
Add Comment
Please, Sign In to add comment